Clone wiki

API-2.0 / Get_booking_frequencies

API method DEPRECATED, please use Frequencies for booking instead

Method: GET

Path: /api/bookings/booking_id/frequencies

Return list of frequencies available for selected booking. Returned list of frequencies contains all frequencies returned by List frequencies plus selected booking frequency even if it is currently deactivated

This call requires authentication so X-Authentication header must be present.

Parameters: booking_id (required)

Selected booking id.

Example response JSON

  {"id":3,"code":"bw","name":"Bi-weekly cleaning","percent":15.0},
  {"id":1,"code":"o","name":"One time cleaning","percent":0.0},
  {"id":2,"code":"w","name":"Weekly cleaning","percent":10.0}

Example requests:

For production, replace with https://<your subdomain>

(1) First, get auth token for

curl -H "X-API-Key: test_8kBFkhmf8TA7TZyQBh" \
    -H "Content-Type: application/json" \
    -X POST -k \
    -d '{"auth": {"email": "", "password":"trustno1"}}' \
(2) Get frequencies for booking with id 1:
curl -H "X-API-Key: test_8kBFkhmf8TA7TZyQBh" \
     -H "X-Authentication:" \
     -H "Content-Type: application/json" \
     -H "Accept: application/launch27.v2" \
     -X GET -k \