Structure
Field | Type | Required | Description |
---|---|---|---|
id_folio | Integer | Unique identifier for the invoice. | |
series | String | Invoice serie. | |
number | Integer | Invoice number. | |
invoiceType | InvoiceType | Type invoice | |
depositId | Integer | ||
amendingInvoice | Reserved | ||
amendingNegativeInvoice | Reserved | ||
totalInvoice | Decimal | total invoice | |
grandTotal | Decimal | total invoice | |
billTo | BillTo | ||
invoiceLines | List of InvoiceLines | ||
payments | List of Payments | ||
tickets | Tickets | ||
totalDiscount | Decimal | ||
totalExterior | Decimal | ||
totalExempt | Decimal | ||
totalBase | Decimal | ||
invoiceBases | List of invoiceBases |
JSON representation
{ "id_folio" : 54374, "series" : "F2359", "number" : 28, "invoiceType" : { "code" : "F2", "name" : "Factura Simplificada" }, "depositId" : null, "amendingInvoice" : null, "amendingNegativeInvoice" : null, "totalInvoice" : 5.000000, "grandTotal" : 5.000000, "billTo" : { "address" : "C/SIERRA N10", "state" : null, "cityName" : "TORREMOLINOS", "code" : "122", "country" : { "name" : "SPAIN", "codeISO2" : "ES" }, "document" : { "number" : "Z12584325 ", "documentType" : { "code" : "03", "name" : "Passport" } }, "name" : "TOUR DIEZ TRAVEL, S.L.", "postalCode" : "29620 ", "webPage" : null }, "invoiceLines" : [ { "accountingData" : { "accountingAccount" : "", "analityAccount" : null, "centerAccount" : null }, "concept" : { "code" : "MB", "name" : "Minibar" }, "productionDate" : "2021-11-23", "quantity" : 1, "tax" : { "percentage" : 10.000000, "code" : "IVA10", "name" : "IVA 10%", "quota" : 0.454545 }, "totalAmountWithTAX" : 5.000000, "unitaryPriceWithoutTAX" : 4.545455, "discount_Percentaje" : 0.000000, "totalNetAmount" : null, "depositID" : null, "ticketLine" : { "ticketNumber" : "4427893656", "ticketItems" : [ { "itemCode" : null, "name" : "AGUA SIN GAS", "quantity" : 2, "costCenter" : null, "amountAfterTax" : 2.500000 } ] } } ], "payments" : [ { "amount" : 5.000000, "depositId" : null, "paymentMethod" : { "type" : "", "code" : "EF", "name" : "Efectivo" } } }