curl --request POST \
--url https://sandbox-api.fletch.co/v1/api/check-serviceable-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": "05d56312-1d92-11ef-8f83-022ba8acf776",
"tenant_id": "",
"zip_code": "10038"
}'
{
"data": {
"city": "",
"serviceable": "True",
"state": ""
}
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}
Renters insurance API
Check Serviceable Area
Check whether renters insurance is available for a specified ZIP code.
POST
https://sandbox-api.fletch.co
/
v1
/
api
/
check-serviceable-area
curl --request POST \
--url https://sandbox-api.fletch.co/v1/api/check-serviceable-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": "05d56312-1d92-11ef-8f83-022ba8acf776",
"tenant_id": "",
"zip_code": "10038"
}'
{
"data": {
"city": "",
"serviceable": "True",
"state": ""
}
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}
Check whether renters insurance is available at a prospect’s location before you create 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/v1/api/check-serviceable-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": "05d56312-1d92-11ef-8f83-022ba8acf776",
"tenant_id": "",
"zip_code": "10038"
}'
Responses
{
"data": {
"city": "",
"serviceable": "True",
"state": ""
}
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}