# Check a balance

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

Valet developer docs — Stored value. Web page: https://storeypos.com/valet/docs/gift-card-balance. Full reference for AI: https://storeypos.com/llms-full.txt. OpenAPI: https://storeypos.com/openapi.json.

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:

```bash
curl https://storeypos.com/api/public/valet/giftcards/7000000000000005/balance \
  -H "X-Valet-Key: vk_live_XXXXXXXXXXXXXXXXXXXXXXXX" \
  -H "X-Valet-Tag: vt_XXXXXXXXXXXXXXXXXXXX"
```

Response:

```json
{
  "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"
}
```

---

Previous: [Load a gift card](https://storeypos.com/valet/docs/gift-card-load.md)
Next: [Codes and refusals](https://storeypos.com/valet/docs/codes-and-refusals.md)
