Charge

https://api.minical.io/v2/booking/get_booking_charges Get Booking Charges

This endpoint allows you to get charges of a booking.

Parameter

Header

X-API-KEY string API key

Body

booking_id integer PMS Booking ID

company_id integer PMS Property ID

Responses

200 Charges successfully retrieved.
[
    {
        "charge_id": "192",
        "description": "",
        "date_time": null,
        "booking_id": "450",
        "amount": "50.00",
        "is_deleted": "0",
        "charge_type_id": "8490024049",
        "selling_date": "2020-06-25",
        "user_id": "88",
        "customer_id": "8490850795",
        "pay_period": "0",
        "is_night_audit_charge": "0"
    },
    {
        "charge_id": "202",
        "description": "Premium Package",
        "date_time": null,
        "booking_id": "450",
        "amount": "50.00",
        "is_deleted": "0",
        "charge_type_id": "8490024658",
        "selling_date": "2020-06-25",
        "user_id": "88",
        "customer_id": "8490850795",
        "pay_period": "0",
        "is_night_audit_charge": "0"
    }
]
404 Could not find to matching this query.
{
    "status": false,
    "error": "Unknown method."
}

Request Body

{
   "company_id": "8490006340",
   "booking_id": "450"
}

https://api.minical.io/v2/booking/add_booking_charges Add Booking Charges

This endpoint allows you to add charges of a booking.

Parameter

Header

X-API-KEY string API key

Body

charges/description string Description about charge

charges/booking_id integer PMS Booking ID

charges/amount number Charge amount

charges/charge_type_id integer PMS charge type id (service charge etc.)

charges/selling_date string Date on which you want to add charge

company_id integer PMS Property ID

Responses

200 Charges successfully added.
{ 
   "status": "success" 
}
404 Could not find to matching this query.
{
    "status": false,
    "error": "Unknown method."
}

Request Body

    "company_id": "8490006340",
    "charges":[
        {
            "description": "first charge",
            "booking_id": "450",
            "amount": "50.00",
            "charge_type_id": "8490024049",
            "selling_date": "2020-06-25"
        },
        {
            "description": "daily charge",
            "booking_id": "450",
            "amount": "50.00",
            "charge_type_id": "8490024049",
            "selling_date": "2020-06-25"
        }
    ]
}

Last updated