Cart
POST
/v2/Payment/CartCart sends cart/order data to the terminal for display during the payment flow. All the responses have GeneralResponse section that informs about successful result or error. See Error Codes and Messages.
Body Parameters
Cart*
objectTpn
stringRegisterId
stringAuthkey*
stringCustomFields
objectPOST/v2/Payment/Cart
1curl --location 'https://test.spinpos.net/v2/Payment/Cart' \
2--header 'Content-Type: application/json' \
3--data '{
4 "Cart": {
5 "Amounts": [
6 {
7 "Name": "",
8 "Value": ""
9 }
10 ],
11 "CashPrices": [
12 {
13 "Name": "",
14 "Value": ""
15 }
16 ],
17 "Items": [
18 {
19 "Name": "",
20 "Price": "",
21 "UnitPrice": "",
22 "Quantity": "",
23 "AdditionalInfo": "",
24 "CustomInfos": [
25 {
26 "Name": "",
27 "Value": ""
28 }
29 ],
30 "Modifiers": [
31 {
32 "Name": "",
33 "Options": [
34 {
35 "Name": "",
36 "Price": "",
37 "Quantity": ""
38 }
39 ]
40 }
41 ]
42 }
43 ]
44 },
45 "Tpn": "",
46 "RegisterId": "",
47 "Authkey": "",
48 "CustomFields": {}
49}'
Response
// Awaiting response…
Sample response
{
"GeneralResponse": {
"ResultCode": "0",
"StatusCode": "0000",
"Message": "",
"DetailedMessage": "",
"DelayBeforeNextRequest": null
}
}