Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
39 lines (30 sloc) 1.37 KB

Customers

You can use the Customer endpoint to store customer addresses and other information.

The Customer endpoint allows you to generate JSON Web Tokens inside your client-side applications to authenticate requests to get all customer orders.

{% page-ref page="customer-tokens.md" %}

You are able to use a customer token with an implicit Bearer token. This is recommend for client-side interactions. Or you can use a client_credentials Bearer token. This is recommended for back end interactions.

The Customer object

{% tabs %} {% tab title="Attributes" %} | Attribute | Type | Description | | :--- | :--- | :--- | | id | string | The unique identifier for this customer | | type | string | The type represents the object being returned | | name | string | The name of the customer | | email | string | The email of the customer | | password | string | true | {% endtab %}

{% tab title="Sample Response" %}

{
    "data": {
        "type": "customer",
        "id": "f260b17a-390f-4b37-bf9d-f62c45a95865",
        "name": "Ron Swanson",
        "email": "ron@swanson.com",
        "password": true
    }
}

{% endtab %} {% endtabs %}