Stored value
Check a balance
Read the balance of a gift card or store credit code.
Endpoint
GET /api/public/valet/giftcards/{code}/balanceWorks for gift cards and store credit in your own business only. Read only. Adds reason and message when the card can't be used right now.
Request — cURL
curl https://storeypos.com/api/public/valet/giftcards/7000000000000005/balance \
-H "X-Valet-Key: vk_live_XXXXXXXXXXXXXXXXXXXXXXXX" \
-H "X-Valet-Tag: vt_XXXXXXXXXXXXXXXXXXXX"Response
{
"codeLast4": "0005",
"reason": null,
"message": null,
"paymentType": "gift_card",
"status": "active",
"balance": 6,
"expiresAt": null,
"link": "https://storeypos.com/gift/00000000-0000-4000-8000-000000000000/7000000000000005"
}