Re-Fetch Availability with search ID
You can use this method to fetch complete availability of a previous search.
| Method |
URL |
| GET |
api/v3/transfers/availability/<sid> |
Error Codes
| HTTP Status Code |
Error Code |
Description |
| 200 |
1501 |
No availability for the requested search criteria |
| 403 |
5003 |
Not authorised |
| 200 |
1504 |
Invalid search ID or it might have expired |
| 401 |
1102 |
Invalid API key |
Re-fetch Availability for a Single Transfer
You can use this method to re-fetch availability of a single transfer from a previous search.
| Method |
URL |
| GET |
api/v3/transfers/availability/<sid>?tcode=<tcode> |
- <tcode> refers to the ‘transfer_code’ returned in the search response.
- <sid> refers to the ‘search_id’ returned in the search response.
Response to this will be similar to the search response with results for just one transfer.
Error Codes
| HTTP Status Code |
Error Code |
Description |
| 200 |
1501 |
No availability for the requested search criteria |
| 200 |
1507 |
Invalid transfer code |
| 200 |
1504 |
Invalid search ID or it might have expired |
| 401 |
1102 |
Invalid API key |
| 404 |
5002 |
Hotel not found |
Fetch Cancellation Policies for the rate using rate-key
You can use this method to fetch the cancellation policies for the selected rate from the previous search if cancellation policy code is returned instead of cancellation policy.
Request
| Method |
URL |
| POST |
api/v3/transfers/availability/<sid>/rates/cancellation_policies/ |
Payload
| Attribute |
Type |
Required |
Description |
| rate_key |
string |
REQUIRED |
Refers to rate key returned in search response for the selected rate. |
| cp_code |
string |
REQUIRED |
Refers to cancellation policy code returned in search response. |
Sample Cancellation Policies Payload
{
"rate_key": "szgueavmvt6db4xhrhdqtf3wdwr3eau3vs",
"cp_code":"wcobnyltrv3xhbqi7lhg2f6q4hj2ns5c6g663vl6"
}
Sample Cancellation Policy Response
The response will be similar to the cancellation policies which are returned in the search response. Refer Cancellation Policy in search response for more info.
{
"under_cancellation": true,
"details": [
{
"from": "2016-11-22T08:35:19",
"flat_fee": 7153.14,
"currency": "INR"
}
],
"cancellation_policy_code": "uwird5tpwf3spucqu2nwigox4xmklqfm62zorvl63i",
"amount_type": "value"
}
Error Codes
| HTTP Status Code |
Error Code |
Description |
| 200 |
1504 |
Invalid search ID or it may have expired |
| 200 |
5146 |
No permissions / Not Authorised at supplier’s end |
| 200 |
5147 |
Supplier API is currently unavailable |
| 200 |
5140 |
Unknown Error at Supplier’s end |
| 200 |
2004 |
The booking item is not available/sold out |
| 200 |
2008 |
The rate_key is invalid/expired |
| 200 |
5102 |
cancellation_policies_code value/type is invalid |
| 200 |
5102 |
rate_key value/type is invalid |
| 200 |
5101 |
Field[name] is required |