Customers

Beta Release

Index

List customers

get
Query parameters
enterprise_idstringOptional
Responses
chevron-right
200

Customers list

application/json
get
/api/v1/customers
200

Customers list

Code Examples

Show

Show customer

get
Path parameters
idstringRequired
Responses
chevron-right
200

Customer

application/json
metaobjectOptional
linksobjectOptional
get
/api/v1/customers/{id}

Code Examples

Create

Create customer

post
Body
enterprise_idintegerRequiredExample: 2
first_namestring · nullableOptionalExample: Alice
last_namestring · nullableOptionalExample: Springs
codestring · nullableOptionalExample: BUYER1
emailstringRequiredExample: alice@example.com
tagsstring[]OptionalExample: ["staff","discount"]
billing_addressobject · nullableOptional
shipping_addressobject · nullableOptionalExample: {"phone":"0404 333 222 111","latitude":-37.8173751,"longitude":144.964803195704,"first_name":"Alice","last_name":"Springs","street_address_1":"1 Flinders Street","street_address_2":"","postal_code":"1234","locality":"Melbourne","region":{"code":"Vic","name":"Victoria"},"country":{"code":"AU","name":"Australia"}}
Responses
post
/api/v1/customers

Code Examples

Update

Update customer

put
Path parameters
idstringRequired
Body
enterprise_idintegerRequiredExample: 2
first_namestring · nullableOptionalExample: Alice
last_namestring · nullableOptionalExample: Springs
codestring · nullableOptionalExample: BUYER1
emailstringRequiredExample: alice@example.com
tagsstring[]OptionalExample: ["staff","discount"]
billing_addressobject · nullableOptional
shipping_addressobject · nullableOptionalExample: {"phone":"0404 333 222 111","latitude":-37.8173751,"longitude":144.964803195704,"first_name":"Alice","last_name":"Springs","street_address_1":"1 Flinders Street","street_address_2":"","postal_code":"1234","locality":"Melbourne","region":{"code":"Vic","name":"Victoria"},"country":{"code":"AU","name":"Australia"}}
Responses
chevron-right
200

Customer updated

application/json
metaobjectOptional
linksobjectOptional
put
/api/v1/customers/{id}

Destroy

Delete customer

delete
Path parameters
idstringRequired
Responses
chevron-right
200

Customer deleted

application/json
metaobjectOptional
linksobjectOptional
delete
/api/v1/customers/{id}
200

Customer deleted

Code Examples

Last updated