Create a Customer

Create a customer

POST https://api.moltin.com/v2/customers

Headers

NameTypeDescription

Authorization

string

The Bearer token to grant access to the API.

Request Body

NameTypeDescription

type

string

Represents the type of object being returned.

name

string

The full name of the customer.

email

string

The customer email.

password

string

The customer password.

{
    "data": {
        "type": "customer",
        "id": "fc4679bf-f8a8-4029-bc67-945f74b756a0",
        "name": "Ron Swanson+6",
        "email": "ron+6@swanson.com",
        "password": true
    }
}
curl -X POST https://api.moltin.com/v2/customers \
    -H "Authorization: Bearer XXXX" \
    -H "Content-Type: application/json" \
    -d $'{
     "data": {
       "type": "customer",
       "name": "Ron Swanson",
       "email": "ron@swanson.com",
       "password": "mysecretpassword"
     }
   }'

Last updated