curl --request POST \
--url https://sandbox-api.fletch.co/insurance/pet/quote-details \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--header 'content-type: application/json' \
--data '{"quote_id": "<quote_id>", "provider_id": "<provider_id>"}'
{
"200": {},
"400": {},
"401": {}
}Pet insurance API
Quote Details
Get policy details from insurance providers after you create a quote ID.
POST
https://sandbox-api.fletch.co
/
insurance
/
pet
/
quote-details
curl --request POST \
--url https://sandbox-api.fletch.co/insurance/pet/quote-details \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--header 'content-type: application/json' \
--data '{"quote_id": "<quote_id>", "provider_id": "<provider_id>"}'
{
"200": {},
"400": {},
"401": {}
}This endpoint calls each insurance provider through the
provider_id. Each provider returns policy details. Call this endpoint after the create quote ID endpoint.
Headers and parameters
Body
curl --request POST \
--url https://sandbox-api.fletch.co/insurance/pet/quote-details \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--header 'content-type: application/json' \
--data '{"quote_id": "<quote_id>", "provider_id": "<provider_id>"}'