Valet by Storey

Developer docs

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

Reference

Receipt fields

Every receiptData field on sales, refunds and voids, with type and when it is null.

View as Markdown

Every approved sale, refund and void answer carries receiptData with the same keys. It is null unless approved. Fields that don't apply are null.

receiptData fieldTypeWhen present / null
kind"sale" | "refund" | "void"Which transaction this receipt is for.
valetReferencestringYour referenceId for the original sale.
storeyTransactionIdstringAlways the original sale's UUID, so refunds and voids link back.
reversalIdstring | nullRefund/void: ID of this reversal. Null on sales.
valorTransactionIdstring | nullThis transaction's own Valor ID (sale, refund or void). Null when Valor gave none, and for stored value.
originalValorTransactionIdstring | nullRefund/void: the original sale's Valor ID. Null on sales.
valorRefundTransactionIdstring | nullRefunds and voids: same value as valorTransactionId (kept for older integrations). Null on sales.
approvalCodestring | nullThis transaction's approval code; null when Valor gave none and for stored value.
rrnstring | nullThis transaction's RRN; null when not provided and for stored value.
dateTimestring (ISO date-time)When this sale, refund or void happened.
cardBrandstring | nullOriginal card brand; null for gift cards/store credit.
last4string | nullPayment card last four only; null for stored value.
entryModestring | nullHow the original card was read; null for stored value.
amountnumberSale: total. Refund: the amount you sent. Void: the original total.
taxAmountnumber | nullSale and void: the sale's tax (zero is valid). Refund: null — items are never reconciled.
feeAmountnumber | nullSale and void: card difference fee, null if none. Refund: null. Always null for stored value.
batchNumberstring | nullThis transaction's batch number when Valor returns it; null otherwise and for stored value.
tranNumberstring | nullThis transaction's transaction number when Valor returns it; null otherwise and for stored value.
originalAmountsobjectThe original sale: subtotal, taxAmount, tipAmount, shippingAmount, feeAmount (null if none), total.
refundedSoFarnumberTotal refunded on the sale after this transaction (a void counts the whole total).
remainingnumberWhat can still be refunded after this transaction.
paymentType"card" | "gift_card" | "store_credit"How the original sale was paid.
giftCardLast4string | nullStored value: code ending. Null for cards.
balanceAfternumber | nullStored value: balance after this transaction. Null for cards.
cardDifferenceFeenumber | nullCard difference fee on the original card sale (cash-discount locations only). Null where none applies, and always for stored value.
amountRequestednumberThe cash price you asked for (the sale's total).
amountChargednumberWhat the card paid: amountRequested + cardDifferenceFee. Equal to amountRequested when there is no fee.
cardFeePercentnumber | nullThe location's boarded percent used for the fee; null when no fee applies.
cardFeeReturnednumber | nullRefund only: the whole card fee given back on the refund that completed the cash price. Null otherwise.