Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Customer

Get the holder account

get
/api/{tenantId}/customer

Data from the customer token, completed with stored data when the tenant identifies holders. Always includes a reusable authenticationToken.

Authorizations
AuthorizationstringRequired

a JWT token describing the customer

Path parameters
tenantIdstringRequired
Responses
200

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.

Other propertiesanyOptional
get/api/{tenantId}/customer
GET /api/{tenantId}/customer HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "ANY_ADDITIONAL_PROPERTY": "anything"
}

Submit an enrolment

post
/api/{tenantId}/customer

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.

Path parameters
tenantIdstringRequired
Query parameters
flowstringOptional

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.

Body

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.

Other propertiesanyOptional
Responses
200

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.

Other propertiesanyOptional
post/api/{tenantId}/customer
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"
}

Get a customer token

post
/api/{tenantId}/customer/authenticate

Exchanges a sign-in provider's proof for a token valid 24 hours. Send it on customer endpoints as Authorization: neo-customer <token>.

Path parameters
tenantIdstringRequired
Query parameters
providerstringOptional

Sign-in provider enabled for the tenant, e.g. otp, apple, google or facebook.

Body
anyOptional
Responses
200

Token, as a JSON string.

stringOptional
post/api/{tenantId}/customer/authenticate
POST /api/{tenantId}/customer/authenticate HTTP/1.1
Host: api.thewalletcrew.io
Content-Type: application/json
Accept: */*
text

Last updated