curl --location 'https://dev.e-check.com.ua/v2/open-api/receipt/drafts/actual?cashRegisterId=38413&type=CANCEL_DRAFT&draftType=DRAFT&startTime=undefined&endTime=undefined&IDPack=undefined&search=undefined&page=undefined&pageSize=undefined' \
--header 'apikey: {{apikey}}'{
"success": true,
"data": {
"items": [
{
"id": "03b6965b-4496-49da-aa8b-285476fafd7a",
"shiftId": "10459fd3-af6a-4bb6-9184-7365331a0be1",
"companyId": "362",
"cashRegisterId": "37606",
"workerId": "646",
"type": "DRAFT",
"draftType": "DRAFT",
"title": "open-api-draft",
"internalComment": "internal",
"externalComment": "external",
"additionalInfo": {
"userComment": "draft my"
},
"goods": [],
"goodsOutOfTheBoard": [
{
"quantity": 1,
"productId": "0a7f4935-bcb6-4d29-a34a-3f78e2f0ca8a",
"tx": "3",
"discount": {
"totalSum": 0,
"intermediateSumFor": 0,
"txList": [
"1"
],
"socialConfirmationNumber": "socialConfirmationNumber",
"percentage": 0,
"discountType": "BY_SUM",
"discountParent": "PRODUCT_DISCOUNT",
"discountApplyingType": "PRE_SALE"
},
"isOutOfBoard": true,
"initialSum": 0.1,
"measurement": {
"title": "шт",
"id": 1,
"precision": 0
},
"barCode": null,
"integers": true,
"productCode": null,
"exciseTaxStamp": [
"qweqweqw"
],
"price": 0.1,
"name": "qwe",
"uktzed": "2132132131",
"id": "2e070dd6-8ed9-4d19-b7fc-d187043789fc",
"fiscalizedInfo": {
"paymentType": [
[
"CASH"
]
]
}
}
]
}
]
}
}