Valet by Storey

Developer docs

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

Getting started

Build with AI

Hand the Valet docs to your AI assistant and have it build the payment step in your own POS.

View as Markdown

You can hand these docs to an AI coding assistant and have it build the Valet payment step inside your own point-of-sale software. Everything it needs is published as plain text.

What to give the AI

  • The full reference: https://storeypos.com/llms-full.txt
  • The OpenAPI spec: https://storeypos.com/openapi.json
  • Any single page as Markdown: the page URL plus .md, or the "Copy this page for AI" button at the top of every page.
  • Your Valet Key and Valet Tag stay in server-side environment variables (for example VALET_KEY and VALET_TAG). Never paste them into the AI chat, and never put them in browser code.

Starter prompt

Copy into your AI assistant

Build a payment step in my POS using the Valet API documented at https://storeypos.com/llms-full.txt (OpenAPI: https://storeypos.com/openapi.json). Use sale for cards, gift cards and store credit, refund and void by storeyTransactionId, keep keys server-side (read VALET_KEY and VALET_TAG from environment variables, never from the browser), send my own order number as referenceId, and show the receipt fields.

Check what it built

  • Calls go from your server, never the browser, with both headers.
  • Each order sends its own referenceId; retrying with the same one returns the first answer, never a second charge.
  • It reads status, not only the HTTP code, and shows error on a decline.
  • It stores storeyTransactionId for refunds and voids.
  • It never sends a card number or a fee percent.