2.4.4. Response
| Field | Description | Type | 
| status | success | error | |
| code | Error code | Integer | 
| docStatus | 0 - account is not closed / 1 - account closed | Integer | 
| documentID | Document code in the SmartOne Cashbox system (when using a cash register) | Integer | 
| printTime | Date and time of document closing, format: yyyy-MM-dd hh:mm:ss | string | 
| fiscalID | Fiscal document code (use for returns) | string | 
| fiscalNum | Document number | string | 
| totalPayments: {...} | Array of document payments | array | 
totalPayments {...} Array
| Field | Description | Type | 
| code | Payment type code | string | 
| amount | Payment amount in kopecks | integer | 
| rrn | Retrieval reference number of the bank terminal transaction | string | 
| auth | Authorization code | string | 
| cardNum | Card number | string | 
| checkNum | Receipt number | string | 
Error codes
| Field | Description | 
| 0 | No error | 
| 1 | Authorization erro | 
| 2 | Invalid JSON format | 
| 3 | Required parameters not passed | 
Response example:
{
  "authID": "",
  "cardNum": "",
  "cashAmount": 0,
  "cashlessAmount": 0,
  "docStatus": -1,
  "fiscalID": "",
  "items": [],
  "otherAmount": 0,
  "status": "success",
  "transactionID": ""
}
Response structure
{
   "status": "success" | "error", // Operation status: "success" or "error"
   "code": integer, // Error code:
       //0 – No error
       //1 – Authorization error
       //2 – Incorrect JSON format
       //3 – Mandatory parameters not provided
   "docStatus": integer, // Document status:
       //0 – Invoice not closed
       //1 – Invoice closed
   "documentID": integer, // Document ID in the SmartOne Cashbox system (when using a cash register)
   "printTime": string, // Document closing date and time in the format: yyyy-MM-dd hh:mm:ss
   "fiscalID": string, // Fiscal document code (used for returns)
   "fiscalNum": string, // Document number
   "totalPayments": [ // Array of document payments
      {
         "code": string, // Payment type code
         "amount": integer, // Payment amount in cents
         "rrn": string, // Bank terminal transaction number
         "auth": string, // Authorization code
         "cardNum": string, // Card number
         "checkNum": string // Check number
      }, ...
   ]
}