withdrawCustomer
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsPOST
Customer self action requiring the current password and a non-guest, unsuspended password account. Active membership obligations block withdrawal. Server credentials cannot delegate this operation.
publishableKeycustomerBearerAuthheader
X-Publishable-Key<token>Tenant publishable key for authentication (sent via X-Publishable-Key header)
header
AuthorizationBearer <JWT>Customer JWT for same-tenant authenticated customer actions
application/json- body
currentPassword*stringLength
1 <= length <= 128Successful operation
application/json- response
withdrawnAt*stringMatch
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$Format
date-timeExamples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/customers/withdraw' \ -H 'Content-Type: application/json' \ -d '{ "currentPassword": "string"}'Example Response
{ "withdrawnAt": "2019-08-24T14:15:22Z"}