Associate

Associate a promocard to a user. When the card is created it is anonymous, that is, not associated to a specific user. With this operation the card become nominative and transaction data can be analyzed to perform basket analysis and process user’s statistical datas.

Request


POST https://api.domec.tools/v1.0/pc/associate


Request Body


{
  "Card": "",
  "Shop": "",
  "Terminal": "",
  "CardData": {
    "Password": "",
    "AuthorizationPin": "",
    "Approvals": "",
    "SecurityActivationToken": "",
    "NotificationType": 0,
    "Holder": {
      "FirstName": "",
      "LastName": "",
      "CompanyName": "",
      "Email": "",
      "BirthDate": "",
      "BirthPlace": "",
      "FiscalCode": "",
      "VATCode": "",
      "Gender": 0,
      "Addresses": [
        {
          "AddressType": 0,
          "Direction": "",
          "Zip": "",
          "District": "",
          "City": "",
          "Country": ""
        }
      ]
    },
    "Partnerships": [
      {
        "CustomerBasePartnerID": 0,
        "AssociationCode": ""
      }
    ],
    "MobileDevices": [
      {
        "Token": "",
        "Os": "",
        "DeviceIdiom": "",
        "DeviceUniqueID": ""
      }
    ]
  },
  "Notes": ""
}

Parameters

The Associate receive the following parameters in the input.

NameTypeData TypeMandatory
modelbodyAssociateOperationViewModel

Responses

The following HTTP status codes may be returned, optionally with a response resource

Status codeDescriptionResponse body
200OK
Success
View body
400BadRequest
The input request contains errors which prevents executing the request
View body
404NotFound
Endpoint not found
View body