Get refund rules for a booking
curl --request GET \
--url https://staging.api.prexsell.com/v2/bookings/{id}/refund-rules \
--header 'x-api-key: <api-key>'{
"data": {
"refundRules": [
{
"orderId": "ord_abc",
"rules": [
{
"id": "rule_1",
"hours": 24,
"amount": 800
},
{
"id": "rule_2",
"hours": 6,
"amount": 400
}
]
},
{
"orderId": "ord_def",
"rules": [
{
"id": "rule_3",
"hours": 24,
"amount": 800
}
]
}
]
}
}Bookings
Get refund rules for a booking
Returns refund rules for each partner-owned order within a booking. Authenticated via the api-key header; data scoped to the callerโs partner. Returns 404 when the booking does not exist or does not belong to the actorโs partner. Fixes legacy defect 3 (IDOR) and defect 4 (500 on unknown ID).
GET
/
v2
/
bookings
/
{id}
/
refund-rules
Get refund rules for a booking
curl --request GET \
--url https://staging.api.prexsell.com/v2/bookings/{id}/refund-rules \
--header 'x-api-key: <api-key>'{
"data": {
"refundRules": [
{
"orderId": "ord_abc",
"rules": [
{
"id": "rule_1",
"hours": 24,
"amount": 800
},
{
"id": "rule_2",
"hours": 6,
"amount": 400
}
]
},
{
"orderId": "ord_def",
"rules": [
{
"id": "rule_3",
"hours": 24,
"amount": 800
}
]
}
]
}
}Authorizations
Partner API key, sent in the x-api-key request header. Required for bookable offer search and all booking operations. To obtain a key, register as a PREXSELL partner in the backoffice (backoffice.prexsell.com, or staging.backoffice.prexsell.com for staging) and contact support if you need help.
Path Parameters
Booking identifier.
Example:
"bkg_1"
Response
Refund rules for a booking.
Booking refund rules result.
Show child attributes
Show child attributes
โI
