Check whether a membership card number is valid

Looks up a membership by its physical card number and reports whether the card is currently valid for the given membership code. Use this to power a member sign-in box in a storefront before pricing a basket with member pricing or perks.

Headers

x-entriastringRequired
Identifies which store this request is for. Required on every store-scoped route. It is not authentication and not a secret — it grants no privileges and is safe to send from a browser. You receive the value once your Entria backend has been created and configured. Missing header returns 400; an unknown store returns 404.

Query parameters

cardNumberstringRequired
The membership card number printed on or encoded on the card.
membershipCodestringRequired
The membership type code the card is expected to belong to.

Response

Whether the membership card is valid for the given membership code
validboolean

Errors

400
Bad Request Error
429
Too Many Requests Error