Trevenque

Structure

FieldTypeRequiredDescription
dateLocalDatetrueDate of operation
customersList of Customer
List of customers
productionList of Production
List of Production
invoicingList of Invoicing
List of invoicing
creditAssessmentsList of  CreditAssessments
List of credit assessments
receiptList of Receipt
List of Receipt
summarySummary
Summary of totals

JSON representation

{
  
    {
      "date": "2021-11-23",
      "customers": [
        {
          "accountingAccount": "",
          "address": "AVDA ALICANTE 70",
          "cityName": "MURCIA",
          "code": 141,
          "country": {
            "name": "SPAIN",
            "codeISO2": "ES"
          },
          "customerPayment": null,
          "customerType": {
            "code": "2",
            "name": "Company"
          },
          "document": {
            "number": "J73002099      ",
            "documentType": {
              "code": "03",
              "name": "Passport"
            }
          },
          "givenName": "PLAY ORENES (GRUPO ORO)",
          "middleName": null,
          "namePrefix": null,
          "phoneNumber": "888242500               ",
          "postalCode": "30007     ",
          "state": null,
          "surname": null,
          "surname2": null,
          "email": "sonia.garcia@otesd.es"
        }
      ],
      "production": [
        {
          "amount": 788,
          "accountingData": {
            "accountingAccount": "",
            "analityAccount": null,
            "centerAccount": null
          },
          "concept": {
            "code": "BOOK",
            "name": "BOOKING"
          }
        },
        {
          "amount": 6321.28,
          "accountingData": {
            "accountingAccount": "",
            "analityAccount": null,
            "centerAccount": null
          },
          "concept": {
            "code": "CR",
            "name": "Crédito"
          }
        }
      ],
      "invoicing": [
        {
          "id_folio": 54456,
          "series": "F359",
          "number": 18153336,
          "invoiceType": {
            "code": "F1",
            "name": "Factura Ordinaria"
          },
          "depositId": null,
          "amendingInvoice": null,
          "amendingNegativeInvoice": null,
          "totalInvoice": 78,
          "grandTotal": 78,
          "billTo": {
            "address": "AVD CANTABRIA Nº 51",
            "state": null,
            "cityName": "MADRID",
            "code": "454",
            "country": {
              "name": "SPAIN",
              "codeISO2": "ES"
            },
            "document": {
              "number": "X58229513",
              "documentType": {
                "code": "03",
                "name": "Passport"
              }
            },
            "name": "EL CORTE INGLES VIAJES",
            "postalCode": "28042",
            "webPage": null
          },
          "invoiceLines": [
            {
              "accountingData": {
                "accountingAccount": "",
                "analityAccount": null,
                "centerAccount": null
              },
              "concept": {
                "code": "IN",
                "name": "Individual"
              },
              "productionDate": "2021-11-22",
              "quantity": 1,
              "tax": {
                "percentage": 10,
                "code": "IVA10",
                "name": "IVA 10%",
                "quota": 7.090909
              },
              "totalAmountWithTAX": 78,
              "unitaryPriceWithoutTAX": 70.909091,
              "discount_Percentaje": 0,
              "totalNetAmount": null,
              "depositID": null,
              "ticketLine": null
            },
            {
              "accountingData": {
                "accountingAccount": "",
                "analityAccount": null,
                "centerAccount": null
              },
              "concept": {
                "code": "ALM",
                "name": "Almuerzo"
              },
              "productionDate": "2021-11-22",
              "quantity": 1,
              "tax": {
                "percentage": 10,
                "code": "IVA10",
                "name": "IVA 10%",
                "quota": 0
              },
              "totalAmountWithTAX": 0,
              "unitaryPriceWithoutTAX": 0,
              "discount_Percentaje": 0,
              "totalNetAmount": null,
              "depositID": null,
              "ticketLine": null
            },
            {
              "accountingData": {
                "accountingAccount": "",
                "analityAccount": null,
                "centerAccount": null
              },
              "concept": {
                "code": "CEN",
                "name": "Cena"
              },
              "productionDate": "2021-11-22",
              "quantity": 1,
              "tax": {
                "percentage": 10,
                "code": "IVA10",
                "name": "IVA 10%",
                "quota": 0
              },
              "totalAmountWithTAX": 0,
              "unitaryPriceWithoutTAX": 0,
              "discount_Percentaje": 0,
              "totalNetAmount": null,
              "depositID": null,
              "ticketLine": null
            },
            {
              "accountingData": {
                "accountingAccount": "",
                "analityAccount": null,
                "centerAccount": null
              },
              "concept": {
                "code": "BRK",
                "name": "Desayuno"
              },
              "productionDate": "2021-11-23",
              "quantity": 1,
              "tax": {
                "percentage": 10,
                "code": "IVA10",
                "name": "IVA 10%",
                "quota": 0
              },
              "totalAmountWithTAX": 0,
              "unitaryPriceWithoutTAX": 0,
              "discount_Percentaje": 0,
              "totalNetAmount": null,
              "depositID": null,
              "ticketLine": null
            }
          ],
          "payments": [
            {
              "amount": 78,
              "depositId": null,
              "paymentMethod": {
                "type": "",
                "code": "CR",
                "name": "Crédito"
              }
            }
          ],
          "tickets": {
            "initial": "",
            "final": ""
          },
          "totalDiscount": 0,
          "totalExterior": 0,
          "totalExempt": 0,
          "totalBase": 70.909091,
          "invoiceBases": [
            {
              "percentage": 10,
              "quota": 7.090909,
              "base": 70.909091
            }
          ]
        }
      ],
      "creditAssessments": [],
      "receipt": [
        {
          "receiptid": {
            "number": 7,
            "series": "RC"
          },
          "payment": {
            "amount": 240,
            "depositId": null,
            "paymentMethod": {
              "type": "",
              "code": "EF",
              "name": "Efectivo"
            }
          },
          "billTo": {
            "address": "CALLE TEODORO JUAN 3",
            "state": null,
            "cityName": "ARMILLA",
            "code": null,
            "country": {
              "name": null,
              "codeISO2": null
            },
            "document": {
              "number": "94264739X",
              "documentType": {
                "code": "00",
                "name": "Spanish Id Document"
              }
            },
            "name": "LOPEZ , MARIA",
            "postalCode": "GRANADA",
            "webPage": null
          }
        },
        {
          "receiptid": {
            "number": 8,
            "series": "RC"
          },
          "payment": {
            "amount": 1447,
            "depositId": null,
            "paymentMethod": {
              "type": "",
              "code": "TR",
              "name": "Transferencia"
            }
          },
          "billTo": {
            "address": "AVDA CID 25",
            "state": null,
            "cityName": "VALENCIA",
            "code": "1664",
            "country": {
              "name": "SPAIN",
              "codeISO2": "ES"
            },
            "document": {
              "number": "FAA7174296",
              "documentType": {
                "code": "03",
                "name": "Passport"
              }
            },
            "name": "PROGEST CONSULTORIA Y SERVICIOS S.L.",
            "postalCode": "46018",
            "webPage": null
          }
        },
        {
          "receiptid": {
            "number": 9,
            "series": "RC"
          },
          "payment": {
            "amount": 1447,
            "depositId": null,
            "paymentMethod": {
              "type": "",
              "code": "TR",
              "name": "Transferencia"
            }
          },
          "billTo": {
            "address": "AVDA CID 25",
            "state": null,
            "cityName": "VALENCIA",
            "code": "1664",
            "country": {
              "name": "SPAIN",
              "codeISO2": "ES"
            },
            "document": {
              "number": "J971374296",
              "documentType": {
                "code": "03",
                "name": "Passport"
              }
            },
            "name": "PROGEST CONSULTORIA Y SERVICIOS S.L.",
            "postalCode": "46018",
            "webPage": null
          }
        }
      ],
      "summary": {
        "totalInvoicing": {
          "amount": 31591.6345,
          "ordinaryAmount": 0,
          "depositAmount": 3134,
          "amendingAmount": 0,
          "amendingNegativeAmount": 0,
          "totalBase": 28503.799819,
          "totalExterior": 0,
          "totalExempt": 0,
          "totalInvoiceBases": [
            {
              "percentage": 10,
              "quota": 2634.512368,
              "base": 26345.122132
            },
            {
              "percentage": 21,
              "quota": 453.322313,
              "base": 2158.677687
            }
          ]
        },
        "totalPayments": [
          {
            "amount": 788,
            "paymentMethod": {
              "type": "",
              "code": "BOOK",
              "name": "BOOKING"
            }
          },
          {
            "amount": 6321.2945,
            "paymentMethod": {
              "type": "",
              "code": "CR",
              "name": "Crédito"
            }
          },
          {
            "amount": 1609.09,
            "paymentMethod": {
              "type": "",
              "code": "EF",
              "name": "Efectivo"
            }
          },
          {
            "amount": 18624.2,
            "paymentMethod": {
              "type": "",
              "code": "TR",
              "name": "Transferencia"
            }
          },
          {
            "amount": 5286.09,
            "paymentMethod": {
              "type": "",
              "code": "VI",
              "name": "Visa"
            }
          }
        ]
      }
}