⇣ GET /products

The /products request will be made as a GET request to your callback_url for example: GET https://api.example.com/cc/callbacks/products.

Your response should have an HTTP status code of 200, and be a JSON array of all your products, options. For example:

{
  "HOHOZA": {
    "name": "Hop on Hop Off",
    "supplier": "[email protected]",
    "country": "ZA",
    "city": "CPT",
    "freesale": true,
    "time_zone": "Africa/Johannesburg",
    "options": {
      "1DAYPASS": { "name": "1 Day Pass" },
      "2DAYPASS": { "name": "2 Day Pass" }
		}
  },
  "WINETOUR": {
    "name": "Wine Tour",
    "supplier": null,
    "country": "ZA",
    "city": "CPT",
    "freesale": false,
    "time_zone": "Africa/Johannesburg",
    "options": {}
  }
}

A description of each field is given in the table in the section below.

FieldDescription
[*]Each product key is the code that you use to identify this product.
nameThe name of the product.
supplierThe supplier account email that owns and supplies this product.

All availability and reservation requests will then defer to that account instead of coming from yours.

Booking notifications will be delivered to both your account and their account.

Leave this blank if you are the original supplier of the product.
codeA unique code that uniquely identifies the product within your account.
countryThe ISO code representing the country
cityThe UN/LOCODE representing the city.
freesaleWhether this product can be sold without making a reservation or looking up availability first.
time_zoneThe IANA official timezone identifier for this product.
options[*]A list of options within the product, the key of the object identifies the option itself.
options[][name]The name of the option.