Manage your customers through the API or directly through Moltin dashboard.
Create a customer
If you are creating a new customer on the API, you can optionally submit a password along with that customer’s details.
Customer creation is currently not available in the iOS SDK (support for implicit authentication only). Also, the PHP SDK doesn’t contain the Customers endpoints.
Delete a customer
Use a customer id or customer token to delete an existing customer if using an API, or do it directly through Moltin dashboard.
Customer authentication - passwords
Once you create a password for a customer, it cannot be retrieved again. Any customers with passwords will have the value of true in the password field.
If you have an existing customer who does not have a password, you can add the password field using the
You can only generate a customer token for existing customers using a combination of their email and password.
Use customer token for a scenario in which you don’t have full read/write access to the API (implicit token type) and you want to authenticate your customers through email and password to access and manage their own details, such as address, orders, etc.
In detail, use a customer token to:
- Authenticate your customer’s identity (instead of using email address and password).
- Get/update customer’s details.
- Get/update customer’s address.
- Get customer’s orders.
- Provide your customer with implicit access to their details and orders.
Manage existing customers
One customer can have unlimited addresses set up for them, such as home, neighbor, wife’s office, etc. Use Moltin dashboard or set them up through the API. You can add/update/delete customer addresses on their behalf.
If you’re using customer token scenario, you can grant your customers access to their own data so that they can manage their own address details (add/update/delete an address). You can also cater for already authenticated users, and make their address part of the checkout workflow (as opposed to guest users).
Streamline the checkout workflow for your existing customers and create a Customer_ID-based checkout workflow. The returned order object will include the customer’s mailing details and create a relationship between the customer and the order that you can later use to retrieve all orders for a particular customer. Use it to provide your customers with ability to review their order history.
To retrieve orders for a customer, include the following details in the request header:
To cater for guest customers, create a checkout flow based on the customer object. Each time, a guest customer will have to provide full shipping and billing details.
It is not possible to link orders with customer object, and as such, create orders records for guest users.
Add custom fields to a Customer object
Extend Customer object with Flows that allow you to add custom fields. To add a field, you’ll need to pass customer token in the request header.
- Extend the customer resource to add more specific information, such as delivery instructions.
- Manage customer tokens and address through Moltin API
- Linking customers to orders
- Extend customer addresses [VIDEO]