Customers API

Manage customer information, store contact details, and track customer payment history with idempotent operations.

Customer Management

The Customers API allows you to create and manage customer records for use with invoices, payments, and quotations.

Create Customer

POST /api/v1/customers
'Response', 'content' => '{ \"id\": 123, \"name\": \"Jane Smith\", \"email\": \"[email protected]\", \"phone\": \"+1868-555-0123\", \"company\": \"Smith Enterprises\", \"slug\": \"jane-smith-abc123\", \"address\": { \"street\": \"123 Main Street\", \"city\": \"Port of Spain\", \"state\": \"Trinidad\", \"postal_code\": \"100101\", \"country\": \"TT\" }, \"metadata\": { \"customer_type\": \"premium\", \"referral_source\": \"website\" }, \"created_at\": \"2024-08-14T10:30:00Z\", \"updated_at\": \"2024-08-14T10:30:00Z\" }' ] ]" default="Request" />

Update Customer

PATCH /api/v1/customers/{id}

List Customers

GET /api/v1/customers

Get Customer Details

GET /api/v1/customers/{id}

Request Parameters

Parameter Type Required Description
name string Yes Customer's full name
email string Yes Unique email address
phone string No Phone number with country code
company string No Company or organization name
address object No Customer's address details
metadata object No Custom key-value pairs

Idempotency

Customer creation is idempotent based on email addresses. If you attempt to create a customer with an existing email, the API will return the existing customer record instead of creating a duplicate.

Best Practices