curl --location 'https://mock.apidog.com/m1/1388340-0-default/api/v1/restaurant/invoices' \
--header 'Content-Type: application/json' \
--data '{
"invoiceType": "INVOICE",
"groupConsumption": false,
"invoiceUuid": "8c1d2e3f-4a5b-4c6d-8e7f-9a0b1c2d3e4f",
"subtotalAmount": 17,
"taxAmount": 2.55,
"totalAmount": 21.25,
"tipAmount": 1.7,
"customer": {
"id": 250,
"identificationNumber": "1790012345001"
},
"payments": [
{
"amount": 21.25,
"checkNumber": "000123",
"checkBank": "Banco Pichincha",
"checkType": "Al día",
"cardholderName": "María Pérez",
"cardVoucherNumber": "004512",
"bankTransactionReference": "TRX-778812",
"targetBank": "Banco Guayaquil",
"bankId": 2,
"sourceAccountNumber": "2203456789",
"creditMemoNumber": "001-001-000000045",
"observation": "Pago de la mesa 5",
"walletCode": "DEUNA",
"walletTransferNumber": "DN-99812",
"walletPostDated": false,
"pinpadTransaction": {
"configId": 2,
"provider": "datafast",
"protocol": "fastrack",
"terminalId": "DF000123",
"merchantId": "1000045678",
"terminalCid": "CID0045",
"approved": true,
"authorization": "458712",
"reference": "004512",
"batch": "000031",
"sequence": "000127",
"responseCode": "00",
"authorizerCode": "01",
"message": "APROBADA",
"maskedCard": "454545******4545",
"cardBrand": "VISA",
"acquirer": "datafast",
"readMode": "CHIP",
"status": "APPROVED",
"requiresReview": false,
"reverseAttempted": false,
"reverseSucceeded": false,
"transactionDate": "2026-09-24T20:08:41Z"
},
"paymentTerm": {
"id": 2,
"name": "30 días"
},
"paymentMethod": {
"id": 1,
"name": "Efectivo"
}
}
],
"details": [
{
"orderDetailId": 3310,
"orderId": 845,
"product": {
"id": 58,
"name": "Hamburguesa clásica"
},
"combo": {
"id": 7,
"name": "Combo clásico"
},
"quantity": 2,
"referenceCode": "HAM-001",
"description": "Hamburguesa clásica",
"discountAmount": 0,
"priceUnit": 8.5,
"taxAmount": 2.55,
"subtotalAmount": 17,
"totalAmount": 19.55,
"tax": {
"id": 4,
"rate": 15
}
}
]
}'