Valet by Storey

Developer docs

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

Stored value

Codes and refusals

Exact-match codes and the plain reasons a gift card or store credit can't pay.

View as Markdown

Codes must match exactly — never a near match. Customers can type, scan or show a code; scanners that type the code and press Enter work, and spaces around the code are trimmed.

When a code can't pay, the sale answer is still status "declined" but nothing is recorded (storeyTransactionId is null), so fix the code and retry with the same referenceId. The optional reason tells your software why:

reasonMeaning
card_not_foundCard not found. Check the number and try again. (Also a code that fails the Valet check digit.)
no_store_creditNo store credit found. Check the number and try again.
zero_balanceThis card has no balance.
insufficient_balanceNot enough balance. Balance is $X.
not_activatedThis card has not been activated yet.
expiredThis card has expired.
voidedThis card has been cancelled.

Refused example

{
  "storeyTransactionId": null,
  "referenceId": "ORDER-1002",
  "status": "declined",
  "error": "Card not found. Check the number and try again.",
  "reason": "card_not_found",
  "paymentType": "gift_card",
  "giftCard": null,
  "receiptData": null,
  "replayed": false
}