curl --location 'https://dev.e-check.com.ua/v2/open-api/admin/receipts/20?typeAction=CANCEL' \
--header 'apikey: {{apikey}}'{
"success": true,
"data": {
"items": [
{
"id": "f1437eaa-8170-499a-a4bd-e91d1d898711",
"shiftId": "fe322986-ed4b-4be7-ba68-d0fa71922bbe",
"type": "CANCEL",
"totalSum": 2000,
"checkClosingDto": {
"parentCheckNumberForReturning": {
"u_1": 24,
"v_1": 0
},
"resultSum": 2000,
"resultSumExcludingVatAndFees": 2000,
"resultTaxList": [
{
"tx": "3",
"taxesSum": 0,
"taxInPriceType": "INCLUDED"
}
],
"resultTaxGroups": [
{
"taxType": {
"key": "3",
"letterKey": "Д",
"value": 0,
"type": "VAT",
"title": "ПДВ_Д",
"valueInText": "Без ПДВ",
"formula": "(##VAT##)",
"parsedFormula": "(0.0)"
},
"sum": 0
}
],
"discount": null,
"resultSumWithoutRoundings": 2000,
"resultTaxByType": [
{
"taxType": "VAT",
"sum": 0
}
]
},
"paymentGroupsList": [
{
"title": "Продаж",
"id": 1,
"groupType": "SALE",
"selected": true,
"default": true,
"paymentsList": [
{
"paymentType": "CASH",
"name": "Готівка",
"sumOfPayment": 2000,
"sumBeforeRounding": 2000,
"sumOfRounding": 0,
"rest": 0,
"cardPaymentDto": {},
"internalPaymentType": {
"id": 1,
"title": "Готівка",
"internalType": "UNKNOWN",
"selected": true,
"default": true
}
}
]
}
],
"workerLastName": "Тревисенкоо",
"workerFirstName": "Олег",
"cashRegisterName": "Е_ЧЕК_71736",
"sellingList": [
{
"name": "залишки мейн",
"initialTax": 0,
"resultTax": 0,
"resultSum": 2000,
"initialSum": 2000,
"quantity": 1,
"price": 2000,
"id": 3101243,
"measurement": "шт",
"discount": {
"type": "BY_SUM",
"percentage": 0,
"value": 0
}
}
],
"hashMac": "d1af6792e615394064565af609175a76f6282cd75a801d377f2dd6e6fddb5d4a",
"fiscalisationNumber": "dM6kXn3hz8s",
"fiscalisationTime": 1720606868855,
"status": "DONE",
"cashRegisterId": "20",
"additionalInfo": {}
}
],
"lastEvaluatedKey": "eyJjcmVhdGVkQXQiOjE3MjA2MDY4NzUzNTksImNhc2hSZWdpc3RlcklkIjoiMjAiLCJjb21wYW55SWQiOiIzNjIiLCJpZCI6ImYxNDM3ZWFhLTgxNzAtNDk5YS1hNGJkLWU5MWQxZDg5ODcxMSJ9"
},
"errors": null
}