⇣ 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.
| Field | Description |
|---|---|
[*] | Each product key is the code that you use to identify this product. |
name | The name of the product. |
supplier | The 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. |
code | A unique code that uniquely identifies the product within your account. |
country | The ISO code representing the country |
city | The UN/LOCODE representing the city. |
freesale | Whether this product can be sold without making a reservation or looking up availability first. |
time_zone | The 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. |
Updated over 8 years ago
