Customer
Data from the customer token, completed with stored data when the tenant identifies holders. Always includes a reusable authenticationToken.
a JWT token describing the customer
The holder's account.
A holder's account as the enrolment pages exchange it: a flat JSON object whose properties are the tenant's enrolment form fields, plus the well-known keys below.
No customer token (Authorization: neo-customer ...), or it identifies no holder.
The endpoint is not enabled for the tenant.
The tenant does not exist.
Over 300 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
GET /api/{tenantId}/customer HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}Validates the data against the tenant's rules, identifies the holder, and with a flow creates or updates the holder. What happens depends on the caller. For an admin console user or API key with tenant.customer:write, the account is completed with stored data; without flow it returns 202 with userExists and the account under challenge.account, and with flow, neo.createNew = true creates a new holder even if one matches. For a holder with a customer token, the token must identify the holder (401 otherwise). For any other caller, the tenant may require identity confirmation first: it returns 202 and sends a verification message. A 202 body carries a challenge; for email verification it is { "email": ... } and a continue link is mailed.
Customer registration flow. Omitted, data is only validated and completed, nothing is saved. Set, the flow creates or updates the holder (typically issuing the pass) and the response carries neo.redirect = complete.
A holder's account as the enrolment pages exchange it: a flat JSON object whose properties are the tenant's enrolment form fields, plus the well-known keys below.
Validated, and created or updated when a flow was named.
A holder's account as the enrolment pages exchange it: a flat JSON object whose properties are the tenant's enrolment form fields, plus the well-known keys below.
Verification required, or the lookup result (admin console user or API key, without flow).
Invalid data (errors keyed by field, empty key for the whole account), unknown flow, or account identifiers sent without a customer token.
Customer token identifies no holder.
The endpoint is not enabled for the tenant.
The tenant does not exist.
Over 300 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
POST /api/{tenantId}/customer HTTP/1.1
Host: api.thewalletcrew.io
Content-Type: application/json
Accept: */*
Content-Length: 38
{
"ANY_ADDITIONAL_PROPERTY": "anything"
}{
"ANY_ADDITIONAL_PROPERTY": "anything"
}Exchanges a sign-in provider's proof for a token valid 24 hours. Send it on customer endpoints as Authorization: neo-customer <token>.
Sign-in provider enabled for the tenant, e.g. otp, apple, google or facebook.
Token, as a JSON string.
No provider, body not JSON, or data rejected (problem invalid-credentials).
The tenant does not exist.
Over 50 requests per minute to this endpoint for the tenant (default limit); retry after Retry-After.
POST /api/{tenantId}/customer/authenticate HTTP/1.1
Host: api.thewalletcrew.io
Content-Type: application/json
Accept: */*
textLast updated

