Api Authorization
POST SERVER_URL/order-data
BODY:
{
"traderId":"",
"sourceId":"",
“cashdeskId”:””,
"cardId":"",
"order":{
"orderNumber":"002121",
"fiscalNumber":””,
"orderTime":"2021-07-21T18:00:15.000",
"items":[
{
"name":"",
"code":"",
"category":"",
“discounts”:[
{
“src”: “xc” | ...
“type”: “percent” | “amount”
“value”: 1.00
}
],
“qty”:1.00,
“price”:1.00,
“priceWithDiscount”:1.00
}
],
“totalPrice”:1.00,
“totalPriceWithDiscount”:1.00,
“percentTax”:1.00,
“totalTax”:1.00,
“paymentForm”: “card” | “cash” | ...
}
},
где
RESPONSE:
{
"status":"”OK | ERROR | INVALID_DATA | NOT_AUTHORIZED |
SOURCE_BLOCKED”",
"requestId":""
"errors":[
{
"field":"",
"message":"",
"code":
}
]
}
где -
POST SERVER_URL/validate
Request:
{
“value”:”xc12345678”
}
Response:
{
“status”: ”OK”,
“cardStatus”:”VALID” // “INVALID_CARD” // “BLOCKED”
}