Customers
Beta Release
Index
Code Examples
Show
Code Examples
Create
Body
enterprise_idintegerRequiredExample:
2first_namestring · nullableOptionalExample:
Alicelast_namestring · nullableOptionalExample:
Springscodestring · nullableOptionalExample:
BUYER1emailstringRequiredExample:
alice@example.comtagsstring[]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
201
Example customer created
application/json
422
Unprocessable entity
application/json
post
/api/v1/customersCode Examples
Update
Path parameters
idstringRequired
Body
enterprise_idintegerRequiredExample:
2first_namestring · nullableOptionalExample:
Alicelast_namestring · nullableOptionalExample:
Springscodestring · nullableOptionalExample:
BUYER1emailstringRequiredExample:
alice@example.comtagsstring[]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
200
Customer updated
application/json
metaobjectOptional
linksobjectOptional
422
Unprocessable entity
application/json
put
/api/v1/customers/{id}Destroy
Code Examples
Last updated