Customers

List customers

get

Get a paginated list of customers with optional filtering

Authorizations
OAuth2applicationRequired
Token URL:
Query parameters
limitintegerOptional

Number of items to return

afterstringOptional

Specifies the cursor after which to start returning results. For the first page, this should be left empty. For subsequent pages, use the value of the end_cursor field from the previous response.

beforestringOptional

Specifies the cursor before which to return results. Use this to paginate backwards. For example, to load the previous page, provide the value of the start_cursor field from the last response.

created_at_startstringOptional

Filter by creation date start (RFC3339 format)

created_at_endstringOptional

Filter by creation date end (RFC3339 format)

company_namestringOptional

Filter by customer name

Responses
200

OK

application/json
get
/customers
200

OK

Create a customer

post

Create a new customer with the provided information

Authorizations
OAuth2applicationRequired
Token URL:
Body

Customer information

citystringOptional
countrystringOptional
einstringOptional
emailstringOptional
external_idstringOptional
legal_namestringOptional
namestringOptional
postal_codestringOptional
statestringOptional
street_addressstringOptional
sub_premisestringOptional
Responses
post
/customers

Get a customer

get

Get customer details by ID

Authorizations
OAuth2applicationRequired
Token URL:
Path parameters
idstringRequired

Customer ID

Responses
200

OK

application/json
get
/customers/{id}

Archive a customer

delete

Archive a customer

Authorizations
OAuth2applicationRequired
Token URL:
Path parameters
idstringRequired

Customer ID

Responses
200

OK

application/json
delete
/customers/{id}

Patch customer

patch

Patch customer information (company, legal name, EIN, street address, sub-premise, city, state, postal code, country)

Authorizations
OAuth2applicationRequired
Token URL:
Path parameters
idstringRequired

Customer ID

Body

Request body for patching customer information

citystringOptionalExample: New York
countrystringOptionalExample: USA
einstringOptionalExample: 12-3456789
legal_namestringOptionalExample: Acme Corporation Inc.
namestringOptionalExample: Acme Corp
postal_codestringOptionalExample: 10001
statestringOptionalExample: NY
street_addressstringOptionalExample: 123 Main St, New York, NY 10001
sub_premisestringOptionalExample: Apt 1
Responses
200

OK

application/json
patch
/customers/{id}

List payment methods

get

Get payment methods associated with a customer

Authorizations
OAuth2applicationRequired
Token URL:
Path parameters
idstringRequired

Customer ID

Responses
200

OK

application/json
get
/customers/{id}/payment-methods
200

OK

Get payment method by ID

get

Get a specific payment method associated with a customer by payment method ID

Authorizations
OAuth2applicationRequired
Token URL:
Path parameters
idstringRequired

Customer ID

payment_method_idstringRequired

Payment Method ID

Responses
200

OK

application/json
get
/customers/{id}/payment-methods/{payment_method_id}

Restore a customer

post

Restore a customer

Authorizations
OAuth2applicationRequired
Token URL:
Path parameters
idstringRequired

Customer ID

Responses
200

OK

application/json
post
/customers/{id}/restore

List customer users

get

Get a paginated list of users from a customer

Authorizations
OAuth2applicationRequired
Token URL:
Path parameters
idstringRequired

Customer ID

Query parameters
limitintegerOptional

Number of items to return

afterstringOptional

Specifies the cursor after which to start returning results. For the first page, this should be left empty. For subsequent pages, use the value of the end_cursor field from the previous response.

beforestringOptional

Specifies the cursor before which to return results. Use this to paginate backwards. For example, to load the previous page, provide the value of the start_cursor field from the last response.

Responses
200

OK

application/json
get
/customers/{id}/users
200

OK

Create a customer user

post

Create a new customer user with the provided information

Authorizations
OAuth2applicationRequired
Token URL:
Path parameters
idstringRequired

Customer ID

Body
emailstringOptional
first_namestringOptional
last_namestringOptional
Responses
post
/customers/{id}/users

Last updated

Was this helpful?