PaymentInvoice
POST
/v2/TableApp/PaymentInvoicePaymentInvoice sends invoice data to the terminal for display. All the responses have GeneralResponse section that informs about successful result or error. See Error Codes and Messages.
Body Parameters
ReferenceId*
stringInvoiceData
objectTpn
stringRegisterId
stringAuthkey*
stringSPInProxyTimeout
numberCustomFields
objectPOST/v2/TableApp/PaymentInvoice
1curl --location 'https://test.spinpos.net/v2/TableApp/PaymentInvoice' \
2--header 'Content-Type: application/json' \
3--data '{
4 "ReferenceId": "",
5 "InvoiceData": {
6 "Id": "",
7 "Name": "",
8 "TotalAmount": "",
9 "PaidAmount": "",
10 "Goods": [
11 {
12 "Name": "",
13 "Amount": "",
14 "Quantity": ""
15 }
16 ],
17 "Payments": [
18 {
19 "ReferenceId": "",
20 "Name": "",
21 "Amount": "",
22 "TipAmount": ""
23 }
24 ]
25 },
26 "Tpn": "",
27 "RegisterId": "",
28 "Authkey": "",
29 "SPInProxyTimeout": "",
30 "CustomFields": {}
31}'
Response
// Awaiting response…
Sample response
{
"GeneralResponse": {
"ResultCode": "0",
"StatusCode": "0000",
"Message": "",
"DetailedMessage": "",
"DelayBeforeNextRequest": null
}
}