Searches travel Plans for one or several Destinations. For UK domestic plans use POST /plans/search/domestic.
POST
/plans/search
curl \
--request POST 'https://zim.api.zimconnections.com/plans/search' \
--header "X-App-Identifier: $API_KEY" \
--header "Content-Type: application/json" \
--data '{
"payload": {
"destinations": [
{
"code": "FRA"
}
],
"durationDays": 10
}
}'
Request example
{
"payload": {
"destinations": [
{
"code": "FRA"
}
],
"durationDays": 10
}
}
Response examples (201)
[
{
"id": "plan_guaGulGcrqgTYboPvetgu",
"name": "France - 10GB - 14 days",
"isRecurring": false,
"recurringInterval": null,
"scope": "LOCAL",
"category": "REGULAR",
"type": "DATA",
"destination": {
"name": "France",
"isoAlpha3": "FRA"
},
"dataUnit": "GB",
"dataValue": 10,
"durationUnit": "DAYS",
"durationValue": 14,
"prices": [
{
"currencyISO": "usd",
"value": 1490,
"minorUnitsExponent": 2
}
]
}
]
Response examples (400)
{
"statusCode": 400,
"message": [
"property foo should not exist"
],
"error": "Bad Request"
}