fiscal
Закрити поточну зміну
Однією операцією формує Z-звіт і документ закриття зміни.
delete/v1/cash-registers/{id}/shifts/current
Request
- Base URL: https://prro.cloud (the document declares no server; this is the origin it was published from)
- URL: https://prro.cloud/v1/cash-registers/{id}/shifts/current
- Auth: HTTP bearer
Path parameters
idstring uuid required
Ідентифікатор каси — uuid із GET /v1/cash-registers.
Query parameters
mode'sync' | 'async'
Режим доставки результату; має перевагу над однойменним полем у тілі. sync (типовий) чекає на результат у межах синхронного очікування; async одразу віддає 202 і номер завдання.
Headers
Idempotency-Keystring required
Ключ операції, який обирає клієнт. Повтор запиту з тим самим ключем поверне початкове завдання, а не виконає фіскальну операцію вдруге.
Response
Зміну закрито; у результаті — і Z-звіт, і документ закриття.
Example response
{
"result": {
"reconcile": {
"cash": {
"ours": "1500.00",
"dps": "1500.00"
},
"totals": {
"ours": {
"sales": "1500.00",
"returns": "1500.00",
"service_input": "1500.00",
"service_output": "1500.00"
},
"dps": {
"sales": "1500.00",
"returns": "1500.00",
"service_input": "1500.00",
"service_output": "1500.00"
}
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.