Skip to content

Get Current Cards

The following is the method for get current customer cards.

Request URL

url
GET https://api.zrmz.app/api/v1/customer/card

Request Headers

NameTypeRequiredDescription
AuthorizationStringThe access token received from Customer Login.

Request Example

sh
curl -X GET 'https://api.zrmz.app/api/v1/customer/card' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {access_token}'

Response

NameTypeDescription
cardsCustomerCard[]Array of current customer points

Example

json
{
    "cards": [
        {
            "id": "17590684-b536-4296-ab29-bfdf5c280600",
            "expired_at": "2024-10-16T09:31:16.535Z",
            "card": {
                "id": "57de4cad-bb80-4516-94f6-e2da75eb39ab",
                "name": "PLATINUM",
                "description": "สมาชิก PLATINUM",
                "image_url": "https://example.com/card-img.jpg"
            }
        },
        {
            "id": "98b5fca9-9484-4bc8-8d15-83ec5e9748a9",
            "expired_at": null,
            "card": {
                "id": "4fb15c45-bb1e-4fe2-8f77-c761ec0b5a1b",
                "name": "GOLD",
                "description": "สมาชิก GOLD",
                "image_url": "https://example.com/card-img.jpg"
            }
        },
        {
            "id": "7f9a9eef-79ba-41f7-8bbe-117e87e13e93",
            "expired_at": null,
            "card": {
                "id": "850be181-b8e0-4b96-878f-902d0241ee91",
                "name": "SILVER",
                "description": "สมาชิก SILVER",
                "image_url": "https://example.com/card-img.jpg"
            }
        }
    ]
}