Insureds

Manage insured parties (customers) who receive invoices and make payments.


Create Insured

Creates a new insured record.

Endpoint: POST /v1/insured

Use Cases:

  • Add new customers to the system
  • Sync customer data from your AMS
  • Pre-create insureds before generating invoices

Request Body:

FieldTypeRequiredDescription
insured_namestringYesCompany or individual name
first_namestringNoContact first name
last_namestringNoContact last name
email_primarystringNoPrimary email (max 256 chars)
email_secondarystringNoSecondary email
phone_numberstringNoPhone number (max 15 chars)
address1stringNoStreet address line 1
address2stringNoStreet address line 2
citystringNoCity
address_statestringNoState/Province
zip_codestringNoPostal code
countrystringNoCountry

Example:

curl -X POST "https://api.advancehq.com/v1/insured" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "insured_name": "Acme Corporation",
    "first_name": "John",
    "last_name": "Smith",
    "email_primary": "[email protected]",
    "phone_number": "555-123-4567",
    "address1": "123 Main Street",
    "address2": "Suite 100",
    "city": "New York",
    "address_state": "NY",
    "zip_code": "10001",
    "country": "USA"
  }'

Response:

{
  "insured_id": "ins_abc123def456",
  "insured_name": "Acme Corporation",
  "first_name": "John",
  "last_name": "Smith",
  "email_primary": "[email protected]",
  "email_secondary": null,
  "phone_number": "555-123-4567",
  "insured_address": {
    "address1": "123 Main Street",
    "address2": "Suite 100",
    "city": "New York",
    "address_state": "NY",
    "zip_code": "10001",
    "country": "USA"
  }
}

List All Insureds

Retrieves all insured records.

Endpoint: GET /v1/insured

Use Cases:

  • Sync insured data to your system
  • Search for existing customers
  • Generate customer reports

Example:

curl -X GET "https://api.advancehq.com/v1/insured" \
  -H "Authorization: Bearer your_api_key"

Response:

[
  {
    "insured_id": "ins_abc123",
    "insured_name": "Acme Corporation",
    "first_name": "John",
    "last_name": "Smith",
    "email_primary": "[email protected]",
    "phone_number": "555-123-4567",
    "insured_address": {
      "address1": "123 Main Street",
      "city": "New York",
      "address_state": "NY",
      "zip_code": "10001"
    }
  }
]

Get Insured by ID

Retrieves a specific insured record.

Endpoint: GET /v1/insured/{insured_id}

Example:

curl -X GET "https://api.advancehq.com/v1/insured/ins_abc123" \
  -H "Authorization: Bearer your_api_key"

Update Insured

Updates an existing insured record.

Endpoint: PUT /v1/insured/{insured_id}

Use Cases:

  • Update customer contact information
  • Correct address details
  • Sync changes from your AMS

Example:

curl -X PUT "https://api.advancehq.com/v1/insured/ins_abc123" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "email_primary": "[email protected]",
    "phone_number": "555-987-6543"
  }'