01.software Docs

registerCustomer

Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.

All HTTP operations
POST
/api/customers/register

Direct password registration requires tenant publishable key, customers feature, current registration setting and bounded password. Returns customer only with HTTP 201, never tokens or a hosted authorization code.

Authorization

publishableKey
headerX-Publishable-Key<token>

Tenant publishable key for authentication (sent via X-Publishable-Key header)

Request Body

application/json
  1. body
name*string
Length1 <= length <= 255
email*string
Match^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$
Formatemail
Lengthlength <= 254
password*string
Length8 <= length <= 128
phone?string
Length1 <= length <= 20

Response Body

Existing direct customer-auth wire

application/json
  1. response
customer*

Examples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.

Example Request
curl -X POST 'https://api.01.software/api/customers/register' \  -H 'Content-Type: application/json' \  -d '{  "name": "string",  "email": "user@example.com",  "password": "stringst"}'
Example Response
{  "customer": {    "id": "string",    "name": "string",    "email": "string",    "phone": "string",    "authProvider": "string",    "isGuest": true,    "marketingConsent": {},    "memberships": [      {        "title": "string",        "description": "string",        "benefits": [          {            "title": "string",            "description": "string"          }        ],        "color": "string",        "image": null,        "badgeColor": "string",        "badgeImage": null,        "displayOrder": 0      }    ]  }}