Get a Customer

Get by ID

GET https://api.moltin.com/v2/customers/:id

Path Parameters

NameTypeDescription

id

string

The ID for the requested Customer.

Headers

NameTypeDescription

X-Moltin-Customer-Token

string

A customer token used to access a customer implicitly.

Authorization

string

The Bearer token to grant access to the API. If there is no customer token the grant type must be client_credentials.

{
    "data": {
        "type": "customer",
        "id": "a23cc59d-a6c2-4c14-89c7-80fd7e4fc6c0",
        "name": "Ron Swanson",
        "email": "ronwanson@example.com",
        "password": true
    }
}
curl -X GET https://api.moltin.com/v2/customers/:id \
     -H "Authorization: Bearer XXXX" \

With customer token

curl -X GET https://api.moltin.com/v2/customers/:id \
     -H "X-Moltin-Customer-Token: XXXX"
     -H "Authorization: Bearer XXXX"

Without customer token

curl -X GET https://api.moltin.com/v2/customers/:id \
     -H "Authorization: Bearer XXXX"

Last updated