v1

latestOpenAPI 3.0.12026-07-268028223.9 KB
Clients

Create a client

Creates a new client household with head of household information

post/v1/clients

Headers

Idempotency-Keystring

Unique key to ensure idempotent request handling. If a request with the same key was already processed, the original response will be returned.

Request body

book_idstring required

The book ID

household_namestring

Name of the household

tierstring

Client tier label (e.g., "A-tier", "B-tier", etc.)

became_client_atstring date-time

When the household became a client

first_namestring

Simple format: Head of household first name

last_namestring

Simple format: Head of household last name

preferred_namestring

Simple format: Preferred name

emailstring email

Simple format: Primary email address

phone_numberstring

Simple format: Primary phone number

phone_extensionstring

Simple format: Optional phone extension for the primary phone number

date_of_birthstring date

Simple format: Date of birth (YYYY-MM-DD)

job_titlestring

Simple format: Job title

ssnstring

Simple format: Social security number for head of household

drivers_license_numberstring

Simple format: Driver's license number for head of household

custom_fieldsobject

Household custom field values as key-value pairs

Example request

{
  "book_id": "abc123xyz",
  "household_name": "The Smith Family",
  "tier": "B-tier",
  "became_client_at": "2024-01-01T00:00:00Z",
  "first_name": "John",
  "last_name": "Doe",
  "preferred_name": "Johnny",
  "email": "john.doe@example.com",
  "phone_number": "5555551234",
  "phone_extension": "1234",
  "date_of_birth": "1990-01-15",
  "job_title": "Software Engineer",
  "ssn": "123-45-6789",
  "drivers_license_number": "DL-1234567890",
  "head_of_household": {
    "first_name": "John",
    "last_name": "Doe",
    "middle_name": "Robert",
    "preferred_name": "Johnny",
    "salutation": "Mr.",
    "suffix": "Jr.",
    "gender": "male",
    "designations": "CPA, CFP",
    "date_of_birth": "1990-01-15",
    "job_title": "Software Engineer",
    "email": "john.doe@example.com",
    "phone_number": "5555551234",
    "phone_extension": "1234",
    "email_addresses": [
      {
        "email": "john@example.com",
        "email_type": "personal",
        "is_primary": true
      }
    ],
    "phone_numbers": [
      {
        "phone_number": "+15555551234",
        "extension": "1234",
        "phone_type": "mobile",
        "is_primary": true
      }
    ],
    "addresses": [
      {
        "line1": "123 Main St",
        "line2": "Apt 4B",
        "city": "New York",
        "state": "NY",
        "zip": "10001",
        "country_code": "US",
        "address_type": "home",
        "is_primary": true
      }
    ],
    "employments": [
      {
        "business_name": "Acme Corp",
        "role": "Software Engineer",
        "start_date": "2023-01-15",
        "end_date": "2024-12-31",
        "actively_employed": true
      }
    ],
    "ssn": "123-45-6789",
    "drivers_license_number": "DL-1234567890",
    "custom_fields": {
      "risk_tolerance": "Moderate"
    }
  },
  "custom_fields": {
    "lead_source": "Referral"
  }
}

Response

client created

idstring required

The ID of the household

type'Client' | 'Prospect' required

The type of household

namestring required

The name of the household

tierstring nullable

The tier label for this household (null for Prospects)

became_client_atstring date-time nullable

When this household became a client

book_idstring required

The ID of the book this household belongs to

profile_picture_urlstring uri nullable

URL to the household profile picture

custom_fieldsobject

Custom field values as key-value pairs

Example response

{
  "id": "abc123xyz",
  "type": "Client",
  "name": "The Smith Family",
  "tier": "Platinum",
  "became_client_at": "2024-01-01T00:00:00Z",
  "book_id": "book123xyz",
  "profile_picture_url": "https://api.example.com/v1/households/abc123xyz/avatar",
  "custom_fields": {
    "pageport_lead_source": "Landing Page",
    "industry": "Technology"
  },
  "people": [
    {
      "id": "abc123xyz",
      "book_id": "book123xyz",
      "household_id": "xyz789abc",
      "contact_id": "cnt456def",
      "role_type": "client",
      "first_name": "John",
      "middle_name": "Robert",
      "last_name": "Doe",
      "salutation": "Mr.",
      "suffix": "Jr.",
      "maiden_name": "Smith",
      "gender": "male",
      "designations": "CPA, CFP",
      "household_role": "head_of_household",
      "preferred_name": "Johnny",
      "date_of_birth": "1985-06-15",
      "job_title": "Software Engineer",
      "ssn": "***-**-6789",
      "drivers_license_number": "******7890",
      "email_addresses": [
        {
          "email": "john.doe@example.com",
          "email_type": "personal",
          "is_primary": true
        }
      ],
      "phone_numbers": [
        {
          "phone_number": "+15555551234",
          "extension": "1234",
          "phone_type": "mobile",
          "is_primary": true
        }
      ],
      "addresses": [
        {
          "line1": "123 Main St",
          "line2": "Apt 4B",
          "city": "New York",
          "state": "NY",
          "zip": "10001",
          "country_code": "US",
          "address_type": "home",
          "is_primary": true
        }
      ],
      "employments": [
        {
          "id": "emp123xyz",
          "person_id": "abc123xyz",
          "business_name": "Acme Corp",
          "role": "Software Engineer",
          "start_date": "2023-01-15",
          "end_date": "2024-12-31",
          "actively_employed": true
        }
      ],
      "custom_fields": {
        "preferred_contact_method": "Email",
        "risk_tolerance": "Moderate"
      }
    }
  ]
}