Producers

Manage insurance producers (agents/brokers) and their commission structures.


Create Producer

Creates a new producer record.

Endpoint: POST /v1/producers

Use Cases:

  • Onboard new agents/brokers
  • Set up commission structures
  • Configure payout preferences

Request Body:

FieldTypeRequiredDescription
producer_namestringYesProducer/agent name
commission_percentagenumberNoDefault commission rate (0-100)
contact_namestringNoPrimary contact name
contact_emailstringNoContact email
contact_phonestringNoContact phone
external_account_idstringNoBank account for payouts
recurrence_payout_enabledbooleanNoEnable automatic payouts
recurrence_payout_dayintegerNoDay of month for payouts (1-28)
transfer_speedstringNoPayout speed (default: ach)
minimal_monthly_thresholdnumberNoMinimum amount for payout
memostringNoNotes (max 250 chars)

Example:

curl -X POST "https://api.advancehq.com/v1/producers" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "producer_name": "Smith Insurance Agency",
    "commission_percentage": 15,
    "contact_name": "Jane Smith",
    "contact_email": "[email protected]",
    "contact_phone": "555-234-5678",
    "recurrence_payout_enabled": true,
    "recurrence_payout_day": 15,
    "minimal_monthly_threshold": 100.00
  }'

Response:

{
  "producer_id": "prod_abc123def456",
  "producer_name": "Smith Insurance Agency",
  "commission_percentage": "15.00",
  "contact_name": "Jane Smith",
  "contact_email": "[email protected]",
  "contact_phone": "555-234-5678",
  "external_account_id": null,
  "recurrence_payout_enabled": true,
  "recurrence_payout_day": 15,
  "transfer_speed": "ach",
  "minimal_monthly_threshold": "100.00",
  "created_at": "2025-01-15T10:00:00Z"
}

List All Producers

Retrieves all producer records.

Endpoint: GET /v1/producers

Example:

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

Get Producer by ID

Retrieves a specific producer record.

Endpoint: GET /v1/producers/{producer_id}

Example:

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

Update Producer

Updates an existing producer record.

Endpoint: PUT /v1/producers/{producer_id}

Example:

curl -X PUT "https://api.advancehq.com/v1/producers/prod_abc123" \
  -H "Authorization: Bearer your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "commission_percentage": 18,
    "recurrence_payout_day": 1
  }'