Create a new electronic receipt
The new Receipt resource
Receipt resource created
Invalid input
Resource not found
{- "fiscal_id": "string",
- "lottery_code": "string",
- "items": [
- {
- "quantity": 0,
- "description": "string",
- "unit_price": 0,
- "vat_rate_code": "4",
- "discount": 0,
- "complimentary": true
}
], - "invoice_issuing": true,
- "services_uncollected_amount": 0,
- "goods_uncollected_amount": 0,
- "cash_payment_amount": 0,
- "electronic_payment_amount": 0,
- "ticket_restaurant_payment_amount": 0,
- "ticket_restaurant_quantity": 0,
- "discount": 0,
- "linked_receipt": "string"
}
{- "return_receipts": [
- {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}
], - "voiding_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "returned_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "voided_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "error_message": "string",
- "error_code": "string",
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}
Get a list of electronic receipts
ReceiptOutput collection response
[- {
- "return_receipts": [
- {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}
], - "voiding_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "returned_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "voided_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "error_message": "string",
- "error_code": "string",
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}
]
Get an electronic receipt
ReceiptOutput resource response
Resource not found
{- "return_receipts": [
- {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}
], - "voiding_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "returned_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "voided_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "error_message": "string",
- "error_code": "string",
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}
Get the details of an electronic receipt, or the receipt PDF itself if the 'Accept: application/pdf' header is sent
ReceiptDetailsOutput resource response
Resource not found
Document still being processed, please retry later
{- "total_taxable_amount": 0,
- "total_uncollected_amount": 0,
- "deductible_amount": 0,
- "total_vat_amount": 0,
- "total_discount": 0,
- "total_gross_discount": 0,
- "discount": 0,
- "items": [
- {
- "id": "string",
- "quantity": 0,
- "description": "string",
- "gross_price": 0,
- "vat_rate": "string",
- "gross_discount": 0,
- "complimentary": true,
- "unit_price": 0,
- "return": 0,
- "taxable_amount": 0,
- "net_taxable_amount": 0,
- "vat_amount": 0,
- "total_amount": 0,
- "unit_discount": 0
}
], - "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}
Return items an electronic receipt
Receipt resource created
Invalid input
Resource not found
{- "items": [
- {
- "id": "string",
- "quantity": 0
}
]
}
{- "return_receipts": [
- {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}
], - "voiding_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "returned_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "voided_receipt": {
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}, - "error_message": "string",
- "error_code": "string",
- "uuid": "string",
- "type": "sale",
- "status": "new",
- "fiscal_id": "string",
- "created_at": "string",
- "total_amount": 0,
- "transaction_id": "string",
- "document_number": "string",
- "document_date": "string"
}