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.
When reCAPTCHA is enabled on the store, use the token field in the request body. Ensure that you use a valid user verification response reCAPTCHA token.
Create a Customer
POST https://yourstore.example.com/api/storefront/customersRequest
Parameters
- store_domain in path - string
Data sent the the customer endpoint when creating a customer during checkout.
Body
object | application/json
firstNamestring
First name of customer.lastNamestring
Last name of customer.emailstring
Email of customer.passwordstring
Password of customer.acceptsMarketingEmailsboolean
Indicates whether customer provided consent to receive marketing emails.tokenstring
A valid reCAPTCHA token from a successful verification response.customFieldsarray[object]
application/json
{
"firstName": "Jane",
"lastName": "Doe",
"email": "janedoe@example.com",
"password": "string",
"acceptsMarketingEmails": true,
"customFields": [
{
"fieldId": "25",
"fieldValue": "Leave in backyard"
}
]
}
Response
Customer successfully created.
See something you can improve? Edit this file on GitHub
Did you find what you were looking for?