List cards
The business's cards, filterable by program, customer and status.
Required scope: cards:read.
Query parameters
-
program_idProgram -
customer_idCustomer -
statusStatus -
pagePage (starting at 1) -
per_pageItems per pageDefault:
25
Responses
-
200 Cards
Schema application/json · object
-
data -
meta
-
- 401 Key missing, invalid, expired or revoked Schema Error
- 403 The key does not have the required scope, the plan does not include the feature or a plan limit was reached (
forbidden,plan_feature_missing,plan_limit) Schema Error - 422 Validation (
errorsper field) or business rule (error.code: insufficient_balance, card_inactive, operation_not_supported…) Schema ValidationError Schema Error - 429 More than 120 requests per minute with the same key
GET /cards View full URL
https://stampeazy.co.nz/api/v1/cards
Request samples
curl -X GET 'https://stampeazy.co.nz/api/v1/cards' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Accept: application/json' Response samples
{
"data": [
{
"serial": "32852595C80B7B165F61",
"customer_id": 12,
"program_id": 3,
"program_type": "stamps",
"status": "active",
"balance": 5,
"unit": "stamps",
"tier_id": null,
"expires_at": null,
"public_url": "https://app.example.com/t/Xk3f9QnV2pLr8sTb",
"wallet": {
"apple": "issued",
"google": "pending"
},
"balance_display": "5 stamps"
}
],
"meta": {
"current_page": 1,
"per_page": 25,
"total": 1,
"last_page": 1
}
}