curl --request POST \
--url https://sandbox-api.fletch.co/insurance/renter/purchase-policy \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--data '{
"quote_id": "5beb5bf1-9ace-499d-962f-fdcab13e8b46",
"frequency": "Monthly",
"provider_id": "8dd5dc7f-5b2f-11ed-b7b8-022ba8acf776",
"partner_id": "05d56312-1d92-11ef-8f83-022ba8acf776",
"billing_address": {},
"mailing_address": {},
"payment": {
"payment_mode": "CARD",
"card_token": "tok_1RMV0QABEmQDiiL2wD0zcGPC"
}
}'
{
"data": {
"display_message": "Your purchase is complete",
"image": "",
"policy_holder_id": "",
"policy_id": "LP54FBFC7",
"policy_url": "https://files-sandbox.public.lmndsandbox.com/tokens/lftkn-m5i4kchh4emm16q6i69m?inline=true"
}
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}
Renters insurance API
Purchase Policy
Purchase a renters insurance policy for a selected quote and provider.
POST
https://sandbox-api.fletch.co
/
insurance
/
renter
/
purchase-policy
curl --request POST \
--url https://sandbox-api.fletch.co/insurance/renter/purchase-policy \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--data '{
"quote_id": "5beb5bf1-9ace-499d-962f-fdcab13e8b46",
"frequency": "Monthly",
"provider_id": "8dd5dc7f-5b2f-11ed-b7b8-022ba8acf776",
"partner_id": "05d56312-1d92-11ef-8f83-022ba8acf776",
"billing_address": {},
"mailing_address": {},
"payment": {
"payment_mode": "CARD",
"card_token": "tok_1RMV0QABEmQDiiL2wD0zcGPC"
}
}'
{
"data": {
"display_message": "Your purchase is complete",
"image": "",
"policy_holder_id": "",
"policy_id": "LP54FBFC7",
"policy_url": "https://files-sandbox.public.lmndsandbox.com/tokens/lftkn-m5i4kchh4emm16q6i69m?inline=true"
}
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}
This endpoint purchases a renters insurance policy for a selected provider quote. Send the quote ID, provider ID, and billing frequency. Send a tokenized payment method. A successful response includes the bound policy ID and a link to the policy document.
Headers and parameters
Body
This object contains the billing address. You can omit it when it matches the residence address.
curl --request POST \
--url https://sandbox-api.fletch.co/insurance/renter/purchase-policy \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-API-Key: YOUR_API_KEY' \
--header 'X-API-VERSION: YOUR_API_VERSION' \
--data '{
"quote_id": "5beb5bf1-9ace-499d-962f-fdcab13e8b46",
"frequency": "Monthly",
"provider_id": "8dd5dc7f-5b2f-11ed-b7b8-022ba8acf776",
"partner_id": "05d56312-1d92-11ef-8f83-022ba8acf776",
"billing_address": {},
"mailing_address": {},
"payment": {
"payment_mode": "CARD",
"card_token": "tok_1RMV0QABEmQDiiL2wD0zcGPC"
}
}'
Responses
{
"data": {
"display_message": "Your purchase is complete",
"image": "",
"policy_holder_id": "",
"policy_id": "LP54FBFC7",
"policy_url": "https://files-sandbox.public.lmndsandbox.com/tokens/lftkn-m5i4kchh4emm16q6i69m?inline=true"
}
}
{
"errors": {
"code": "<ERROR_CODE>",
"message": "<ERROR_MESSAGE>"
}
}