01.software Docs

requestCustomerWithdrawalCode

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

All HTTP operations
POST
/api/customers/withdraw/email-code

Send a withdrawal-only code to the authenticated passwordless customer’s stored email. No new login session or terms acknowledgement is required. Submit the code with the same refresh-family session; access-token rotation preserves its binding. Send JSON {}. Code requests are limited to 5/minute and 10/hour. Code-specific 409 reasons are password_reauthentication_required (use the local password) and withdrawal_session_refresh_required (refresh a pre-sid token first). Delivery or proof-storage failure returns 503 service_unavailable.

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

Response Body

Successful operation

application/json
  1. response
message*string

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/withdraw/email-code' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "message": "string"}