---
agentTools:
  projectIndex: https://fletch.readme.io/llms.txt
---

# Quote Checkout

This API should be called after the quote-id create API. The response of this API is a checkout URL which can take user to the Fletch quote screen URL directly.

```
                 Copyright Fletch Technologies, Inc. 2026
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Awesome New API",
    "version": "2022-01-24"
  },
  "servers": [
    {
      "url": "https://sandbox-api.fletch.co"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/insurance/pet/quote-checkout": {
      "post": {
        "summary": "Quote Checkout",
        "description": "This API should be called after the quote-id create API. The response of this API is a checkout URL which can take user to the Fletch quote screen URL directly.",
        "operationId": "quote-checkout-copy",
        "parameters": [
          {
            "name": "X-API-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-API-VERSION",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "quote_id",
                  "partner_id"
                ],
                "properties": {
                  "quote_id": {
                    "type": "string",
                    "description": "Quote id from API endpoint /insurance/pet/quote-id"
                  },
                  "partner_id": {
                    "type": "string",
                    "description": "Unique for each partner. Write to us at info@fletch.co if not received yet."
                  }
                }
              },
              "examples": {
                "Request Example": {
                  "value": {
                    "quote_id": "ocf5b083-fb36-4338-b790-311a9fa2b2aa",
                    "partner_id": "af9e50c7-14a7-4dc7-bf16-2f194ba499c3"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"data\": {\n        \"quote_url\": \"https://<partner_url>.fletch.co/email?quote_id=ocf5b083-fb36-4338-b790-311a9fa2b2aa&utm_content=fletchtest&utm_medium=facebook\"\n    },\n    \"remarks\": {}\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "quote_url": {
                          "type": "string",
                          "example": "https://<partner_url>.fletch.co/email?quote_id=ocf5b083-fb36-4338-b790-311a9fa2b2aa&utm_content=fletchtest&utm_medium=facebook"
                        }
                      }
                    },
                    "remarks": {
                      "type": "object",
                      "properties": {}
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": {\n    \"code\": \"<ERROR_CODE>\",\n    \"message\": \"<ERROR_MESSAGE>\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "<ERROR_CODE>"
                        },
                        "message": {
                          "type": "string",
                          "example": "<ERROR_MESSAGE>"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "401",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n  \"errors\": {\n    \"code\": \"<ERROR_CODE>\",\n    \"message\": \"<ERROR_MESSAGE>\"\n  }\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "errors": {
                      "type": "object",
                      "properties": {
                        "code": {
                          "type": "string",
                          "example": "<ERROR_CODE>"
                        },
                        "message": {
                          "type": "string",
                          "example": "<ERROR_MESSAGE>"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false,
        "security": []
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "61e7c89a6a77a0004a43a349:671b53744014d400102de93c"
}
```