Get Reservation History
The Get Reservation History By thisTime Frame API enables you to retrieve all events forassociated allwith reservations can be retrieved within a specified time frame.range. If no timestamptime frame is given,provided, the default is the last 24 hours will be the default time frame.hours. Start and end timestamp format should be in Unix Format (ex: 1706674723).
This endpoint is useful for:
- Monitoring reservation activities over a specific period.
- Auditing and troubleshooting reservation events.
- Generating reports on reservation actions and statuses.
Endpoint
GET https://demo-api.frontpayment.no/api/v1/connect/reservations/history/{{START_TIMESTAMP}}/{{END_TIMESTAMP}}
Authorization
Include a Bearer Token in the Authorization
header. You can obtain this token from Front Payment.
Example:
Authorization: Bearer YOUR_FRONTPAYMENT_BEARER_TOKEN
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"
}
]
}