Skip to main content

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 : https://demo-api.frontpayment.no/api/v1/connect/reservations/history/{{START_TIMESTAMP}}/{{END_TIMESTAMP}}
Method : GET
Authorization : Bearer
Response Structure :

 

// Success
{
    "status_code": 200,
    "status_message": "OK",
    "message": "reservationRetrievedSuccessfully",
    "is_data": true,
    "data": [
        {
            "uuid": "String",
            "title": "Slug String",
            "datetime": "String",
            "sentTo": "String|Nullable",
            "actionBy": "String|Nullable",
            "note": "String|Nullable",
            "paymentMethod": "String|Nullable",
            "isRefundable": "Boolean",
            "amount": "String|Nullable"
        }
    ]
}
Example Response :

 

{
    "status_code": 200,
    "status_message": "OK",
    "message": "reservationRetrievedSuccessfully",
    "is_data": true,
    "data": [
        {
            "uuid": "RES3410395156",
            "title": "payment-link-sent-to-customer",
            "datetime": "21.01.2024 03:48",
            "sentTo": " [email protected]",
            "actionBy": null,
            "note": null,
            "paymentMethod": null,
            "isRefundable": false,
            "amount": null
        },
        {
            "uuid": "RES3410395156",
            "title": "payment-link-opened",
            "datetime": "21.01.2024 03:48",
            "sentTo": null,
            "actionBy": null,
            "note": null,
            "paymentMethod": null,
            "isRefundable": false,
            "amount": null
        },
        {
            "uuid": "RES3410395156",
            "title": "amount-reserved",
            "datetime": "21.01.2024 03:49",
            "sentTo": null,
            "actionBy": null,
            "note": null,
            "paymentMethod": "Mastercard",
            "isRefundable": false,
            "amount": "1000"
        },
        {
            "uuid": "CAP4177153446",
            "title": "amount-captured-from-reservation",
            "datetime": "21.01.2024 03:50",
            "sentTo": null,
            "actionBy": "Kari Nordmann",
            "note": "CAP4177153446",
            "paymentMethod": "Mastercard",
            "isRefundable": true,
            "amount": "1000"
        },
        {
            "uuid": "CHA2428736831",
            "title": "amount-charged-from-card",
            "datetime": "21.01.2024 03:51",
            "sentTo": "[email protected]",
            "actionBy": "Kari Nordmann",
            "note": "CHA2428736831",
            "paymentMethod": "Mastercard",
            "isRefundable": true,
            "amount": "1500"
        },
        {
            "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"
        },
        {
            "uuid": "RES3410395156",
            "title": "reservation-completed",
            "datetime": "21.01.2024 04:07",
            "sentTo": null,
            "actionBy": "Kari Nordmann",
            "note": "Test by Naya",
            "paymentMethod": null,
            "isRefundable": false,
            "amount": null
        },
        {
            "uuid": "CHA2428736831",
            "title": "refund-sent",
            "datetime": "21.01.2024 10:52",
            "sentTo": "+4746567468, [email protected]",
            "actionBy": null,
            "note": null,
            "paymentMethod": null,
            "isRefundable": false,
            "amount": "100"
        }
    ]
}