Migrate

Migrate an original card to a new card. This operation is customer specific as the rule of migration can strictly depend on the loyalty rules identified by each customer

Request


PUT https://api.domec.tools/v1.0/pc/migrate


Request Body


{
  "FromCard": "",
  "Card": "",
  "Receipt": {
    "IssuerData": {
      "Name": "",
      "Address": "",
      "Telephone": "",
      "EMail": "",
      "VATNumber": ""
    },
    "IssueDate": "",
    "Products": [
      {
        "Code": "",
        "Name": "",
        "Price": 0.0,
        "Quantity": 0.0,
        "Mode": "",
        "Family": ""
      }
    ],
    "Payments": [
      {
        "Method": {},
        "CardCode": "",
        "Amount": 0.0
      }
    ],
    "Total": 0.0,
    "SenderData": {
      "Shop": "",
      "Terminal": "",
      "Type": 0,
      "Number": 0,
      "CashDrawer": 0,
      "Operator": ""
    },
    "UserData": ""
  },
  "Notes": ""
}

Parameters

The Migrate receive the following parameters in the input.

NameTypeData TypeMandatory
modelbodyMigrateOperationViewModel

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