Salta ai contenuti

Query receipts with filtering and pagination

POST
/v2/receipts/query
curl --request POST \
--url https://api-crm-staging.divinea.com/api/v2/receipts/query \
--header 'APIKey: <APIKey>' \
--header 'Content-Type: application/json' \
--data '{ "authorityCommunicationState": "TODO", "authorityCommunicationStates": "example", "count": 1, "customerName": "example", "documentStatus": "example", "endDate": "example", "externalEntityId": "example", "externalReceiptId": "example", "fiscalOperation": "RECEIPT", "fiscalOperations": "example", "integrationId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "maxTotalCents": 1, "minTotalCents": 1, "page": 1, "pointOfSaleWineSuiteId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "pointOfSaleWineSuiteIds": "example", "progressiveNumber": 1, "receiptType": "ORDER", "saleDocumentState": "NONE", "saleDocumentStates": "example", "sortBy": "example", "startDate": "example", "status": "CREATED", "terminalId": "example", "terminalName": "example", "wineryChannelId": "example", "wineryChannelIds": "example", "wineryId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'

Criteria

Media typeapplication/json
Filters for Receipts
object
authorityCommunicationState
string
Allowed values: TODO IN_PROGRESS SUCCESS FAILED STORNED PENDING
authorityCommunicationStates
string
count
integer format: int32
customerName
string
documentStatus
string
endDate
string
externalEntityId
string
externalReceiptId
string
fiscalOperation
string
Allowed values: RECEIPT CORRECTION CANCELLATION
fiscalOperations
string
integrationId
string format: uuid
maxTotalCents
integer format: int64
minTotalCents
integer format: int64
page
integer format: int32
pointOfSaleWineSuiteId
string format: uuid
pointOfSaleWineSuiteIds
string
progressiveNumber
integer format: int32
receiptType
string
Allowed values: ORDER RESERVATION PREORDER GIFT SALE
saleDocumentState
string
Allowed values: NONE FULL_RETURN PARTIAL_RETURN VOIDED
saleDocumentStates
string
sortBy
string
startDate
string
status
string
Allowed values: CREATED PENDING SIGNED ARCHIVED FAILED RECEIPT CANCELLATION CORRECTION COMPLETED
terminalId
string
terminalName
string
wineryChannelId
string
wineryChannelIds
string
wineryId
string format: uuid

OK

Media type*/*
Page«ReceiptV2DTO»
object
content
Array<object>
ReceiptV2DTO
object
adeDocumentNumber
string
authorityCommunicationState
string
Allowed values: TODO IN_PROGRESS SUCCESS FAILED STORNED PENDING
cancellationReason
string
createdAt
string format: date-time
discountTotalCents
integer format: int64
externalEntityId
string format: uuid
externalReceiptId
string
extraData
string
fiscalOperation
string
Allowed values: RECEIPT CORRECTION CANCELLATION
id
string format: uuid
integrationId
string format: uuid
internalDocumentNumber
string
pdfLink
string
pointOfSaleWineSuiteId
string format: uuid
progressiveNumber
integer format: int32
publicLink
string
qrCodeData
string
receiptData
string
receiptLines
Array<object>
ReceiptLine
object
additionalText
string
createdAt
string format: date-time
description
string
discountAmountCents
integer format: int64
discountPercent
integer format: int32
entityId
string
entityType
string
fiscalNatureId
string format: uuid
id
string format: uuid
inlineDiscountAmountCents
integer format: int64
inlineDiscountName
string
lineNumber
integer format: int32
lineType
string
Allowed values: NORMAL STORNO
netTotalCents
integer format: int64
quantity
number
receiptId
string format: uuid
saleRowId
integer format: int64
stornoReceiptId
string format: uuid
unit
string
unitPriceCents
integer format: int64
updatedAt
string format: date-time
vatAmountCents
integer format: int64
vatPercent
integer format: int32
receiptPayments
Array<object>
ReceiptPayment
object
createdAt
string format: date-time
currency
string
externalId
string
grossTotalCents
integer format: int64
id
string format: uuid
method
string
paymentId
string format: uuid
paymentNumber
integer format: int32
provider
string
receiptId
string format: uuid
status
string
updatedAt
string format: date-time
receiptType
string
Allowed values: ORDER RESERVATION PREORDER GIFT SALE
refDate
string format: date-time
referencedInternalDocumentNumber
string
referencedReceiptId
string format: uuid
saleDocumentState
string
Allowed values: NONE FULL_RETURN PARTIAL_RETURN VOIDED
status
string
Allowed values: CREATED PENDING SIGNED ARCHIVED FAILED RECEIPT CANCELLATION CORRECTION COMPLETED
totalCents
integer format: int64
totalNoVatCents
integer format: int64
updatedAt
string format: date-time
vatAmountCents
integer format: int64
wineryId
string format: uuid
empty
boolean
first
boolean
last
boolean
number
integer format: int32
numberOfElements
integer format: int32
pageable
Pageable
object
offset
integer format: int64
pageNumber
integer format: int32
pageSize
integer format: int32
paged
boolean
sort
Sort
object
empty
boolean
sorted
boolean
unsorted
boolean
unpaged
boolean
size
integer format: int32
sort
Sort
object
empty
boolean
sorted
boolean
unsorted
boolean
totalElements
integer format: int64
totalPages
integer format: int32