Get Reservation History By Time Frame
By this API all events for all reservations can be retrieved within a time frame. If no timestamp is given, the last 24 hours will be the default time frame. Start and end timestamp format should be in Unix Format (ex: 1706674723).
Endpoint
GET https://demo-api.frontpayment.no/api/v1/connect/reservations/history/{{START_TIMESTAMP}}/{{END_TIMESTAMP}}
Authorization
To access this endpoint, include a Bearer Token
in the Authorization
header of your request. You can obtain this token from Frontpayment.
Response
A successful request will return a 200 OK
status with the following JSON payload:
{
"status_code": 200,
"status_message": "OK",
"message": "reservationRetrievedSuccessfully",
"is_data": true,
"data": [
{
"uuid": "RES3410395156",
"title": "refund-sent-from-captured",
"datetime": "21.01.2024 04:00",
"sentTo": "",
"actionBy": null,
"note": null,
"paymentMethod": null,
"isRefundable": false,
"amount": "100"
},
{
"uuid": "RES3410395156",
"title": "refund-sent-from-charged",
"datetime": "21.01.2024 04:03",
"sentTo": "",
"actionBy": null,
"note": null,
"paymentMethod": null,
"isRefundable": false,
"amount": "200"
}
]
}