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

# Accept a quote

> Turns a quote into a draft application in the broker's portal, with the option you name recorded on it. A quote can be accepted one time: a second call is a 409 QUOTE_ALREADY_ACCEPTED carrying error.application_id, and retrying the first call with the same Idempotency-Key returns what that call stored (normally the 201). The application starts at requires_information: the broker reviews the policies, prices it and sends the agreement in the portal. Nothing is sent to the insured. Live keys only for now, and only for agencies Bridgeline has turned this on for (403 APPLICATIONS_NOT_ENABLED otherwise). With straight-through binding turned on for your agency, a clean deal has its price fixed at the option you name, and send: true also sends the agreement; the price is checked first (409 QUOTE_PRICE_CHANGED when it is no longer good).

Turns a quote into a draft application in your broker's Bridgeline portal, with the option you name recorded on it. The response is the [application](https://docs.bridgelinepf.com/concepts/applications.md), the same object [`GET /v1/applications/{id}`](https://docs.bridgelinepf.com/api-reference/applications/retrieve) returns.

* **`option_id` is required:** the id of one of the quote's `options`, such as `"opt_25_10"`. An id the quote doesn't have is a [`422 VALIDATION_FAILED`](https://docs.bridgelinepf.com/errors/VALIDATION_FAILED) on `option_id`.
* **The quote must carry the insured's full mailing address** (street, city, state and ZIP code) **and a `document_type` on every policy.** Send both when you [create the quote](https://docs.bridgelinepf.com/api-reference/quotes/create.md) if you plan to accept it; without them the accept is [`409 QUOTE_NOT_ACCEPTABLE`](https://docs.bridgelinepf.com/errors/QUOTE_NOT_ACCEPTABLE). A missing policy number or a quote-only document doesn't stop an accept; your broker handles those in the portal.
* **Live keys only, for now.** A test key that is otherwise allowed gets [`403 APPLICATIONS_NOT_ENABLED`](https://docs.bridgelinepf.com/errors/APPLICATIONS_NOT_ENABLED).
* **Off unless Bridgeline turns it on.** Accepting is enabled agency by agency, separately from API access. Until it's on for your agency, every call from a key that has API access is the same [`403 APPLICATIONS_NOT_ENABLED`](https://docs.bridgelinepf.com/errors/APPLICATIONS_NOT_ENABLED). Ask your Bridgeline contact.
* **`borrower_contact` is required:** the first name, last name and email of the person who will sign for the insured. `phone` is optional (see [the contact](#the-contact)).
* **`policies` is optional:** your agency's commission rate on each policy (see [commission](#commission)). It is required only with `send: true`.
* **One time only.** A quote becomes one application. A second accept is a [`409 QUOTE_ALREADY_ACCEPTED`](https://docs.bridgelinepf.com/errors/QUOTE_ALREADY_ACCEPTED), whichever option it names, and `error.application_id` is the application's id.
* **The same `Idempotency-Key` replays the `201`.** A call with the same key and body always gets back what the first call stored, and never runs the accept twice. Send a key on every call and keep it until you have an answer. [Retries](#retries) covers every case.
* Needs the `applications:write` scope.

## What you get

The application starts at `requires_information`. Your broker reviews the policies in the portal, prices it and sends the finance agreement from there. Accepting sends nothing to the insured and doesn't create an agreement or a loan, unless [straight-through binding](#straight-through-binding) is on for your agency and you send `send: true`.

* **We don't notify your broker.** Send them the application's `portal_url`, or they will find it in their applications list in the portal.
* **There are no webhooks yet.** To follow the deal, poll [`GET /v1/applications/{id}`](https://docs.bridgelinepf.com/api-reference/applications/retrieve) and watch `status` and `requirements`.
* `requirements.blocking` starts with `BROKER_REVIEW_REQUIRED`: your broker confirms the policy details first. Other items, such as `CARRIER_UNMATCHED` or `AM_BEST_UNRESOLVED`, appear when they apply.
* `accepted_option_id` is the option you named. It's a record of the choice, not a price lock: `pricing` stays `null` until your broker prices the application in the portal. With [straight-through binding](#straight-through-binding), a clean deal has its price fixed at that option instead.
* `price_guaranteed_until` is the quote's own [`price_guaranteed_until`](https://docs.bridgelinepf.com/concepts/indicative-quotes#how-long-a-price-holds): 7 days after the quote was priced.
* `quote_id` points back at the quote, and the quote's `status` becomes `accepted` with `application_id` set.
* The application belongs to the quote's broker. Send `broker_email` to give it to another active broker at your agency. If the quote's broker is no longer an active broker at your agency, it goes to your key's default broker.

### The insured

The policies come from the quote. Whose name and address the application carries depends on whether your agency already has the insured as a client:

* **A new insured:** a client is created with the quote's name and mailing address.
* **The same FEIN, or exactly the same name, as one existing client:** the application is linked to that client, which keeps the name and address it has on file. A blank address on file is filled from the quote. An address already on file is kept, even when the quote's differs.
* **A close but not identical name:** linked to the existing client only when the mailing address also matches. Otherwise a new client is created.
* **A matching name with a different FEIN:** never linked. A new client is created.

Matching looks at every client in your agency, with an agency key or a broker key, the same way the portal does: one business is one client at your agency, whoever added it. So a broker key's accept can link to a client another broker added, and the application then shows that client's name and address on file.

### What the quote assumed

Your broker reviews every value at the first step in the portal. Where the quote assumed something, this is what the application stores:

* A tax or fee you didn't mark as earned or not is stored as earned, and flagged as assumed. It is the only value that carries a marker.
* An `auditable` you didn't send is stored as auditable, which is how the quote priced it. It has no marker.
* A carrier rating we assumed is not stored, so your broker resolves it.

### The contact

* `first_name` and `last_name` are 1 to 100 characters each, in characters the finance agreement can print (Latin letters, accents included). Anything else is a `422` on that field.
* `phone` is optional and US only: ten digits with the area code first, and an optional extension of 1 to 6 digits (`713-555-0142 x204`). Without it the application lists `INSURED_PHONE_MISSING` in `requirements.blocking` until your broker adds one.
* The contact is stored on the application for the agreement. The API doesn't return it.

### Commission

`policies` states your agency's commission on each policy. It has one entry per policy, in the order the quote lists its policies:

```json theme={null}
"policies": [
  {"commission_rate": 0.125},
  {"commission_rate": 0.10}
]
```

* `commission_rate` is a fraction of the policy's **base premium**: `0.125` means 12.5%. Taxes, fees and your agency fee are not part of the base.
* It can be `0`. It must be below `1`, with at most 4 decimal places. `12.5` is a `422` that tells you to send `0.125`.
* Use `{}` for a policy you are not stating a rate for in this call. The number of entries must equal the number of policies, or the call is a `422` on `policies`.
* A rate you send is saved on the policy, so your broker sees it in the portal and a later [send](https://docs.bridgelinepf.com/api-reference/applications/send.md) can use it.
* Your agency fee is not sent here. It is on the quote, as [`policies[].agency_fee`](https://docs.bridgelinepf.com/api-reference/quotes/create).

We record exactly what you state and infer nothing. A rate you leave out is never guessed.

Once every policy has a rate, the application's [`payout`](https://docs.bridgelinepf.com/concepts/applications#payout) shows each policy's commission in dollars and how the financed premium divides between your agency and the billing company.

## Straight-through binding

Off unless Bridgeline turns it on for your agency, separately from accepting. With it off, this endpoint behaves exactly as described above, and `send: true` is a [`403 STRAIGHT_THROUGH_NOT_ENABLED`](https://docs.bridgelinepf.com/errors/STRAIGHT_THROUGH_NOT_ENABLED). With it on, three things change:

1. **The price is checked before anything is created, on every accept, whether or not you send `send`.** If the quote's price did not pass the [price check](https://docs.bridgelinepf.com/concepts/indicative-quotes.md#how-long-a-price-holds), the accept is refused with [`409 QUOTE_PRICE_CHANGED`](https://docs.bridgelinepf.com/errors/QUOTE_PRICE_CHANGED) and the reason, and nothing is created: the insured was shown a price that no longer holds, so create a new quote. This applies only to agencies with straight-through binding on. Without it, a quote can be accepted at any time before it expires, and your broker prices the application in the portal.

   If something on our side stops us running these checks (current rates can't be read, for example): with `send: true` the call fails with a [`503 SERVICE_UNAVAILABLE`](https://docs.bridgelinepf.com/errors/SERVICE_UNAVAILABLE) or a `500`, nothing is created, and you retry with the same key. Without `send` the accept still succeeds, on the portal path with no price fixed.
2. **A clean deal has its price fixed.** When nothing on the deal needs a person first, the application is created at the pricing step with `pricing` set to the option you named, and `straight_through.route` is `straight_through`. Its policies are not reviewed by your broker first, so send complete data on the quote. Otherwise the application takes the portal path exactly as above, and `straight_through.reasons` [says why](https://docs.bridgelinepf.com/concepts/applications.md#straight-through-reasons).
3. **`send: true` sends the agreement.** It needs `borrower_contact.phone`, a [`commission_rate`](#commission) for every policy, and the `agreements:write` scope ([`403 MISSING_SCOPE`](https://docs.bridgelinepf.com/errors/MISSING_SCOPE) without it; `applications:write` alone still accepts without `send`). A missing rate is a `422` naming the field, such as `policies[0].commission_rate`. Nothing is created, and the same `Idempotency-Key` works with the corrected body. When the price was fixed, we send the finance agreement to `borrower_contact` and the `201` reads `awaiting_signature`. Bridgeline emails the signing request to the insured. If it could not be sent, the `201` still comes back: the application exists and `agreement` is `null`. Call [`POST /v1/applications/{id}/send`](https://docs.bridgelinepf.com/api-reference/applications/send), which sends it or answers with the reason. On the portal path nothing is sent.

Without `send`, a fixed price waits: call [send](https://docs.bridgelinepf.com/api-reference/applications/send.md) later. A missing phone and a missing commission rate are the two gaps that don't stop the price being fixed; send them with the send call.

After the insured signs, a person at your agency still countersigns in the portal, and the down payment is collected as today.

## When a quote can't be accepted

| Response | Meaning | What to do |
| - | - | - |
| [`409 QUOTE_ALREADY_ACCEPTED`](https://docs.bridgelinepf.com/errors/QUOTE_ALREADY_ACCEPTED) | The quote already became an application | Read `error.application_id`. See [Retries](#retries) before you treat it as your own |
| [`409 QUOTE_EXPIRED`](https://docs.bridgelinepf.com/errors/QUOTE_EXPIRED) | The quote is past its `expires_at` | Create a new quote |
| [`409 QUOTE_NOT_ACCEPTABLE`](https://docs.bridgelinepf.com/errors/QUOTE_NOT_ACCEPTABLE) | The quote can never be accepted; `details[]` says why | Create a new quote with what the details name |
| [`409 QUOTE_PRICE_CHANGED`](https://docs.bridgelinepf.com/errors/QUOTE_PRICE_CHANGED) | Only with straight-through binding on, with or without `send`: the quoted price is no longer good; `details[]` says why | Create a new quote |
| [`422 VALIDATION_FAILED`](https://docs.bridgelinepf.com/errors/VALIDATION_FAILED) on `option_id` | The quote has no such option | Use an `id` from the quote's `options`, with a **new** `Idempotency-Key`: this answer is stored under the key you sent |
| [`422 VALIDATION_FAILED`](https://docs.bridgelinepf.com/errors/VALIDATION_FAILED) on `policies` or `policies[i].commission_rate` | `policies` doesn't have one entry per policy, a rate isn't a fraction below 1 with at most 4 decimal places, or `send: true` was sent without a rate for that policy | Correct the body. The same `Idempotency-Key` works: this answer is not stored |
| [`403 BROKER_NOT_ACTIVE`](https://docs.bridgelinepf.com/errors/BROKER_NOT_ACTIVE) on `broker_email` | `broker_email` isn't an active broker at your agency | Send an active broker's email, or leave it out |
| [`403 ACTING_BROKER_NOT_ALLOWED`](https://docs.bridgelinepf.com/errors/ACTING_BROKER_NOT_ALLOWED) on `broker_email` | A broker-scoped key named a different broker | Leave `broker_email` out, or use an agency key |
| [`404 NOT_FOUND`](https://docs.bridgelinepf.com/errors/NOT_FOUND) | No quote with this id that your key can see | Check the id and the key |

`send: true` without straight-through binding is a [`403 STRAIGHT_THROUGH_NOT_ENABLED`](https://docs.bridgelinepf.com/errors/STRAIGHT_THROUGH_NOT_ENABLED), and without `borrower_contact.phone` a `422`. Nothing is created in either case, and neither answer is stored under your `Idempotency-Key`.

## Retries

You can't get two applications from one quote, however you retry. What you need to know is whether the application exists and whether it is the one you asked for.

| What you got | What it means | What to do |
| - | - | - |
| `201` | The application was created | Done |
| `201` with `Idempotent-Replayed: true` | Your earlier call with this key created it | Done |
| No answer (timeout, network error) | Unknown | Send the same request again with the **same** key |
| `500` with `Idempotent-Replayed: true`, or [`500 IDEMPOTENCY_RECORD_LOST`](https://docs.bridgelinepf.com/errors/IDEMPOTENCY_RECORD_LOST) | The first call ended badly and this key will keep answering that. The application may exist | Read the quote. `status: accepted` with an `application_id` means it exists: use that id. `accepted` with `application_id: null` means the application was deleted: create a new quote. Otherwise accept again with a **new** key |
| Any other `500` | The call failed. The same key may run it again | Retry with the same key. If you still have no `201`, read the quote as above |
| `409 QUOTE_ALREADY_ACCEPTED` | The quote is accepted, by this call's earlier attempt or by a different call | Read `error.application_id`, then check it is yours (below) |
| `409 IDEMPOTENCY_REQUEST_IN_PROGRESS` | Your first call is still running | Wait for `Retry-After`, then retry with the same key |
| A `409` or `422` about the quote or the option, replayed | That answer is stored under the key | Fix the request and send it with a **new** key |

**When `QUOTE_ALREADY_ACCEPTED` is not your own accept.** A call with the same key never gets this code for an accept that same key completed: it gets the stored answer instead. You get it when you send a different key or no key, when your key is more than 24 hours old, or when your first call failed outright and another call accepted the quote before your retry. In those cases the application may come from that other call, with its option, contact and owner. Read it with [`GET /v1/applications/{id}`](https://docs.bridgelinepf.com/api-reference/applications/retrieve) and compare `accepted_option_id` and `client_reference_id` with what you sent.

**With a broker key, the application may not be yours to read.** An agency key can accept a broker's quote and name another broker as the owner. The quote still belongs to the first broker, so that broker's key reads it with `status: accepted` and the `application_id`, but `GET /v1/applications/{id}` answers [`404 NOT_FOUND`](https://docs.bridgelinepf.com/errors/NOT_FOUND) for that key, because a broker key reads only its own broker's applications.

The [idempotency guide](https://docs.bridgelinepf.com/guides/idempotency.md#accept-with-recovery) has a client that follows this table: it retries with the same key, starts a new key only when the old one can't succeed, and reads the quote to find an application that already exists.

## Your first live accept

Accepting works with live keys only, so your first call creates a real application.

* It appears in the owning broker's applications list in the portal.
* Bridgeline's operations team is notified of the new application, unless your agency is a demo account.
* Nothing is sent to the insured.
* To remove it, the broker or an agency admin deletes the application in the portal. That works until the borrower has signed the agreement.
* The quote stays `accepted` after that, with `application_id: null`. It can't be accepted again: another accept is [`409 QUOTE_NOT_ACCEPTABLE`](https://docs.bridgelinepf.com/errors/QUOTE_NOT_ACCEPTABLE) with `APPLICATION_REMOVED`. Create a new quote.

```bash cURL theme={null}
# Keep the key: a retry must send the same one.
IDEMPOTENCY_KEY=$(uuidgen)

curl -X POST https://portal.bridgelinepf.com/api/v1/quotes/qte_2lo4LFk5rf8toDFJHSUZ2O/accept \
  -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
  -H "Bridgeline-Version: 2026-09-23" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -d '{
    "option_id": "opt_25_10",
    "borrower_contact": {
      "first_name": "Ana",
      "last_name": "Reyes",
      "email": "ana@lonestarfab.example",
      "phone": "713-555-0142"
    },
    "broker_email": "maria@lonestarrisk.example",
    "client_reference_id": "EPIC-PROP-2026-0412"
  }'
```

```javascript Node theme={null}
// Keep the key: a retry must send the same one.
const idempotencyKey = crypto.randomUUID()

const res = await fetch(`https://portal.bridgelinepf.com/api/v1/quotes/${quoteId}/accept`, {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.BRIDGELINE_API_KEY}`,
    'Bridgeline-Version': '2026-09-23',
    'Content-Type': 'application/json',
    'Idempotency-Key': idempotencyKey,
  },
  body: JSON.stringify({
    option_id: 'opt_25_10',
    borrower_contact: {
      first_name: 'Ana',
      last_name: 'Reyes',
      email: 'ana@lonestarfab.example',
      phone: '713-555-0142',
    },
    broker_email: 'maria@lonestarrisk.example',
    client_reference_id: 'EPIC-PROP-2026-0412',
  }),
})
const application = await res.json()
```

```python Python theme={null}
import os
import uuid
import requests

# Keep the key: a retry must send the same one.
idempotency_key = str(uuid.uuid4())

res = requests.post(
    f"https://portal.bridgelinepf.com/api/v1/quotes/{quote_id}/accept",
    headers={
        "Authorization": f"Bearer {os.environ['BRIDGELINE_API_KEY']}",
        "Bridgeline-Version": "2026-09-23",
        "Idempotency-Key": idempotency_key,
    },
    json={
        "option_id": "opt_25_10",
        "borrower_contact": {
            "first_name": "Ana",
            "last_name": "Reyes",
            "email": "ana@lonestarfab.example",
            "phone": "713-555-0142",
        },
        "broker_email": "maria@lonestarrisk.example",
        "client_reference_id": "EPIC-PROP-2026-0412",
    },
    timeout=30,
)
application = res.json()
```

```json 201 theme={null}
{
  "id": "app_1rvJBK4j6przAMoe6NxpXJ",
  "object": "application",
  "livemode": true,
  "status": "requires_information",
  "created_via": "api",
  "quote_id": "qte_2lo4LFk5rf8toDFJHSUZ2O",
  "accepted_option_id": "opt_25_10",
  "pricing": null,
  "price_guaranteed_until": "2026-11-22T15:04:05Z",
  "straight_through": null,
  "agreement": null,
  "payout": null,
  "cancellation": null,
  "insured": {
    "name": "Lone Star Fabrication LLC",
    "address": {
      "line1": "1200 Industrial Blvd",
      "city": "Houston",
      "state": "TX",
      "postal_code": "77002"
    }
  },
  "broker": {"email": "maria@lonestarrisk.example"},
  "policies": [
    {
      "id": "pol_2o9fj1oLkchQ9qNzyigGf8",
      "carrier": {"name": "Scottsdale Insurance Company", "match": "pending"},
      "total": "48585.85",
      "effective_date": "2026-10-15",
      "expiration_date": "2027-10-15",
      "document_type": "binder",
      "policy_number": "CPS7712045"
    }
  ],
  "requirements": {
    "blocking": [
      {
        "code": "BROKER_REVIEW_REQUIRED",
        "param": null,
        "description": "The broker has not finished reviewing the policy details in the portal yet.",
        "due_by": null
      },
      {
        "code": "CARRIER_UNMATCHED",
        "param": "policies[pol_2o9fj1oLkchQ9qNzyigGf8].carrier",
        "description": "We haven't matched this policy's carrier to our carrier records yet. Bridgeline resolves this; carrier notices wait for it.",
        "due_by": null
      }
    ],
    "outstanding": []
  },
  "portal_url": "https://portal.bridgelinepf.com/application/3d6f1c2e-9a3b-4d4c-8e5f-60718293a4b5",
  "client_reference_id": "EPIC-PROP-2026-0412",
  "metadata": {},
  "created_at": "2026-11-17T15:04:05Z"
}
```

```json 409 Already accepted theme={null}
{
  "error": {
    "type": "conflict",
    "code": "QUOTE_ALREADY_ACCEPTED",
    "message": "This quote was already accepted. Its application is app_1rvJBK4j6przAMoe6NxpXJ.",
    "application_id": "app_1rvJBK4j6przAMoe6NxpXJ",
    "doc_url": "https://docs.bridgelinepf.com/errors#QUOTE_ALREADY_ACCEPTED",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

```json 403 Not turned on theme={null}
{
  "error": {
    "type": "permission",
    "code": "APPLICATIONS_NOT_ENABLED",
    "message": "Creating applications through the API is not enabled for this agency. Contact Bridgeline.",
    "doc_url": "https://docs.bridgelinepf.com/errors#APPLICATIONS_NOT_ENABLED",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```


## OpenAPI

````yaml POST /v1/quotes/{id}/accept
openapi: 3.1.0
info:
  title: Bridgeline Public API
  version: '2026-09-23'
  description: >-
    Premium finance quotes and applications for agencies, and partner quotes for
    distribution partners (the endpoints under /v1/partner/). Authenticate with
    an API key: an agency admin creates agency and broker keys in the Bridgeline
    portal under API Keys; a distribution partner's admin creates partner keys
    in the partner console under Settings, then API keys. Scopes: `quotes:read`
    (Read quotes), `quotes:write` (Create quotes and replace their links),
    `applications:read` (Read applications), `applications:write` (Accept a
    quote into an application), `agreements:write` (Send and void finance
    agreements). `loans:read` and `webhooks:manage` are reserved for endpoints
    that are not built yet and allow nothing today.
servers:
  - url: https://portal.bridgelinepf.com/api
    description: Production
security:
  - bearerAuth: []
paths:
  /v1/quotes/{id}/accept:
    post:
      tags:
        - Quotes
      summary: Accept a quote
      description: >-
        Turns a quote into a draft application in the broker's portal, with the
        option you name recorded on it. A quote can be accepted one time: a
        second call is a 409 QUOTE_ALREADY_ACCEPTED carrying
        error.application_id, and retrying the first call with the same
        Idempotency-Key returns what that call stored (normally the 201). The
        application starts at requires_information: the broker reviews the
        policies, prices it and sends the agreement in the portal. Nothing is
        sent to the insured. Live keys only for now, and only for agencies
        Bridgeline has turned this on for (403 APPLICATIONS_NOT_ENABLED
        otherwise). With straight-through binding turned on for your agency, a
        clean deal has its price fixed at the option you name, and send: true
        also sends the agreement; the price is checked first (409
        QUOTE_PRICE_CHANGED when it is no longer good).
      operationId: acceptQuote
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            description: The quote id (qte_…).
          description: The quote id (qte_…).
        - name: Bridgeline-Version
          in: header
          required: false
          description: >-
            API version (a date). Defaults to the version the API key is pinned
            to (set when the key is created); only a released version is
            accepted. Every response echoes the version used.
          schema:
            type: string
            enum:
              - '2026-09-23'
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Retrying with the same key and body within 24h replays the original
            response.
          schema:
            type: string
            minLength: 1
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                option_id:
                  type: string
                  description: >-
                    The option to accept: an id from the quote's options
                    (opt_<down payment percent>_<term months>).
                borrower_contact:
                  type: object
                  properties:
                    first_name:
                      description: >-
                        First name of the person who will sign for the insured.
                        1 to 100 characters after trimming, in characters the
                        financing agreement can print (Latin letters, accents
                        included).
                      minLength: 1
                      maxLength: 100
                      type: string
                    last_name:
                      description: Their last name. The same rules as first_name.
                      minLength: 1
                      maxLength: 100
                      type: string
                    email:
                      type: string
                      maxLength: 254
                      format: email
                      pattern: >-
                        ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                      description: >-
                        Where the financing agreement is sent for signature.
                        Stored on the application; not returned by the API.
                    phone:
                      description: >-
                        Optional. A US phone number only (ten digits, area code
                        first), with an optional extension of 1 to 6 digits:
                        "713-555-0142" or "713-555-0142 x204". Without it the
                        application lists INSURED_PHONE_MISSING in
                        requirements.blocking until the broker adds one. The
                        contact is stored on the application but not returned by
                        the API.
                      anyOf:
                        - type: string
                          maxLength: 40
                        - type: 'null'
                  required:
                    - first_name
                    - last_name
                    - email
                  additionalProperties: false
                  description: Who signs the financing agreement for the insured. Required.
                broker_email:
                  description: >-
                    The broker who will own the application. Omit it to keep the
                    quote's broker (or, if that broker is no longer active, the
                    key's default broker).
                  anyOf:
                    - type: string
                      format: email
                      pattern: >-
                        ^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
                    - type: 'null'
                client_reference_id:
                  description: Your own id for this application. Stored and returned as is.
                  anyOf:
                    - type: string
                      minLength: 1
                      maxLength: 255
                    - type: 'null'
                metadata:
                  anyOf:
                    - type: object
                      propertyNames:
                        type: string
                      additionalProperties:
                        type: string
                        maxLength: 500
                    - type: 'null'
                policies:
                  description: >-
                    Each policy's commission, one entry per policy in the order
                    the quote lists its policies. Use {} for a policy you are
                    not stating a rate for. The number of entries must equal the
                    number of policies.
                  anyOf:
                    - minItems: 1
                      maxItems: 25
                      type: array
                      items:
                        type: object
                        properties:
                          commission_rate:
                            description: >-
                              The agency's commission on this policy, as a
                              fraction of its base premium: 0.125 means 12.5%.
                              From 0 to below 1, with at most 4 decimal places.
                              0 is allowed. null or omitted: nothing is stated
                              for this policy in this call.
                            minimum: 0
                            exclusiveMaximum: 1
                            type:
                              - number
                              - 'null'
                        additionalProperties: false
                    - type: 'null'
                send:
                  description: >-
                    true: when the price is fixed at this option, also send the
                    finance agreement to borrower_contact for signature. Needs
                    borrower_contact.phone, a commission_rate for every policy
                    (policies), the agreements:write scope, and straight-through
                    binding turned on for your agency (403
                    STRAIGHT_THROUGH_NOT_ENABLED otherwise). The 201 says
                    whether it was sent: status awaiting_signature, and
                    Bridgeline emails the signing request to the insured. If
                    agreement is null, call POST /v1/applications/{id}/send for
                    the reason.
                  type:
                    - boolean
                    - 'null'
              required:
                - option_id
                - borrower_contact
              additionalProperties: false
      responses:
        '201':
          description: The application the quote became.
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: app_…
                  object:
                    type: string
                    const: application
                  livemode:
                    type: boolean
                  status:
                    type: string
                    enum:
                      - processing
                      - requires_information
                      - ready_for_agreement
                      - awaiting_signature
                      - pending_activation
                      - active
                      - canceled
                    description: >-
                      processing, requires_information (an item in
                      requirements.blocking holds the agreement back),
                      ready_for_agreement, awaiting_signature (the agreement was
                      sent), pending_activation (the borrower signed; the loan
                      goes live once the down payment settles and the agreement
                      is countersigned), active (final), canceled (final;
                      cancellation says why). New values may be added: treat an
                      unknown one as "in progress". Additional values may be
                      added.
                    x-extensible-enum: true
                  created_via:
                    type: string
                    enum:
                      - api
                      - portal
                      - email
                    description: >-
                      api: accepted from a quote through the API. portal:
                      created in the Bridgeline portal. email: created from an
                      email to an intake address. Additional values may be
                      added.
                    x-extensible-enum: true
                  quote_id:
                    description: >-
                      The application's current quote (qte_…), or null when it
                      has none.
                    type:
                      - string
                      - 'null'
                  accepted_option_id:
                    description: >-
                      The option chosen when the application was created from a
                      quote (opt_…): accepted through POST
                      /v1/quotes/{id}/accept, or picked with "I'm interested" on
                      a partner's quote link. Null otherwise. A record of the
                      choice, not a price lock.
                    type:
                      - string
                      - 'null'
                  pricing:
                    anyOf:
                      - type: object
                        properties:
                          option_id:
                            description: >-
                              opt_<down payment percent>_<term months>; null
                              when the down payment is not a whole percent.
                            type:
                              - string
                              - 'null'
                          down_payment_rate:
                            type: number
                            description: 'A fraction: 0.25 means 25%.'
                          term_months:
                            type: integer
                            minimum: -9007199254740991
                            maximum: 9007199254740991
                          apr:
                            type: number
                            description: 'A fraction: 0.25 means 25%.'
                          down_payment:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: >-
                              US dollars, a decimal string with two decimal
                              places.
                          amount_financed:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: >-
                              US dollars, a decimal string with two decimal
                              places.
                          monthly_payment:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: >-
                              US dollars, a decimal string with two decimal
                              places.
                          finance_charge:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: >-
                              US dollars, a decimal string with two decimal
                              places.
                          total_of_payments:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: >-
                              US dollars, a decimal string with two decimal
                              places.
                          total_cost:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: >-
                              US dollars, a decimal string with two decimal
                              places.
                          selected_by:
                            type: string
                            enum:
                              - broker
                              - system
                            description: >-
                              broker: the broker picked these terms in the
                              portal. system: fixed without a broker choosing
                              it: the option accepted through the API on a
                              straight-through application, or our recommended
                              option, which the broker kept. Additional values
                              may be added.
                            x-extensible-enum: true
                        required:
                          - option_id
                          - down_payment_rate
                          - term_months
                          - apr
                          - down_payment
                          - amount_financed
                          - monthly_payment
                          - finance_charge
                          - total_of_payments
                          - total_cost
                          - selected_by
                      - type: 'null'
                    description: >-
                      The terms the broker has priced in the portal, which the
                      agreement will carry; once the agreement is sent, its own
                      terms. null until the application reaches pricing.
                      total_of_payments is amount_financed + finance_charge, as
                      on the agreement; total_cost is down_payment +
                      total_of_payments.
                  price_guaranteed_until:
                    description: >-
                      The accepted quote's price_guaranteed_until: 7 days after
                      that quote was priced. null when the application was not
                      accepted from a quote through the API.
                    type:
                      - string
                      - 'null'
                  straight_through:
                    anyOf:
                      - type: object
                        properties:
                          route:
                            type: string
                            enum:
                              - straight_through
                              - portal_path
                              - managed_in_portal
                            description: >-
                              straight_through: the price is fixed at the
                              accepted option and the agreement can be sent
                              through the API. portal_path: the broker reviews,
                              prices and sends in the portal. managed_in_portal:
                              the price was fixed, and an agent has since
                              changed it in the portal; the API no longer sends
                              this application. Additional values may be added.
                            x-extensible-enum: true
                          reasons:
                            type: array
                            items:
                              type: object
                              properties:
                                code:
                                  type: string
                                param:
                                  type:
                                    - string
                                    - 'null'
                                description:
                                  type: string
                              required:
                                - code
                                - param
                                - description
                            description: >-
                              Why the deal is on the portal path. Empty on the
                              other routes. New codes may be added.
                        required:
                          - route
                          - reasons
                      - type: 'null'
                    description: >-
                      Whether this application can go to the insured without a
                      portal visit. null for an application that was not
                      accepted with straight-through binding turned on.
                  agreement:
                    anyOf:
                      - type: object
                        properties:
                          sent_at:
                            type:
                              - string
                              - 'null'
                        required:
                          - sent_at
                      - type: 'null'
                    description: >-
                      The finance agreement, once it has been sent (by your
                      broker or through the API). null before that. Bridgeline
                      emails the signing request to the insured; the
                      application's status says where it stands.
                  payout:
                    anyOf:
                      - type: object
                        properties:
                          confirmed_at:
                            description: >-
                              When these figures were recorded for the agreement
                              that was sent. null before an agreement is sent:
                              the figures are then worked out from what is on
                              each policy now.
                            type:
                              - string
                              - 'null'
                          policies:
                            type: array
                            items:
                              type: object
                              properties:
                                id:
                                  type: string
                                  description: The policy (pol_…), as in policies.
                                commission_rate:
                                  type: number
                                  description: >-
                                    The agency's commission as a fraction of the
                                    policy's base premium: 0.125 means 12.5%.
                                commission:
                                  type: string
                                  pattern: ^-?\d+\.\d{2}$
                                  description: >-
                                    Base premium times commission_rate, rounded
                                    half up to the cent.
                                agency_fee:
                                  type: string
                                  pattern: ^-?\d+\.\d{2}$
                                  description: >-
                                    The agency's own fee on this policy. 0.00
                                    when the quote stated none.
                              required:
                                - id
                                - commission_rate
                                - commission
                                - agency_fee
                          due_to_agency:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: Every commission plus every agency fee.
                          due_to_billing_company:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: total minus due_to_agency.
                          total:
                            type: string
                            pattern: ^-?\d+\.\d{2}$
                            description: >-
                              The total premium financed: every policy total,
                              taxes, fees and agency fees included.
                        required:
                          - confirmed_at
                          - policies
                          - due_to_agency
                          - due_to_billing_company
                          - total
                      - type: 'null'
                    description: >-
                      The agency's commission and agency fee on each policy, and
                      how the financed premium divides between the agency and
                      the billing company. null until every policy has a
                      commission rate. We record exactly what you state and
                      infer nothing.
                  cancellation:
                    anyOf:
                      - type: object
                        properties:
                          reason:
                            type: string
                            enum:
                              - price_lapsed
                            description: >-
                              price_lapsed: the quote behind the fixed price had
                              expired (it was more than 30 days old) when the
                              agreement was about to be sent. New values may be
                              added. Additional values may be added.
                            x-extensible-enum: true
                          at:
                            type: string
                            description: When the application was canceled.
                        required:
                          - reason
                          - at
                      - type: 'null'
                    description: >-
                      Why and when the application was canceled. null unless
                      status is canceled. A canceled application is closed for
                      good: create a new quote to start again.
                  insured:
                    type: object
                    properties:
                      name:
                        type:
                          - string
                          - 'null'
                      address:
                        type: object
                        properties:
                          line1:
                            type:
                              - string
                              - 'null'
                          city:
                            type:
                              - string
                              - 'null'
                          state:
                            type:
                              - string
                              - 'null'
                          postal_code:
                            type:
                              - string
                              - 'null'
                        required:
                          - line1
                          - city
                          - state
                          - postal_code
                    required:
                      - name
                      - address
                  broker:
                    type: object
                    properties:
                      email:
                        type: string
                    required:
                      - email
                    description: The broker who owns the application.
                  policies:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            pol_… (22 characters on an application; a quote's
                            policy ids are 8).
                        carrier:
                          type: object
                          properties:
                            name:
                              type:
                                - string
                                - 'null'
                            match:
                              type: string
                              enum:
                                - matched
                                - pending
                              description: >-
                                matched once the carrier is linked to our
                                carrier records. Additional values may be added.
                              x-extensible-enum: true
                          required:
                            - name
                            - match
                        total:
                          anyOf:
                            - type: string
                              pattern: ^-?\d+\.\d{2}$
                              description: >-
                                US dollars, a decimal string with two decimal
                                places.
                            - type: 'null'
                          description: >-
                            Premium plus all taxes and fees; null when not known
                            yet.
                        effective_date:
                          anyOf:
                            - type: string
                              description: A calendar date, YYYY-MM-DD.
                            - type: 'null'
                        expiration_date:
                          anyOf:
                            - type: string
                              description: A calendar date, YYYY-MM-DD.
                            - type: 'null'
                        document_type:
                          anyOf:
                            - type: string
                              enum:
                                - quote
                                - binder
                                - policy
                              description: Additional values may be added.
                              x-extensible-enum: true
                            - type: 'null'
                        policy_number:
                          description: >-
                            null when missing, or when only a placeholder such
                            as "TBD" is on file.
                          type:
                            - string
                            - 'null'
                      required:
                        - id
                        - carrier
                        - total
                        - effective_date
                        - expiration_date
                        - document_type
                        - policy_number
                  requirements:
                    type: object
                    properties:
                      blocking:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              description: >-
                                Stable, machine-readable code. Branch on this,
                                never on description.
                            param:
                              description: >-
                                Where the fix goes, e.g.
                                policies[pol_…].policy_number, insured.address,
                                signer.borrower or pricing; null when no single
                                field applies.
                              type:
                                - string
                                - 'null'
                            description:
                              type: string
                            due_by:
                              anyOf:
                                - type: string
                                  description: A calendar date, YYYY-MM-DD.
                                - type: 'null'
                              description: >-
                                The date an outstanding policy number or
                                document is owed by: 30 days after the agreement
                                is executed (the carrier notice deadline); null
                                before execution. Always null for blocking
                                items, and for CARRIER_UNMATCHED and
                                INSURED_ADDRESS_INCOMPLETE, which have no
                                deadline of their own.
                          required:
                            - code
                            - param
                            - description
                            - due_by
                        description: >-
                          Must clear before the agreement can be sent.
                          CARRIER_UNMATCHED and INSURED_ADDRESS_INCOMPLETE are
                          listed here early but do not hold the status back yet.
                          Empty once the agreement is sent (except
                          AGREEMENT_DECLINED).
                      outstanding:
                        type: array
                        items:
                          type: object
                          properties:
                            code:
                              type: string
                              description: >-
                                Stable, machine-readable code. Branch on this,
                                never on description.
                            param:
                              description: >-
                                Where the fix goes, e.g.
                                policies[pol_…].policy_number, insured.address,
                                signer.borrower or pricing; null when no single
                                field applies.
                              type:
                                - string
                                - 'null'
                            description:
                              type: string
                            due_by:
                              anyOf:
                                - type: string
                                  description: A calendar date, YYYY-MM-DD.
                                - type: 'null'
                              description: >-
                                The date an outstanding policy number or
                                document is owed by: 30 days after the agreement
                                is executed (the carrier notice deadline); null
                                before execution. Always null for blocking
                                items, and for CARRIER_UNMATCHED and
                                INSURED_ADDRESS_INCOMPLETE, which have no
                                deadline of their own.
                          required:
                            - code
                            - param
                            - description
                            - due_by
                        description: >-
                          Owed after signing, by due_by. Never blocks the
                          agreement.
                    required:
                      - blocking
                      - outstanding
                    description: >-
                      What's left on the deal. New codes may be added: show
                      description for a code you don't know.
                  portal_url:
                    type: string
                    description: >-
                      Where the broker works on this application in the
                      Bridgeline portal (requires a portal login).
                  client_reference_id:
                    type:
                      - string
                      - 'null'
                  metadata:
                    type: object
                    propertyNames:
                      type: string
                    additionalProperties:
                      type: string
                  created_at:
                    type: string
                required:
                  - id
                  - object
                  - livemode
                  - status
                  - created_via
                  - quote_id
                  - accepted_option_id
                  - pricing
                  - price_guaranteed_until
                  - straight_through
                  - agreement
                  - payout
                  - cancellation
                  - insured
                  - broker
                  - policies
                  - requirements
                  - portal_url
                  - client_reference_id
                  - metadata
                  - created_at
                description: >-
                  A deal in progress toward a signed premium finance agreement
                  and loan.
        '400':
          description: Malformed request (bad JSON, version or header).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing, invalid, revoked or expired API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            API access not enabled for this agency (API_ACCESS_NOT_ENABLED for a
            live key, TEST_MODE_NOT_ENABLED for a test key), an API key whose
            type cannot call this endpoint (KEY_TYPE_NOT_ALLOWED), missing
            scope, or the acting broker is not active. APPLICATIONS_NOT_ENABLED:
            accepting quotes is not turned on for this agency, or the key is a
            test key. STRAIGHT_THROUGH_NOT_ENABLED: sending agreements through
            the API (which also needs accepting quotes) is not turned on for
            this agency, or the key is a test key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found (also returned for other agencies' ids).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            Idempotency-Key reused with a different request, or still in flight.
            QUOTE_EXPIRED: the quote has expired. QUOTE_ALREADY_ACCEPTED: the
            quote already became an application. QUOTE_NOT_ACCEPTABLE: the quote
            can never be accepted (see details); create a new quote.
            QUOTE_PRICE_CHANGED: the quoted price is no longer good (see
            details); nothing was created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation failed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited. See Retry-After.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: >-
            Internal error. A retry with the same Idempotency-Key either replays
            this 500 (Idempotent-Replayed: true) or runs the call again. Either
            way, if you still have no 201, read the quote: status accepted means
            the application exists (application_id). Otherwise accept again with
            a new key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            Temporarily unable to serve the request (e.g. pricing inputs
            unavailable). Retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - type
            - code
            - message
            - doc_url
            - request_id
          properties:
            type:
              type: string
              enum:
                - invalid_request
                - authentication
                - permission
                - not_found
                - conflict
                - rate_limit
                - api_error
              description: The broad category of the error. Additional values may be added.
              x-extensible-enum: true
            code:
              type: string
              description: >-
                Stable, machine-readable error code. Branch on this, never on
                `message`.
              examples:
                - INVALID_REQUEST
                - INVALID_JSON
                - INVALID_API_VERSION
                - INVALID_PAGINATION
                - IDEMPOTENCY_KEY_REQUIRED
                - IDEMPOTENCY_KEY_INVALID
                - VALIDATION_FAILED
                - INVALID_API_KEY
                - KEY_REVOKED
                - KEY_EXPIRED
                - MISSING_SCOPE
                - BROKER_NOT_ACTIVE
                - DEFAULT_BROKER_INACTIVE
                - ACTING_BROKER_NOT_ALLOWED
                - API_ACCESS_NOT_ENABLED
                - TEST_MODE_NOT_ENABLED
                - TEST_MODE_ONLY
                - KEY_TYPE_NOT_ALLOWED
                - APPLICATIONS_NOT_ENABLED
                - STRAIGHT_THROUGH_NOT_ENABLED
                - NOT_FOUND
                - METHOD_NOT_ALLOWED
                - IDEMPOTENCY_KEY_REUSED
                - IDEMPOTENCY_REQUEST_IN_PROGRESS
                - QUOTE_EXPIRED
                - QUOTE_ALREADY_INTERESTED
                - QUOTE_ALREADY_ACCEPTED
                - QUOTE_NOT_ACCEPTABLE
                - QUOTE_PRICE_CHANGED
                - APPLICATION_NOT_SENDABLE
                - APPLICATION_PRICE_LAPSED
                - APPLICATION_CANCELED
                - AGREEMENT_ALREADY_SIGNED
                - AGREEMENT_NOT_VOIDABLE
                - APPLICATION_MANAGED_IN_PORTAL
                - RATE_LIMITED
                - INTERNAL
                - IDEMPOTENCY_RECORD_LOST
                - SERVICE_UNAVAILABLE
            message:
              type: string
            param:
              type: string
            details:
              type: array
              items:
                type: object
                required:
                  - code
                  - message
                properties:
                  code:
                    type: string
                  message:
                    type: string
                  param:
                    type: string
            application_id:
              type: string
              description: >-
                Only on QUOTE_ALREADY_ACCEPTED: the id (app_…) of the
                application the quote became. It may have been created by a
                different call than yours.
            doc_url:
              type: string
              format: uri
            request_id:
              type: string
              pattern: ^req_
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: bl_live_… or bl_test_… API key.

````

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