Getting Started
Everything you need to start integrating with the Advance API — environments, authentication, rate limits, and your first API call.
The Advance API enables insurance agencies to programmatically manage their billing operations — creating invoices (plans), processing payments, managing insureds (customers), tracking producer commissions, and configuring market payouts. The API follows RESTful conventions and uses JSON for request and response bodies.
Base URLs
| Environment | URL |
|---|---|
| Production | https://api.advancehq.com |
| Sandbox | https://api.sandbox.advancehq.com |
We recommend using the Sandbox environment for development and testing before moving to Production.
Authentication
All API requests require authentication using a Bearer token. Include your API key in the Authorization header:
Authorization: Bearer your_api_key_here
API keys follow the format advance_live_<32-character-string> (production) or advance_test_<32-character-string> (sandbox) and are issued through the Advance dashboard.
Example request
curl -X GET "https://api.sandbox.advancehq.com/v1/plans" \
-H "Authorization: Bearer advance_test_k8j2h4g6f9d3s7a1q5w8e0r2t6y9u3i7o1p4" \
-H "Content-Type: application/json"Rate Limits
The API enforces rate limits to ensure fair usage. When rate limited, you'll receive a 429 Too Many Requests response. Implement exponential backoff in your integration to handle rate limiting gracefully.
Errors
All errors return a consistent JSON body with a machine-readable error_code and a human-readable message. See the Errors page for the full list of error codes, status codes, and retry guidance.
Setup Checklist
Before making your first API call, ensure the following are in place:
- Get your API key — Generate one from the Advance dashboard under Settings > API Keys.
- Set up bank accounts — Advance-managed accounts (transitory, operational, fiduciary) are configured during onboarding. See Bank Accounts.
- Register external accounts — Add the bank accounts where producer commissions and market premiums will be sent. See External Accounts.
- Create at least one market — Markets represent the insurance carriers your agency works with. See Markets.
Your First Plan
Once your environment is configured, the typical flow to collect a premium is:
- Create an insured —
POST /v1/insuredwith the customer's name and contact details. See Insureds. - Create a plan —
POST /v1/planswith the insured, policies, and market. This generates an invoice and a payment link. See Plans. - Send the payment link — Share the
payment_urlfrom the plan response with your customer, or configure Advance to email it automatically. - Monitor payment — Poll
GET /v1/plans/{plan_id}to check collection status, or configure Webhooks to receive real-time notifications.
# 1. Create an insured
curl -X POST "https://api.sandbox.advancehq.com/v1/insured" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"insured_name": "ABC Manufacturing Inc",
"email_primary": "[email protected]"
}'
# 2. Create a plan with one policy
curl -X POST "https://api.sandbox.advancehq.com/v1/plans" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"insured_id": "ins_abc123",
"payment_due": "2025-03-15T00:00:00Z",
"status": "open",
"policies": [
{
"policy_name": "General Liability",
"policy_number": "GL-2025-001",
"market_id": "mkt_xyz789",
"effective_date": "2025-03-01T00:00:00Z",
"expiration_date": "2026-03-01T00:00:00Z",
"premium": { "name": "Premium", "amount": "8500.00" }
}
]
}'
# 3. Check plan status
curl "https://api.sandbox.advancehq.com/v1/plans/{plan_id}" \
-H "Authorization: Bearer $API_KEY"Core Resources
| Resource | What it represents | Documentation |
|---|---|---|
| Plans | Invoices, payment links, and fund routing for premium collection | Plans |
| Payments | Individual transactions collected against plans | Payments |
| Insureds | Customers who receive invoices and pay premiums | Insureds |
| Markets | Insurance carriers your agency writes policies with | Markets |
| Producers | Agents/brokers who earn commissions on policies | Producers |
| Accounts | Advance-managed bank accounts (fiduciary, operational, etc.) | Bank Accounts |
| External Accounts | Payout destination bank accounts for producers and markets | External Accounts |
| Transactions | Financial transaction history across the platform | Transactions |
| Webhooks | Real-time event notifications | Webhooks |
Updated 5 days ago
