Docs
Storefront API
Customers

Storefront Customers

Manage customers and data on BigCommerce-hosted storefronts. To work with headless storefronts, use the GraphQL Storefront API.

The REST Storefront API uses CORS (opens in a new tab) headers for authentication, and therefore has no required scopes. You do not need to send any BigCommerce-specific tokens with your requests to these endpoints.

For info about authenticating BigCommerce APIs, see Authentication and Example Requests.

Create a Customer

POST /customers

Request

Create a Customer.

Note

  • Substitute your storefront domain for yourstore.example.com.
  • The Send a Test Request feature is not currently supported for this endpoint.

Parameters

  • store_domain in path - string

Data sent the the customer endpoint when creating a customer during checkout.

Body

object | application/json
  • firstName
    string

    First name of customer.

  • lastName
    string

    Last name of customer.

  • email
    string

    Email of customer.

  • password
    string

    Password of customer.

  • acceptsMarketingEmails
    boolean

    Indicates whether customer provided consent to receive marketing emails.

  • customFields
    array[object]

application/json

Response

Customer successfully created.

Did you find what you were looking for?