> ## 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.

# List masked cards

> Lists masked cards for an order in the API key's business and mode, by ascending card id. Omit limit for 50 items or choose 1 to 100. Continue with the opaque next_cursor. A known order with no cards returns an empty page. Listing does not start the 24-hour reveal window or write a reveal audit. A refunded card cannot be revealed. A malformed, unknown, foreign-business or other-mode order id returns the same 404 not_found. Responses carry Cache-Control: private, no-store.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/orders/{id}/cards
openapi: 3.1.1
info:
  title: Recadd API
  description: >-
    The Recadd business API for buying gift cards. Authenticate with an API key;
    test keys start with rk_test_. Visitor IP and authenticated key request
    allowances are divided across the configured replicas. Effective allowances
    vary with traffic distribution, and overlapping replicas can temporarily
    raise them during rollouts.
  contact:
    name: Recadd
    url: https://recadd.com
  version: 1.0.0
servers:
  - url: https://api.recadd.com
security: []
tags:
  - name: Webhooks
  - name: Treasury
  - name: Wallet
  - name: Catalog
  - name: Orders
paths:
  /v1/orders/{id}/cards:
    get:
      tags:
        - Orders
      summary: List masked cards
      description: >-
        Lists masked cards for an order in the API key's business and mode, by
        ascending card id. Omit limit for 50 items or choose 1 to 100. Continue
        with the opaque next_cursor. A known order with no cards returns an
        empty page. Listing does not start the 24-hour reveal window or write a
        reveal audit. A refunded card cannot be revealed. A malformed, unknown,
        foreign-business or other-mode order id returns the same 404 not_found.
        Responses carry Cache-Control: private, no-store.
      operationId: PublicListCards
      parameters:
        - name: id
          in: path
          description: The order's id, prefixed ord_.
          required: true
          schema:
            type: string
          example: ord_01ka5krkayfxg8m6sc7n75ytkv
        - name: limit
          in: query
          description: How many items to return, 1 to 100. Defaults to 50.
          schema:
            maximum: 100
            minimum: 1
            type: integer
            format: int32
          example: 50
        - name: cursor
          in: query
          description: >-
            Where to continue, copied unchanged from the previous page's
            next_cursor. Omit it for the first page. A cursor that is not one of
            the API's own, or is over 512 characters, is a validation_failed
            error.
          schema:
            maxLength: 512
            minLength: 1
            type: string
          example: MDE5YThiM2MtNGQ1ZS03ZjYwLThhMWItMmMzZDRlNWY2YTdk
      responses:
        '200':
          description: A page of masked cards, by card id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PageOfCardResponse'
              examples:
                live:
                  value:
                    items:
                      - id: crd_01ka5krkayfxg8m6sc7n75ytkx
                        order_item_id: oit_01ka5krkayfxg8m6sc7n75ytkw
                        masked_code: '****0001'
                        serial_number: null
                        expires_on: null
                        first_revealed_at: null
                        code_available_until: null
                        code_status: not_revealed
                    next_cursor: null
                sandbox:
                  value:
                    items:
                      - id: crd_01ka5krkayfxg8m6sc7n75ytkx
                        order_item_id: oit_01ka5krkayfxg8m6sc7n75ytkw
                        masked_code: '****5AFE'
                        serial_number: null
                        expires_on: null
                        first_revealed_at: null
                        code_available_until: null
                        code_status: not_revealed
                    next_cursor: null
        '400':
          description: >-
            malformed_request, validation_failed. Validation failures carry
            field errors. An input value that cannot bind carries a plain
            problem.
          content:
            application/problem+json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/HttpValidationProblemDetails'
                  - $ref: '#/components/schemas/ProblemDetails'
              examples:
                malformed_request:
                  value:
                    status: 400
                    code: malformed_request
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                validation_failed:
                  value:
                    status: 400
                    code: validation_failed
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                    errors:
                      limit:
                        - Choose a limit from 1 to 100.
        '401':
          description: >-
            invalid_api_key: The Authorization header is missing or malformed,
            or names an API key that is unknown, revoked, expired or of the
            other mode. One answer for every case.
          headers:
            WWW-Authenticate:
              description: The authentication challenge for a missing or invalid API key.
              schema:
                type: string
              example: Bearer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                invalid_api_key:
                  value:
                    status: 401
                    code: invalid_api_key
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
        '403':
          description: >-
            ip_not_allowed: The request's address is outside the API key's IP
            allowlist. tier_limit_exceeded: The business's effective live API
            key permission denies the request. The default threshold is B1
            verification, and an override can change the permission. The limit
            is live_api_keys_allowed. The required_tier names the first higher
            tier whose default permits live API keys, or is null if none does.
            Holder overrides still apply. insufficient_scope: The API key lacks
            the scope the endpoint requires, named in required_scope. Checked in
            that order; the first that applies is returned.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                ip_not_allowed:
                  value:
                    status: 403
                    code: ip_not_allowed
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                tier_limit_exceeded:
                  value:
                    status: 403
                    code: tier_limit_exceeded
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                    limit: live_api_keys_allowed
                    limit_amount: null
                    current_tier: b0
                    required_tier: b1
                insufficient_scope:
                  value:
                    status: 403
                    code: insufficient_scope
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                    required_scope: orders:read
        '404':
          description: not_found
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                not_found:
                  value:
                    status: 404
                    code: not_found
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
        '413':
          description: >-
            payload_too_large. The request body exceeds the transport size
            limit.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                payload_too_large:
                  value:
                    status: 413
                    code: payload_too_large
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
        '429':
          description: >-
            rate_limited: The visitor IP or authenticated API key exceeded its
            request allowance, an endpoint limit was reached, or key guessing
            was throttled. Retry after the whole seconds in Retry-After.
          headers:
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                minimum: 1
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                rate_limited:
                  value:
                    status: 429
                    code: rate_limited
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
        '500':
          description: >-
            internal_error. An unexpected failure prevented the request from
            completing.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                internal_error:
                  value:
                    status: 500
                    code: internal_error
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
        '503':
          description: >-
            database_busy, server_busy. If the replica is at its public request
            concurrency limit, retry after 1 second. database_busy: every
            database connection this replica may open is in use; retry after
            Retry-After
          headers:
            Retry-After:
              description: >-
                Seconds to wait before retrying, when the code is server_busy or
                database_busy.
              schema:
                minimum: 0
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                database_busy:
                  value:
                    status: 503
                    code: database_busy
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                server_busy:
                  value:
                    status: 503
                    code: server_busy
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
      security:
        - ApiKey: []
components:
  schemas:
    PageOfCardResponse:
      required:
        - items
        - next_cursor
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/CardResponse'
          description: >-
            This page's rows, in the list's order: at most limit of them, and
            none when nothing matches.
        next_cursor:
          type:
            - 'null'
            - string
          description: >-
            The cursor to send as cursor for the next page, or null on the last
            page.
      additionalProperties: false
    HttpValidationProblemDetails:
      required:
        - code
        - trace_id
        - errors
      type: object
      properties:
        type:
          type:
            - 'null'
            - string
          description: >-
            A link describing the HTTP status, absent for some statuses. Switch
            on code, not on this.
        title:
          type:
            - 'null'
            - string
          description: >-
            A short summary of the problem for people to read. It may change;
            switch on code.
        status:
          type:
            - 'null'
            - integer
          description: The HTTP status code of the response.
          format: int32
        detail:
          type:
            - 'null'
            - string
          description: >-
            An explanation of this occurrence for people to read, when there is
            one. It may change; switch on code.
        instance:
          type:
            - 'null'
            - string
          description: A reference to this occurrence. This API does not set it.
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: >-
            The messages for each invalid field, keyed by the snake_case path
            the client sent.
        code:
          maxLength: 64
          pattern: ^[a-z][a-z0-9_]*$
          enum:
            - validation_failed
          type: string
          description: The stable error code to switch on; titles and details may change.
        trace_id:
          type: string
          description: >-
            The trace id of the request that produced this response (on a
            replay, the first request's), to quote to support.
        required_scope:
          type: string
          description: >-
            The API key scope required by this operation, for
            insufficient_scope.
        limit:
          type: string
          description: The name of the limit that refused the request.
        limit_amount:
          anyOf:
            - $ref: '#/components/schemas/MoneyResponse'
            - type: 'null'
          description: The amount allowed by the limit, or null for a feature gate.
        current_tier:
          type: string
          description: The holder's current verification tier, for tier_limit_exceeded.
        order_id:
          type: string
          description: >-
            The existing order's id, prefixed ord_, for
            duplicate_client_reference.
        required_tier:
          type:
            - 'null'
            - string
          description: >-
            The first higher verification tier that meets the limit, or null if
            none does. For live_api_keys_allowed, this is the first higher tier
            whose default permits live API keys. Holder overrides still apply.
    ProblemDetails:
      required:
        - code
        - trace_id
      type: object
      not:
        required:
          - errors
      properties:
        type:
          type:
            - 'null'
            - string
          description: >-
            A link describing the HTTP status, absent for some statuses. Switch
            on code, not on this.
        title:
          type:
            - 'null'
            - string
          description: >-
            A short summary of the problem for people to read. It may change;
            switch on code.
        status:
          type:
            - 'null'
            - integer
          description: The HTTP status code of the response.
          format: int32
        detail:
          type:
            - 'null'
            - string
          description: >-
            An explanation of this occurrence for people to read, when there is
            one. It may change; switch on code.
        instance:
          type:
            - 'null'
            - string
          description: A reference to this occurrence. This API does not set it.
        code:
          maxLength: 64
          pattern: ^[a-z][a-z0-9_]*$
          type: string
          not:
            enum:
              - validation_failed
          description: The stable error code to switch on; titles and details may change.
        trace_id:
          type: string
          description: >-
            The trace id of the request that produced this response (on a
            replay, the first request's), to quote to support.
        required_scope:
          type: string
          description: >-
            The API key scope required by this operation, for
            insufficient_scope.
        limit:
          type: string
          description: The name of the limit that refused the request.
        limit_amount:
          anyOf:
            - $ref: '#/components/schemas/MoneyResponse'
            - type: 'null'
          description: The amount allowed by the limit, or null for a feature gate.
        current_tier:
          type: string
          description: The holder's current verification tier, for tier_limit_exceeded.
        order_id:
          type: string
          description: >-
            The existing order's id, prefixed ord_, for
            duplicate_client_reference.
        required_tier:
          type:
            - 'null'
            - string
          description: >-
            The first higher verification tier that meets the limit, or null if
            none does. For live_api_keys_allowed, this is the first higher tier
            whose default permits live API keys. Holder overrides still apply.
    CardResponse:
      required:
        - id
        - order_item_id
        - masked_code
        - serial_number
        - expires_on
        - first_revealed_at
        - code_available_until
        - code_status
      type: object
      properties:
        id:
          type: string
          description: The card's id, prefixed crd_.
        order_item_id:
          type: string
          description: The order item the card was delivered for, prefixed oit_.
        masked_code:
          type: string
          description: >-
            Four asterisks, then the code's last four characters for a code of
            12 or more, its last two for 8 to 11, and nothing for a shorter
            code. Safe to show anywhere. A U+0000 in the supplier's code is
            shown here as U+FFFD; the revealed code keeps it.
        serial_number:
          type:
            - 'null'
            - string
          description: >-
            The card's serial number as the supplier gave it, with any U+0000
            shown as U+FFFD; null when the supplier gave none.
        expires_on:
          type:
            - 'null'
            - string
          description: >-
            The day the card expires as the supplier gave it; null when the
            supplier gave none.
          format: date
        first_revealed_at:
          type:
            - 'null'
            - string
          description: When the code was first revealed; null until then.
          format: date-time
        code_available_until:
          type:
            - 'null'
            - string
          description: >-
            Until when the code can be revealed again: 24 hours after its first
            reveal, after which Recadd cannot show it, ever. Null before the
            first reveal.
          format: date-time
        code_status:
          $ref: '#/components/schemas/CardCodeStatus'
          description: >-
            Whether the code can still be revealed: not_revealed, available,
            expired or refunded. A refunded card cannot be revealed, even within
            its original reveal window.
      additionalProperties: false
      description: >-
        A delivered card as a list shows it: its masked code and when its code
        can be revealed, never the code or PIN.
    MoneyResponse:
      required:
        - amount_minor
        - currency
        - display
      type: object
      properties:
        amount_minor:
          type: integer
          description: >-
            The amount as a whole number of the currency's minor unit, such as
            kobo for NGN or cents for USD.
          format: int64
        currency:
          type: string
          description: The ISO 4217 code of the currency, such as NGN or USD.
        display:
          type: string
          description: >-
            The amount formatted for people to read, with the currency's symbol
            (or its code) and as many decimals as its minor unit has, such as
            ₦1,500.00. Not for parsing; use amount_minor.
      additionalProperties: false
    CardCodeStatus:
      enum:
        - not_revealed
        - available
        - expired
        - refunded
      type: string
      description: >-
        refunded: the card was refunded and its code cannot be revealed.
        not_revealed: the code has never been revealed and can be. available: it
        was first revealed less than 24 hours ago and can be revealed again
        until code_available_until. expired: 24 hours have passed since its
        first reveal, and Recadd can never show the code again.
  securitySchemes:
    ApiKey:
      type: http
      description: >-
        An API key in the Authorization header, for example Authorization:
        Bearer rk_test_<key id>_<secret>. Test keys start with rk_test_; the key
        is shown once, when it is created or rotated.
      scheme: bearer
      x-recadd-problems:
        - $ref: '#/components/responses/InvalidApiKey'
        - $ref: '#/components/responses/IpNotAllowed'
        - $ref: '#/components/responses/TierLimitExceeded'
        - $ref: '#/components/responses/InsufficientScope'
        - $ref: '#/components/responses/RateLimited'

````

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