Customers

Create a customer

Create a new customer within a business. Returns the created customer in the same format as the get customer endpoint.

post/v1/platform/businesses/{business_id}/customers/

Request

  • Base URL
    https://docs.thredfi.com (the document declares no server; this is the origin it was published from)
  • Auth
    • HTTP bearer
    • or HTTP bearer
    • or HTTP basic
    • or HTTP bearer
    • or HTTP bearer

Path parameters

business_idstring uuid required

Business UUID provided by Thred (unique identifier for the business)

Request body

external_idstring

Your unique identifier for this customer (used for idempotency)

reference_numberstring

Customer reference number for invoices and statements

individual_namestring

Individual/contact person name (required if company_name not provided)

company_namestring

Registered company name (required if individual_name not provided)

emailstring email

Primary email address for the customer

mobile_phonestring

Mobile phone number

office_phonestring

Office/landline phone number

address_line1string

Street address line 1

address_line2string

Street address line 2 (building, suite, etc.)

citystring

City or town

state_countystring

State, county, or region

postal_codestring

Postal/ZIP code

countrystring

ISO 3166-1 alpha-2 country code

vat_numberstring

VAT registration number (for UK: GB followed by 9 digits)

tax_exemptboolean

Whether customer is exempt from tax/VAT

status'active' | 'archived' | 'suspended'
  • active - Active
  • archived - Archived
  • suspended - Suspended
notesstring

Internal notes about the customer

metadataunknown
payment_terms_daysinteger

Number of days for payment terms (e.g., 30 for Net 30)

credit_limit_centsinteger

Maximum credit limit in cents (e.g., 100000 for £1,000)

Response

typestring required

Type identifier (always 'CustomerData')

idstring uuid required

Unique identifier for the customer

external_idstring required

Your unique identifier for this customer (used for idempotency)

reference_numberstring required

Customer reference number for invoices and statements

individual_namestring required

Individual/contact person name (required if company_name not provided)

company_namestring required

Registered company name (required if individual_name not provided)

display_namestring required

Display name for the customer (auto-generated from company_name or individual_name)

emailstring email required

Primary email address for the customer

mobile_phonestring required

Mobile phone number

office_phonestring required

Office/landline phone number

address_line1string required

Street address line 1

address_line2string required

Street address line 2 (building, suite, etc.)

citystring required

City or town

state_countystring required

State, county, or region

postal_codestring required

Postal/ZIP code

countrystring required

ISO 3166-1 alpha-2 country code

full_addressstring required

Complete formatted address with all fields

address_stringstring required

Single-line formatted address

vat_numberstring required

VAT registration number (for UK: GB followed by 9 digits)

tax_exemptboolean required

Whether customer is exempt from tax/VAT

statusstring required

Customer status (ACTIVE or ARCHIVED)

is_activeboolean required

Whether the customer is active (read-only)

is_archivedboolean required

Whether the customer is archived (read-only)

notesstring required

Internal notes about the customer

metadataunknown required
payment_terms_daysinteger required

Number of days for payment terms (e.g., 30 for Net 30)

credit_limitinteger required

Maximum credit limit in cents (e.g., 100000 for £1,000)

credit_limit_centsinteger required

Maximum credit limit in cents (e.g., 100000 for £1,000)

outstanding_balanceinteger required

Current outstanding balance in cents (read-only, computed)

created_atstring date-time required

Date and time when the customer was created

updated_atstring date-time required

Date and time when the customer was last updated

archived_atstring date-time required

Date and time when the customer was archived (null if active)

Changes

No recorded changes to this operation across all 1 revision of this API.