curl --request POST \
--url https://sandbox-api.fletch.co/insurance/travel/v1/api/check-servicable-area \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--data '{
"partner_id": "6a2d6a44-a5a4-45ac-97d7-2fabc59d2f13",
"zip_code": "60090"
}'
{
"data": {
"city": "Wheeling",
"servicable": "True",
"state": "Illinois",
"state_code": "IL"
},
"status": "success"
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}
Travel insurance API
Check Serviceable Area
Check whether travel insurance is available for a specified ZIP code.
POST
https://sandbox-api.fletch.co
/
insurance
/
travel
/
v1
/
api
/
check-servicable-area
curl --request POST \
--url https://sandbox-api.fletch.co/insurance/travel/v1/api/check-servicable-area \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--data '{
"partner_id": "6a2d6a44-a5a4-45ac-97d7-2fabc59d2f13",
"zip_code": "60090"
}'
{
"data": {
"city": "Wheeling",
"servicable": "True",
"state": "Illinois",
"state_code": "IL"
},
"status": "success"
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}
Check whether a domestic location is in the travel insurance coverage area before you generate a quote. Send the partner ID and five-digit ZIP code.
Headers and parameters
Body
Unique identifier for the partner. Write to info@fletch.co if you have not received yours.
curl --request POST \
--url https://sandbox-api.fletch.co/insurance/travel/v1/api/check-servicable-area \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--data '{
"partner_id": "6a2d6a44-a5a4-45ac-97d7-2fabc59d2f13",
"zip_code": "60090"
}'
Responses
{
"data": {
"city": "Wheeling",
"servicable": "True",
"state": "Illinois",
"state_code": "IL"
},
"status": "success"
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}