Customer Tokens
We provide a basic /tokens
endpoint that allows you authenticate customers by email
and password
so you can easily allow customers to manage their addresses or get orders by customer
.
The customer token object
Attribute | Type | Description |
|
| The unique identifier for this token |
|
| The type represents the object being returned |
|
| The ID of the customer from which the token is generated |
|
| The JSON Web Token to be used for other endpoints |
|
| The epoch time that this token expires at. It will be 24 hours from the moment the token is generated. |
Generate a token
POST
https://api.moltin.com/v2/customers/tokens
Headers
Name | Type | Description |
---|---|---|
Authorization | string | The Bearer token to grant access to the API |
Request Body
Name | Type | Description |
---|---|---|
password | string | The customer password |
string | The customer email | |
type | string | This must be |
Using a token
You can use a X-Moltin-Customer-Token
header with the following endpoints. They're available implicitly for you to read, create and update various resources.
Last updated