PayOrder
Description
Purpose in WSA v1 | Pay for the order using Objectid+OrderGuid keys on a prepayment basis. If the transferred amount of money is more than required to pay for the order, the payment is not accepted. An error returns |
Purpose in WSA v2 | Pay for the order using Objectid+OrderGuid keys on a payment basis. If the transferred amount of money is more or less than required to pay for the order, the payment is not accepted. An error returns |
Request type | Asynchronous |
Supported agent version | v1, v2 |
Nuances
If the payment is 100% discounted, then it is required to transfer this payment without a single cent
Request format
JSON
|
Description of parameters
Parameter | Type | Mandatory | Description |
---|---|---|---|
taskType | Task type | ||
async | Asynchronous method | ||
timeout | int | - | Agent response timeout in seconds, default is 120 seconds |
objectId | int | + | Restaurant code in the licensing system |
isFullOrderRequired | bool | - | If true - the entire order is returned |
orderGuid | guid | + | Guid of the order for which payment is required |
payments | array | + | payment data array |
amount | string | + | value of the amount to be paid. The separator between the integer and fractional parts of the amount must be a dot. |
currency | string | + | currency guid |
Response format
JSON
|
Parameter | Type | Description |
---|---|---|
taskGuid | guid | The unique code of this task is used when receiving the task through the queue. |
taskType | string enum | Task type |
objectId | int | Restaurant code in the licensing system |
error | Restaurant code in the licensing system | |
- wsError | Errors received from the WhiteServer service | |
– code | string | Error code |
– desc | string | Error description |
Asynchronous response format
JSON
|