Skip to main content
GET
/
api
/
v2
/
customers
/
{id}
/
points
Get customer points balance
curl --request GET \
  --url https://api.zupy.com/api/v2/customers/{id}/points/ \
  --header 'X-API-Key: <api-key>'
{
  "data": {
    "customer_id": "<string>",
    "points_balance": 123,
    "points_earned": 123,
    "points_spent": 123,
    "points_name": "<string>",
    "last_activity_date": "2023-11-07T05:31:56Z",
    "tier": "<string>"
  },
  "meta": {
    "cursor": "<string>",
    "has_next": true,
    "count": 123
  }
}

Authorizations

X-API-Key
string
header
required

API key for partner access via APISIX key-auth plugin

Path Parameters

id
string
required

Unique identifier for this customer.

Response

data
object
required

Summary of a customer's loyalty points balance, including earned, spent, and current tier.

meta
object
required

Cursor-based pagination metadata matching envelope middleware output.