> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fletch.co/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Fletch makes insurance products discoverable to and purchasable by AI agents, while the carrier keeps control of product rules, disclosures, consent, and payments. Fletch provides agentic commerce and agentic distribution for insurance, including APIs, an MCP server, a Web SDK, and journeys in assistants such as ChatGPT. Company overview: https://fletch.co/llms.txt. Agentic commerce: https://fletch.co/ai/. Contact: info@fletch.co.

# Purchase Policy

> Purchase a renters insurance policy for a selected quote and provider.

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

**X-API-Key** `string` *required*

X-API-Key

**X-API-VERSION** `string` *required*

X-API-VERSION

## Body

**quote\_id** `string` *required*

Quote id to purchase.

**frequency** `string` *required*

Billing frequency. Valid values are `Monthly` and `Yearly`.

**provider\_id** `string` *required*

Provider id returned by the generate quote endpoint.

**partner\_id** `string` *required*

Unique identifier for the partner.

**billing\_address** `object`

This object contains the billing address. You can omit it when it matches the residence address.

**mailing\_address** `object`

Mailing address. Optional when it matches the residence address.

**payment** `object` *required*

Payment details.

**payment.payment\_mode** `string` *required*

Payment mode. For example `CARD`.

**payment.card\_token** `string` *required*

Tokenized card reference obtained from the payment tokenization flow.

```bash cURL theme={"dark"}
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** `object`

Purchase result.

**data.display\_message** `string`

This field contains a human-readable confirmation message.

**data.policy\_id** `string`

Identifier of the bound policy.

**data.policy\_url** `string`

Link to the policy document.

**data.policy\_holder\_id** `string`

Identifier of the policy holder when available.

**data.image** `string`

Optional provider image URL.

```json 200 theme={"dark"}
{
  "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"
  }
}
```

```json 401 theme={"dark"}
{
  "errors": {
    "code": "<ERROR_CODE>",
    "message": "<ERROR_MESSAGE>"
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.