01.software Docs

updateCustomerMe

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

All HTTP operations
PATCH
/api/customers/me

PATCH /me updates only name, phone and marketingConsent. Requires at least one recognized field and same-tenant active Customer JWT. Separate Community PATCH /me/profile is not an alias.

Authorization

publishableKeycustomerBearerAuth
headerX-Publishable-Key<token>

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

headerAuthorizationBearer <JWT>

Customer JWT for same-tenant authenticated customer actions

Request Body

application/json
  1. body

At least one recognized field after unknown-key stripping. Legacy channel isConsented is normalized by the owning hook; this operation does not edit the separate Community /me/profile.

name*string
Length1 <= length <= 255
phone?string
Lengthlength <= 20
marketingConsent?

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 PATCH 'https://api.01.software/api/customers/me' \  -H 'Content-Type: application/json' \  -d '{}'
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      }    ]  }}