POST request and all the new card data need to be specified in a JSON object inside the body of the request.{
"cardsRecords": [
{
"card": {
"oldCardBarcode": 3001000410186,
"newCardBarcode": 3001001560637
}
}
]
}
| Field | Description | Type | Mandatory |
|---|---|---|---|
| newCardBarcode | New card barcode | Varchar(50) | ā |
| oldCardBarcode | Old card barcode | Varchar(50) | ā |
{
"cardsRecords": [
{
"card": {
"oldCardBarcode": 3001000410186,
"circuit": "SO",
"entityCode": 383,
"changeType": "REPLACEMENT",
"cardType": "FIDELITY",
"active": "T",
"earnedPoints": 4,
//"oldExpirationDate": "2015-05-20 17:30:51",
"cardSubtype": 1,
"newCardBarcode": 3001001560637,
"issueDate": "2021-03-18 17:32:51",
"activationDate": "2021-03-18 17:32:51",
"expirationDate": null
}
}
]
}
| Field | Description | Type | Mandatory |
|---|---|---|---|
| newCardBarcode | New card barcode | Varchar(50) | ā |
| oldCardBarcode | Old card barcode | Varchar(50) | ā |
| changeType | Type of change card. ('CHANGE': change card, 'REPLACEMENT': replacement card) | Varchar(250) | ā |
| cardType | Card type (referenced on the relative master table). This is a fixed value to specify in the call | Varchar(250) | ā |
| cardSubtype | Card subtype (referenced on the relative master table) | Varchar(250) | ā |
| circuit | Circuit of card (referenced on the relative master table). This is a fixed value to specify in the call | Varchar(250) | ā |
| issueDate | Date of issue of the card | Date | ā |
| active | It indicates if the card is active or not | Char(1) - Values allowed 'T' - active, 'F' - not active | ā |
| activationDate | Data of activation | Date | ā |
| expirationDate | Expiration date | Date | |
| oldExpirationDate | Expiration date for old card (default NOW) | Date | |
| entityCode | Shop that issued the card | Varchar(250) | ā |
| earnedPoints | Total point earned | Decimal(10) |