> ## 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 and send the agreement

> Turn a quote into an application and, with straight-through binding, send the finance agreement to the insured without anyone opening the portal.

This guide takes one deal from quote to an agreement out for signature, through the API alone. It needs two things Bridgeline turns on agency by agency: accepting quotes, and **straight-through binding** for sending. Without straight-through binding, accept still works and your broker sends the agreement from the portal.

> [!WARNING]
>
> Test keys can't accept or send. [`POST /v1/quotes/{id}/accept`](https://docs.bridgelinepf.com/api-reference/quotes/accept), [`send`](https://docs.bridgelinepf.com/api-reference/applications/send) and [`void`](https://docs.bridgelinepf.com/api-reference/applications/void) take live keys only, so your first accept creates a real application and your first send emails a real signing request. Rehearse it safely as described in [a safe first run](#a-safe-first-run).

You need a live agency key with `quotes:write`, `quotes:read`, `applications:read`, `applications:write` and `agreements:write`.

## 1. Quote with everything a binding needs

Straight-through binding sends an agreement nobody reviewed, so the quote must state every fact a broker would otherwise confirm. Anything unstated or assumed puts the deal on the portal path instead. This body states them all:

```bash theme={null}
EFFECTIVE=$(date -u +%F)
EXPIRES=$(date -u -d '+365 days' +%F 2>/dev/null || date -u -v+365d +%F)  # GNU date, or BSD/macOS date

QUOTE=$(curl -s https://portal.bridgelinepf.com/api/v1/quotes \
  -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
  -H "Bridgeline-Version: 2026-09-23" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "client_reference_id": "EPIC-PROP-2026-0412",
    "insured": {
      "name": "Lone Star Fabrication LLC",
      "fein": "74-0000000",
      "address": {
        "line1": "1200 Industrial Blvd",
        "city": "Houston",
        "state": "TX",
        "postal_code": "77002"
      }
    },
    "policies": [
      {
        "premium": "46100.00",
        "taxes_and_fees": [
          {"description": "Surplus lines tax (4.85%)", "amount": "2235.85", "earned": false},
          {"description": "Policy fee", "amount": "250.00", "earned": true}
        ],
        "minimum_earned": {"rate": 0.25},
        "effective_date": "'"$EFFECTIVE"'",
        "expiration_date": "'"$EXPIRES"'",
        "carrier": {"name": "Scottsdale Insurance Company", "naic_code": "41297"},
        "coverages": [{"type": "general_liability"}],
        "auditable": false,
        "document_type": "binder",
        "policy_number": "CPS7712045"
      }
    ]
  }' | tee quote.json | jq -r .id)
OPTION=$(jq -r .recommended_option_id quote.json)
echo "$QUOTE $OPTION"
```

The quote is kept in `quote.json`, its id in `$QUOTE` and its recommended option in `$OPTION` (this needs [`jq`](https://jqlang.org)). Check `eligibility.status` in `quote.json` before you go on.

What each part settles:

| Field | Why it's needed for a straight-through deal | If it's missing |
| - | - | - |
| `insured.address` with `line1`, `city`, `state`, `postal_code` | The agreement and the carrier notice need a full mailing address | Accept is refused: [`409 QUOTE_NOT_ACCEPTABLE`](https://docs.bridgelinepf.com/errors/QUOTE_NOT_ACCEPTABLE) |
| `document_type` on every policy | Says whether the policy is bound | Accept is refused: `409 QUOTE_NOT_ACCEPTABLE` |
| `document_type: "binder"` or `"policy"`, and a real `policy_number` | A bound policy with its number | Portal path: `QUOTE_ONLY_DOCUMENT` or `MISSING_POLICY_NUMBER` |
| `taxes_and_fees`, each with `earned` stated (`[]` when there are none) | Nothing about the amount financed is assumed | Portal path: `TAXES_AND_FEES_NOT_PROVIDED` or `FEE_EARNED_UNCONFIRMED` |
| `minimum_earned` | The carrier's minimum earned premium, stated | Portal path: `MINIMUM_EARNED_UNCONFIRMED` |
| `auditable` | Stated, not assumed | Portal path: `AUDITABLE_UNCONFIRMED` |
| An exact coverage `type` from [the list](https://docs.bridgelinepf.com/guides/coverage-types.md) | Nothing mapped from free text | Portal path: `COVERAGE_TYPE_MAPPED` |
| `carrier.name` (and `naic_code` if you have it) | We match the carrier to our records and look up its AM Best rating | Portal path: `CARRIER_UNMATCHED` or `AM_BEST_UNRESOLVED` |

Some reasons depend on our records or your agency's setup, not on the body: a carrier we haven't matched yet, an insured close to but not the same as an existing client, or nobody at your agency able to countersign. The full list is under [straight-through reasons](https://docs.bridgelinepf.com/concepts/applications.md#straight-through-reasons).

The quote must also be [eligible](https://docs.bridgelinepf.com/concepts/eligibility.md). The next step accepts its recommended option; to accept another, set `$OPTION` to any `id` in `options`.

## 2. Accept and send

Accept the option, name the person who signs for the insured, state your commission on each policy, and ask to send:

```bash theme={null}
APP=$(curl -s "https://portal.bridgelinepf.com/api/v1/quotes/$QUOTE/accept" \
  -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
  -H "Bridgeline-Version: 2026-09-23" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "option_id": "'"$OPTION"'",
    "borrower_contact": {
      "first_name": "Dana",
      "last_name": "Whitfield",
      "email": "dana@lonestarfab.example",
      "phone": "713-555-0142"
    },
    "policies": [{"commission_rate": 0.125}],
    "send": true
  }' | tee application.json | jq -r .id)
echo "$APP"
```

The application is kept in `application.json` and its id in `$APP`.

* `borrower_contact` is required. `phone` is optional on a plain accept and required with `send: true`.
* `policies` has one entry per policy of the quote, in order. With `send: true` every policy needs a `commission_rate`: a fraction of the base premium, so `0.125` is 12.5%.
* Keep the `Idempotency-Key` until you have an answer. See [accept with recovery](https://docs.bridgelinepf.com/guides/idempotency.md#accept-with-recovery).

On a clean deal the price is fixed at that option and the agreement goes out. The `201` is the application, now `awaiting_signature`, and Bridgeline emails the signing request to `borrower_contact.email`:

```json 201 Created theme={null}
{
  "id": "app_1rvJBK4j6przAMoe6NxpXJ",
  "object": "application",
  "livemode": true,
  "status": "awaiting_signature",
  "created_via": "api",
  "quote_id": "qte_2lo4LFk5rf8toDFJHSUZ2O",
  "accepted_option_id": "opt_25_10",
  "pricing": {
    "option_id": "opt_25_10",
    "down_payment_rate": 0.25,
    "term_months": 10,
    "apr": 0.1094,
    "down_payment": "12146.46",
    "amount_financed": "36439.39",
    "monthly_payment": "3830.26",
    "finance_charge": "1863.20",
    "total_of_payments": "38302.59",
    "total_cost": "50449.05",
    "selected_by": "system"
  },
  "price_guaranteed_until": "2026-11-27T15:04:05Z",
  "straight_through": {"route": "straight_through", "reasons": []},
  "agreement": {"sent_at": "2026-11-20T15:04:09Z"},
  "payout": {
    "confirmed_at": "2026-11-20T15:04:08Z",
    "policies": [
      {"id": "pol_2o9fj1oLkchQ9qNzyigGf8", "commission_rate": 0.125, "commission": "5762.50", "agency_fee": "0.00"}
    ],
    "due_to_agency": "5762.50",
    "due_to_billing_company": "42823.35",
    "total": "48585.85"
  },
  "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": "matched"},
      "total": "48585.85",
      "effective_date": "2026-11-20",
      "expiration_date": "2027-11-20",
      "document_type": "binder",
      "policy_number": "CPS7712045"
    }
  ],
  "requirements": {"blocking": [], "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-20T15:04:05Z"
}
```

The figures and dates are illustrative. If the `201` comes back with `agreement: null` on a fixed price, nothing was sent: call [`POST /v1/applications/{id}/send`](https://docs.bridgelinepf.com/api-reference/applications/send), which sends it or tells you why not.

## 3. When the deal takes the portal path

If anything on the deal needs a person, the accept still succeeds, but nothing is sent. The application waits for your broker in the portal, and `straight_through.reasons` lists every reason:

```json 201 Created 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-27T15:04:05Z",
  "straight_through": {
    "route": "portal_path",
    "reasons": [
      {
        "code": "CARRIER_UNMATCHED",
        "param": "policies[0].carrier",
        "description": "This policy's carrier has not been matched to our carrier records."
      }
    ]
  },
  "agreement": null,
  "payout": {
    "confirmed_at": null,
    "policies": [
      {"id": "pol_2o9fj1oLkchQ9qNzyigGf8", "commission_rate": 0.125, "commission": "5762.50", "agency_fee": "0.00"}
    ],
    "due_to_agency": "5762.50",
    "due_to_billing_company": "42823.35",
    "total": "48585.85"
  },
  "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-11-20",
      "expiration_date": "2027-11-20",
      "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-20T15:04:05Z"
}
```

Your broker reviews, prices and sends it from the portal. Send them `portal_url`; we don't notify them. A reason that's about your data, such as `MISSING_POLICY_NUMBER`, is best fixed in your system before the next quote.

## 4. Follow the application

There are no webhooks yet. Poll [`GET /v1/applications/{id}`](https://docs.bridgelinepf.com/api-reference/applications/retrieve) every few minutes and watch `status`:

```bash theme={null}
curl -s "https://portal.bridgelinepf.com/api/v1/applications/$APP" \
  -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
  -H "Bridgeline-Version: 2026-09-23" | jq '{status, agreement, straight_through}'
```

| `status` | What it means |
| - | - |
| `awaiting_signature` | The agreement is out, and the insured hasn't signed |
| `pending_activation` | The insured signed. The loan goes live once the down payment settles and someone at your agency countersigns in the portal |
| `active` | The loan is active |
| `ready_for_agreement` | No agreement is out: for example after a void, or a decline before anyone signed |
| `canceled` | Closed for good; `cancellation` says why |

Stop polling at `active` or `canceled`. Treat a status you don't know as still in progress. See [applications](https://docs.bridgelinepf.com/concepts/applications.md).

## A safe first run

Because accept and send are live only, rehearse on a real but harmless deal:

1. Quote a deal with your own details, and accept it with `send: true` and **your own inbox** as `borrower_contact.email`. Use an address that isn't the countersigner's on the application, or the deal takes the portal path with `SIGNER_CONFLICT`.
2. Check the signing email arrives. Don't sign it.
3. Void it before anyone signs, with [`POST /v1/applications/{id}/void`](https://docs.bridgelinepf.com/api-reference/applications/void):

   ```bash theme={null}
   curl -X POST "https://portal.bridgelinepf.com/api/v1/applications/$APP/void" \
     -H "Authorization: Bearer $BRIDGELINE_API_KEY" \
     -H "Bridgeline-Version: 2026-09-23" \
     -H "Idempotency-Key: $(uuidgen)"
   ```

   The signing link stops working and the application goes back to `ready_for_agreement`, with the same fixed price. Nothing was signed, so no loan exists and no money moves.
4. The application stays in your broker's portal. A broker or agency admin deletes it there. The quote then reads `accepted` with `application_id: null` and can't be accepted again.

Each application allows at most 3 voids through the API. Bridgeline's operations team is notified of every new application, unless your agency is a demo account.


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