Get all Customers

get
Get a list of customers

https://api.moltin.com/v2/customers
Request
Response
Headers
Authorization
required
string
The Bearer token to grant access to the API. Grant type must be client_credentials.
Query Parameters
filter
optional
string
Filter the results.
200: OK
{
"data": [
{
"type": "customer",
"id": "2479c9b3-615d-4ebc-a99d-87ffc67d1955",
"name": "Ron Swanson",
"email": "ron@swanson.com",
"password": true
},
{
"type": "customer",
"id": "7746d533-fd64-446f-ae8c-f8e07f3ed9fd",
"name": "Ron Swanson_",
"email": "ron_@swanson.com",
"password": true
}
],
"meta": {
"page": {
"limit": 10,
"offset": 0,
"current": 1,
"total": 1
},
"results": {
"total": 2
}
}
}

You can use pagination with this resource. See: Settings for details.

cURL
JavaScript SDK
curl -X GET https://api.moltin.com/v2/customers \
-H "Authorization: Bearer XXXX"
const MoltinGateway = require('@moltin/sdk').gateway
const Moltin = MoltinGateway({
client_id: 'XXXX'
})
Moltin.Customers.All().then(customer => {
// Do something
})
//Filter example
Moltin.Customers.Filter({eq: {email: 'jim@bob.com'}}).All().then(customers => {
// Do something
})