Skip to main content
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

x-api-key
string
header
required

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

id
string
required

Booking identifier.

Example:

"bkg_1"

Response

Refund rules for a booking.

data
object
required

Booking refund rules result.