Is this email already registered with the issuer
const url = 'https://api.zwipe.co/v1/cardholders/email/check';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"jane@example.com"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.zwipe.co/v1/cardholders/email/check \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "jane@example.com" }'Requires cardholders:verify. The issuer keeps its own record of cardholders. An email it already holds needs no
verification before a card is issued to it; one it does not must be verified first.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Example
{ "email": "jane@example.com"}Responses
Section titled “Responses”Answer from the issuer
object
True when the issuer already holds this cardholder.
Example
{ "email": "jane@example.com", "registered": false}Request does not match this contract (missing field, wrong type, bad format)
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "validation_error", "message": "Request body invalid: value at `/email` does not match format: email", "details": [ { "pointer": "/email", "message": "value at `/email` does not match format: email" } ] }}Missing, expired or unknown credentials
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "unauthorized", "message": "A valid Bearer token is required." }}Token lacks the scope this endpoint needs
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "insufficient_scope", "message": "This endpoint requires scope cards:issue." }}Over the request limit (see Rate limit above). Wait Retry-After seconds.
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Example
{ "error": { "code": "rate_limited", "message": "Too many requests. Retry after 1 second." }}Headers
Section titled “Headers”Seconds to wait before the next request.
The issuer failed or did not answer in time. Retry reads with bounded backoff. For uncertain writes, preserve the original reference and inspect the saved order before any deliberate retry; never create a new reference to bypass uncertainty.
object
object
Stable machine-readable code.
Present on validation_error. One entry per violated field.
object
JSON pointer into the request body, or the parameter name.
Examples
Issuer unreachable or timed out
{ "error": { "code": "provider_unavailable", "message": "The card issuer did not respond." }}Issuer answered with an error
{ "error": { "code": "provider_error", "message": "The card issuer rejected the request (code 1203)." }}
