Accounting Trevenque

Operation

Endpoint to get accounting information of Trevenque

GET
https://{environment}.ulysescloud.com/api/{version}/con/chain/{chainId}/property/{propertyId}/trevenque/data


Request

PropertyTypeRequiredType parameterDefault valueDescription
chainIdIntegertruepath parameter
Unique id for chain

propertyId

Integertruepath parameter
Unique id for property
startDateLocalDatetruerequest parameter
Initial date
endDateLocalDatetruerequest parameter
end date
offsetIntegerfalserequest parameter0
limitIntegerfalserequest parameter10

Example request

GET https://prod.ulysescloud.com/api/v1/chain/1/property/2/trevenque/data?startDate=2021-11-23&endDate=2021-11-23


Response

PropertyTypeRequiredDescription
PagePagetrueDescription of the response of the success operation

Entity 

Trevenque entity


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



Example response

{
  "count": 10,
  "offset": 0,
  "limit": 10,
  "list": [
   {
      "date": "2021-11-23",
      "customers": [
        {
          "accountingAccount": "",
          "address": "AVDA ALICANTE 170",
          "cityName": "MURCIA",
          "code": 141,
          "country": {
            "name": "SPAIN",
            "codeISO2": "ES"
          },
          "customerPayment": null,
          "customerType": {
            "code": "2",
            "name": "Company"
          },
          "document": {
            "number": "B73002099      ",
            "documentType": {
              "code": "03",
              "name": "Passport"
            }
          },
          "givenName": "PLAY ORENES (GRUPO ORENES)",
          "middleName": null,
          "namePrefix": null,
          "phoneNumber": "968242500               ",
          "postalCode": "30007     ",
          "state": null,
          "surname": null,
          "surname2": null,
          "email": "sonia.garcia@orenesgrupo.com"
        }
      ],
      "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": "A28229813",
              "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 MONETA 3",
            "state": null,
            "cityName": "ARMILLA",
            "code": null,
            "country": {
              "name": null,
              "codeISO2": null
            },
            "document": {
              "number": "24264739S",
              "documentType": {
                "code": "00",
                "name": "Spanish Id Document"
              }
            },
            "name": "LOPEZ , ENCARNI",
            "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": "B97174296",
              "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": "B97174296",
              "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"
            }
          }
        ]
      }
    } 
  ]
}