Get transactions
After you have mapped the accounting schema, you need to import transaction data for a given property and time period. You can do this in the Finance API:
GET /finance/v1/accounts/export-gross-daily
Here’s an example:
{
"transactions":[
{
"timestamp":"2021-06-02T01:11:38Z",
"date":"2021-06-01",
"debitedAccount":{
"name":"Receivables for Reservation QJYHVZJB-1",
"number":"QJYHVZJB-1_Receivables",
"parentNumber":"1200",
"type":"Receivables"
},
"creditedAccount":{
"name":"Liabilities for Reservation QJYHVZJB-1 (7%)",
"number":"QJYHVZJB-1_Liabilities/Reduced:7.00",
"parentNumber":"3000",
"type":"Liabilities"
},
"command":"PostCharge",
"currency":"EUR",
"grossAmount":-95.00000000,
"netAmount":-88.78504673,
"taxes":[
{
"type":"Reduced",
"percent":7.0,
"amount":-6.21495327
}
],
"receipt":{
"type":"Reservation",
"number":"QJYHVZJB-1-V1"
},
"sourceEntryNumber":"000024833",
"reference":"QJYHVZJB-1",
"referenceType":"Guest"
}
..................
Next, you might want to convert this data to a format that can be ingested by your finance system.