API credentials for the test environment will be shared by mail.
Sale Flow
Sale APIs are used to turn orders into fiscal receipts. You can use them on both Sardis (400TR)
Instant Sale API allows printing receipts and payment items at request time.
Sale APIs are used to turn orders into fiscal receipts. The 3rd party Client Apps should provide a callback URL for sale flow. Otherwise, payment details cannot be sent.
a. Receipt with the following parameters is created.
b. Send order to device with client id and secret. If “asyncACK” is true then you will receive this as HTTP 200 Response’s Body. Order Received message by device
{"status":0,"id":"1213",// unique id of the order"msg":"OK"}
c. When payment is completed, receipt details will be sent to the callback URL that provided at the subscription. Successful complete example:
Attention: This number must be unique cannot be reset. See “orderid”. Unique number for receipt. Order can be tracked with this number such as: details, void operations
'1213'
asyncACK
boolean
Optional. If you don’t want to wait to ACK of device for HTTP response send as true; ACK will be sent to your callback url later.
false
id
string
Unique id that sent with order from client id.
‘1000'
terminalid
string
Terminal ID.
‘EC0000000002'
responseType
int
0: ORDER, 1: INSTANT SALE. Which type of sale is completed or cause error
1
status
int
0: Success, Rest is error. See appendix for explanation of error types