Customers

A customer resource instance represents a customer account with the shop. Customer accounts store contact information for the customer, saving logged-in customers the trouble of having to provide it at every checkout. For security reasons, the customer resource instance does not store credit card information. Customers will always have to provide this information at checkout.

The customer resource instance also stores some additional information about the customer for the benefit of the shop owner, including: the number of orders, the amount of money s/he has spent and number of orders s/he has made throughout his/her history with the shop as well as the shop owner's notes and tags for the customer.

Required Scope: customers

APIDescription
GET api2/customers/createOAuth.json?token={token}&scopes={scopes}&client_id={client_id}

Creates oAuth for customer via token

GET api2/customers/createOAuth.json?token={token}&scopes={scopes}&access_type={access_type}&client_id={client_id}

Creates oAuth for customer via token

GET api2/customers.json?email={email}&password={password}

Get customer by email and password

GET api2/customers/count.json

Get count of customers

GET api2/customers.json

List customers

GET api2/customers/{id}.json

Get customers by id

POST api2/customers.json

Create a customer

PUT api2/customers/{id}.json

Update customer by id

DELETE api2/customers/{id}.json

Delete customer by id