Valet by Storey

Developer docs

Machine-readable: OpenAPI spec · llms-full.txt

Stored value

Check a balance

Read the balance of a gift card or store credit code.

View as Markdown

Endpoint

GET /api/public/valet/giftcards/{code}/balance

Works 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"
}