> ## Documentation Index
> Fetch the complete documentation index at: https://docs.recadd.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cards and codes

> Reveal and store codes within their availability window.

`GET /v1/orders/{id}/cards` lists cards without revealing their codes. Use `POST /v1/orders/{id}/cards/reveal` with scope `orders:read_codes` and 1 to 100 distinct card ids. The request is all or nothing for id validation and access. If any id is missing or outside the order, business or mode, you get `404 not_found` for the whole request. Recadd audit-logs every reveal.

> [!WARNING]
>
> Store the code securely on the first reveal. The first reveal starts a 24-hour window, shown in `code_available_until`. When the window closes, Recadd deletes its copy and can never show the code again.

| Response | Possible values of `code_status` |
| - | - |
| List | `not_revealed`, `available`, `expired`, `refunded` |
| Reveal | `shown`, `expired`, `refunded`, `unavailable` |

The reveal response includes a code only when `code_status` is `shown`. Otherwise both `code` and `pin` are null. Retry `unavailable` later with a fresh idempotency key. A refunded card returns `refunded`, has no code or PIN, and starts no reveal window.

A refund credits the USD wallet. The order response records it in the `refunded` amount and in the card counts.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.