Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Structure

Excerpt


FieldTypeRequiredDescription
id_folioInteger
Unique identifier for the invoice.
seriesString
Invoice serie.
numberInteger
Invoice number.
invoiceTypeInvoiceType
Type invoice
depositIdInteger

amendingInvoice

Reserved
amendingNegativeInvoice

Reserved
totalInvoiceDecimal
total invoice
grandTotalDecimal
total invoice
billToBillTo

invoiceLinesList of InvoiceLines

paymentsList of Payments

ticketsList of Tickets

totalDiscountDecimal

totalExteriorDecimal

totalExemptDecimal

totalBaseDecimal

invoiceBasesList of Bases



JSON representation

Code Block
languagepowershell
themeDJango
{
      "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"
        }
      }
}