Skip to main content

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

AttributeDefinitionFormatNotes
canEnrollProvides status of whether the card is valid (available) for enrollmentBoolean. true or false

Request

Responses

200 - Can Enroll

Response Headers
    Date
    Example: Wed, 20 May 2020 23:46:05 GMT
    Content-Length
    Example: 19
    Connection
    Example: keep-alive
    x-amzn-RequestId
    Example: fa0025a6-9ebb-4169-895c-a070d07b65d3
    Referrer-Policy
    Example: no-referrer
    X-XSS-Protection
    Example: 1;mode=block
    Access-Control-Allow-Origin
    Example: *
    Expect-CT
    Example: max-age=86400
    Strict-Transport-Security
    Example: max-age=31536000
    Feature-Policy
    Example: vibrate 'none'; geolocation 'none'
    X-Frame-Options
    Example: sameorigin
    Content-Security-Policy
    Example: connect-src 'none';object-src https://*.cloudfront.net;script-src https://*.cloudfront.net
    x-amz-apigw-id
    Example: M2shoFxloAMFeHw=
    cache-control
    Example: no-cache, no-store, must-revalidate
    X-Content-Type-Options
    Example: nosniff
    X-Amzn-Trace-Id
    Example: Root=1-5ec5c13d-f5f32c132f69e3e52803f184;Sampled=0