Skip to main content

Verify Membership Card

Verify an Alipay Gourmet Card before applying its discount in a payment. Returns whether the card is valid for use at the given store.

When to Use​

▾

Use this endpoint before Quick Pay with Membership Card:

  • To confirm the card is valid and active at the store
  • To prevent failed payments due to invalid memberships
info

Currently available membership card: Alipay Gourmet Card (马来西亚美食优惠卡).

How to Use​

▾
Endpoint
POST/v3/membership/verify

Step 1: Capture the Card ID​

▾

Scan or input the customer's Alipay Gourmet Card ID.

Step 2: Send the Verification Request​

▾

POST memberCardId and storeId to the endpoint.

Step 3: Proceed if Valid​

▾

If the response is "SUCCESS", proceed to Quick Pay with Membership Card.


Request Parameters​

▾
memberCardIdSTRINGrequired

Alipay's Member Card ID

storeIdSTRINGrequired

Store ID

Response Parameters​

▾
codeSTRING

"SUCCESS" if the verification succeeded, otherwise an error code

errorOBJECT

Error details

codeSTRING

Error code if the request failed

messageSTRING

Error message if the request failed

debugSTRING

Debug message (sandbox only)