POST:storefront/customers.json
Storefront APIPOST:storefront/customers.json

POST:storefront/customers.json

Description

Register a new customer.

Topic: Customers

Query Parameters

shop_id: String, required

Unique shop identifier. See also: Unique Identifiers

Example: ?shop_id=sh_EQzGqWoY

Request Body

Array of StorefrontCustomerCreate

[
  {
    "accepts_marketing": false,
    "addresses": [
      {
        "address1": "Chestnut Street 92",
        "address2": "Apartment 2",
        "city": "Louisville",
        "company": "Google inc.",
        "country": "US",
        "id": "ad_EQzGqWoY",
        "name": "John Smith",
        "phone": "5556251199",
        "plus_code": "PQ7W+WM",
        "province": "KY",
        "zip": "40202"
      }
    ],
    "default_billing_address_id": "ad_EQzGqWoY",
    "default_shipping_address_id": "ad_EQzGqWoY",
    "display_name": "John S.",
    "email": "bob.norman@hostmail.com",
    "language": "",
    "mobile": "45634634562",
    "mobile_notifications": false,
    "name": "John Smith",
    "password": "34hb5kj3h45k3",
    "preferred_currency": "USD",
    "reminder_messages": false,
    "timezone": "(GMT-05:00) Eastern Time",
    "timezone_hint": "(GMT-05:00) Eastern Time",
    "webauthn_credential": "",
    "webauthn_session_id": ""
  }
]

Response Body

Array of StorefrontCustomer

Response Body Type

Loading module