Wiki

Clone wiki

API-2.0 / Booking_reschedule_policy

Method: GET

Path: /policy/reschedule

Return "booking reschedule" policy details. Applicable only when existing customer changes booking's date or time or arrival window.

Note: policy taken into account by Spots for booking when called for mode="reschedule". If spot not available because of the policy it will have past=true.

Example of response JSON (default policy)

{
  "custom": false
}
Default policy means:

  • customer can reschedule booking before 5pm on the previous day of service.
  • otherwise customer has to contact support

Example of response JSON (custom policy)

{
  "custom": true,
  "unit": "hour",
  "quantity": 8
}

Custom policy means:

  • customer can reschedule booking if more than quantity units (example: 8 hours) left until the booking's service date & time.
  • otherwise customer has to contact support

Where:

  • custom can be true or false
  • unit can be "hour" or "day"
  • quantity is integer value

Example request:

For production, replace https://acme-sandbox.l27.co with https://<your subdomain>.launch27.com

Replace BEARER_FROM_LOGIN with bearer from Login

curl -H "Content-Type: application/json" \
     -H 'Authorization: Bearer BEARER_FROM_LOGIN' \
     -X GET -k \
      https://acme-sandbox.l27.co/latest/policy/reschedule

Updated