Validate Card
GET/client/users/card/:loyalty_id/status
Validate whether a card is valid for enrollment.
Card is valid if allocated but not linked to an account, or linked to an unregistered account.
Card is invalid if linked to a registered account (status = ACTIVE, SUSPENDED, etc.).
Request
Body
This request does not have a body.
Response
| Attribute | Definition | Format | Notes |
|---|---|---|---|
| canEnroll | Provides status of whether the card is valid (available) for enrollment | Boolean. true or false |
Request
Responses
- 200
200 - Can Enroll
Response Headers
Date
Example:
Wed, 20 May 2020 23:46:05 GMTContent-Length
Example:
19Connection
Example:
keep-alivex-amzn-RequestId
Example:
fa0025a6-9ebb-4169-895c-a070d07b65d3Referrer-Policy
Example:
no-referrerX-XSS-Protection
Example:
1;mode=blockAccess-Control-Allow-Origin
Example:
*Expect-CT
Example:
max-age=86400Strict-Transport-Security
Example:
max-age=31536000Feature-Policy
Example:
vibrate 'none'; geolocation 'none'X-Frame-Options
Example:
sameoriginContent-Security-Policy
Example:
connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.netx-amz-apigw-id
Example:
M2shoFxloAMFeHw=cache-control
Example:
no-cache, no-store, must-revalidateX-Content-Type-Options
Example:
nosniffX-Amzn-Trace-Id
Example:
Root=1-5ec5c13d-f5f32c132f69e3e52803f184;Sampled=0