⇡ GET /rates
The /rates request must be made as a GET request to https://api.cityconnect.net/v1/rates. You must use your email and token created in your account as HTTP Basic Authentication header to authenticate the request.
You must make the GET request, with the following as URL parameters:
| Parameter | Description |
|---|---|
| product | The product code |
| option | The option code (optional) |
| date | The date of travel |
| time | The tour departure time time (if applicable, products with opening hours can omit this) |
| pickup | The pickup requested by the customer (optional) |
| promotion | A promotion code used for getting specific discounts on rates. (optional) |
If you're looking for an indicative price before the customer has chosen the date of travel, you can pick today's date and allow the customer to chose.
{
"adult": {
"rrp": 10.5,
"net": 8.0,
"discount": 2.0
},
"child": {
"rrp": 8.0,
"net": 5.5,
"discount": 0.0
},
"senior": {
"rrp": 6.0,
"net": 10.5,
"discount": 0.0
}
}
The values are as follows:
| Parameter | Description |
|---|---|
[*] | The type of ticket |
[*][rrp] | The recommended retail price to sell the ticket at to the customer. |
[*][net] | The net rate that you will be charged by the supplier for this ticket. |
[*][discount] | The discount that has been applied to both the RRP and NET rates for this date. |
Updated about 8 years ago
