Valet by Storey

Developer docs

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

Take a payment

Choose the transaction kind

Every Valet call, what it does and what to send, plus which call to use when.

View as Markdown

Every Valet call, what it does and what to send. Base URL https://storeypos.com.

KindCallSend
Card salePOST /api/public/valet/saleMinimum: referenceId and subtotal. taxAmount, tipAmount, shippingAmount default to 0; total is optional (if sent it must equal the sum). paymentType omitted or "card". Terminal only; key entry uses a session.
Gift card salePOST /api/public/valet/saleSame amounts + paymentType: "gift_card", giftCardCode: the exact code.
Store credit salePOST /api/public/valet/saleSame amounts + paymentType: "store_credit", giftCardCode: the store credit code (not a field named code).
Refund (all three payment types)POST /api/public/valet/sale/{storeyTransactionId}/refundSale ticket in path; optional amount for partial refund, memo. No paymentType/code: returns to the original payment.
Void (all three payment types)POST /api/public/valet/sale/{storeyTransactionId}/voidSale ticket in path; no body. Returns to the original payment.
Status lookupGET /api/public/valet/sale/{storeyTransactionId}Sale ticket in path; no body. Same sale answer.
Cancel before sendingPOST /api/public/valet/cancelreferenceId. Cancels only before sending to the terminal; returns sale answer plus cancelled boolean, never an in-flight processor cancel.
Gift card loadPOST /api/public/valet/giftcards/loadreferenceId, amount; optional code to add to an existing card, omitted to create one. Always add once, never load store credit.
Gift card / store credit balanceGET /api/public/valet/giftcards/{code}/balanceExact code in path; no body.
Hosted sale (card, gift_card, store_credit)POST /api/public/valet/session → POST /api/public/valet/session/{token}Create: kind: "sale" (default), referenceId, subtotal; optional total/taxAmount/tipAmount/shippingAmount. Run: paymentType omitted/card; or gift_card/store_credit + giftCardCode. Key-entry card: cardToken from secure provider field, optional address1/zip. Creation does not set paymentType.
Hosted refund (card, gift_card, store_credit)POST /api/public/valet/session → POST /api/public/valet/session/{token}Create: kind: "refund", storeyTransactionId (UUID), optional amount. Run: no body. Original sale determines payment type, never a new choice.
Hosted void (card, gift_card, store_credit)POST /api/public/valet/session → POST /api/public/valet/session/{token}Create: kind: "void", storeyTransactionId (UUID). Run: no body. Original sale determines payment type.
Hosted statusGET /api/public/valet/session/{token}Token in path; returns session view, paymentOptions, cardFee (card difference fee for card payments, or null), sale and reversal summaries (not the full run response).
Hosted secure card fieldGET /api/public/valet/session/{token}/cardToken in path; key-entry station only. Provider field initialization, not a saved card.
Hosted processor receipt copyPOST /api/public/valet/session/{token}/receiptphone (10 digits) and/or email. Approved processor card sale with gateway reference only; not digital gift-card delivery.

Which call do I use?

Creates a 20-minute token and payUrl. Send kind: sale (default) with referenceId, subtotal and total; or kind: refund / void with storeyTransactionId (the sale UUID), plus optional amount for a partial refund. Choose paymentType and giftCardCode when running a sale at POST /session/{token}, not when creating it. Refunds and voids inherit the original sale payment type; do not send a new paymentType or code. All three kinds work for card, gift_card and store_credit. Module-on choices appear automatically for sales; card stays the default.