Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 7 Current »

Structure

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

ticketsTickets

totalDiscountDecimal

totalExteriorDecimal

totalExemptDecimal

totalBaseDecimal

invoiceBasesList 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,
              "depositId": null,
              "paymentMethod": {
                "type": "",
                "code": "EF",
                "name": "Efectivo"
              }
            }
          ],
          "tickets": {
            "initial": "0172776012",
            "final": "4427893656"
          },
          "totalDiscount": 0,
          "totalExterior": 0,
          "totalExempt": 0,
          "totalBase": 4.545455,
          "invoiceBases": [
            {
              "percentage": 10,
              "quota": 0.454545,
              "base": 4.545455
            }
          ]
}
  • No labels