/sale
Request body:
| Field | Type | Required | Format / constraints |
|---|---|---|---|
documentID | integer (int64) | No | Internal document id |
documentExtID | string | No | External document id |
docTime | string | No | yyyy-MM-dd HH:mm:ss |
docNumber | string | No | External document number |
wsName | string | No | Workstation name |
departmentName | string | No | Store/department name |
departmentCode | string | No | Store/department code |
employeeName | string | No | Cashier name |
employeeFirstName | string | No | Used when employeeName is empty |
employeeLastName | string | No | Used when employeeName is empty |
items | array of item objects | Yes | Must be non-empty |
payments | object | No | Payment split object |
extraPayments | array of extra payment objects | No | Additional payment entries |
Success response:
| Field | Type | Required | Notes |
|---|---|---|---|
documentID | integer (int64) | No | Internal document id |
fiscalID | string | No | Fiscal document id |
fiscalNum | string | No | Fiscal document number |
fiscalUrl | string | No | Fiscal URL |
docTime | string | No | yyyy-MM-dd HH:mm:ss |
printTime | string | No | yyyy-MM-dd HH:mm:ss |
docStatus | integer (int32) | No | See value map below |
rrn | string | No | Card terminal RRN |
auth | string | No | Authorization code |
cardNum | string | No | Card number (masked) |
checkNum | string | No | Terminal check number |
printError | integer (int32) | No | Print error code |
totalPayments | array of payment entries | No | Payment breakdown |
currency_name | string | No | Currency |
documentExtID | string | No | External document id |
Specific values:
docStatus:0= open,1= closed.