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

# Create a conversion

> Holds the quoted NGN and requests admin approval as the API key. Any key with this scope in the same business can use its unused quote before expiry. Standalone conversions always wait for an admin regardless of the order approval mode and use no API key spend cap. The same key and body replay the first HTTP response for 24 hours. Afterward the same request returns the original conversion even after the quote expires. A changed request under that key returns 422 and leaves the original request replayable. The per-business create limit is 30 a minute per replica by default and includes refused attempts. New Test conversions return 409 test_mode_unavailable while sandbox admission is closed. Responses carry Cache-Control: private, no-store.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/fx/conversions
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/fx/conversions:
    post:
      tags:
        - Treasury
      summary: Create a conversion
      description: >-
        Holds the quoted NGN and requests admin approval as the API key. Any key
        with this scope in the same business can use its unused quote before
        expiry. Standalone conversions always wait for an admin regardless of
        the order approval mode and use no API key spend cap. The same key and
        body replay the first HTTP response for 24 hours. Afterward the same
        request returns the original conversion even after the quote expires. A
        changed request under that key returns 422 and leaves the original
        request replayable. The per-business create limit is 30 a minute per
        replica by default and includes refused attempts. New Test conversions
        return 409 test_mode_unavailable while sandbox admission is closed.
        Responses carry Cache-Control: private, no-store.
      operationId: PublicCreateConversion
      parameters:
        - name: Idempotency-Key
          in: header
          description: >-
            A client-chosen key, 1 to 255 printable ASCII characters with no
            spaces, that makes a retry of this request return the first response
            instead of running it again.
          required: true
          schema:
            maxLength: 255
            minLength: 1
            pattern: ^[\x21-\x7E]+$
            type: string
          example: conversion-1
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateConversionRequest'
            example:
              quote_id: fxq_01ka5krkayfxg8m6sc7n75ytkv
        required: true
      responses:
        '202':
          description: >-
            The conversion with its naira held in the key's mode and its public
            detail in Location.
          headers:
            Idempotent-Replayed:
              description: >-
                Present when this response is a replay of the first response to
                the same Idempotency-Key and request.
              schema:
                enum:
                  - 'true'
                type: string
            Location:
              description: The relative public conversion detail path.
              schema:
                type: string
              example: /v1/fx/conversions/fxc_01ka5krkayfxg8m6sc7n75ytkw
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ConversionResponse'
              examples:
                live:
                  value:
                    id: fxc_01ka5krkayfxg8m6sc7n75ytkw
                    quote_id: fxq_01ka5krkayfxg8m6sc7n75ytkv
                    status: pending_approval
                    usd_amount:
                      amount_minor: 10000
                      currency: USD
                      display: $100.00
                    ngn_amount:
                      amount_minor: 15375000
                      currency: NGN
                      display: ₦153,750.00
                    sell_rate: '1537.500000000000'
                    created_at: '2026-11-17T10:00:10+00:00'
                    decided_at: null
                    completed_at: null
                    denial_reason: null
                    cancel_reason: null
                    order_id: null
                sandbox:
                  value:
                    id: fxc_01ka5krkayfxg8m6sc7n75ytkw
                    quote_id: fxq_01ka5krkayfxg8m6sc7n75ytkv
                    status: pending_approval
                    usd_amount:
                      amount_minor: 1000
                      currency: USD
                      display: $10.00
                    ngn_amount:
                      amount_minor: 1500000
                      currency: NGN
                      display: ₦15,000.00
                    sell_rate: '1500.000000000000'
                    created_at: '2026-11-17T10:00:10+00:00'
                    decided_at: null
                    completed_at: null
                    denial_reason: null
                    cancel_reason: null
                    order_id: null
        '400':
          description: >-
            idempotency_key_required, idempotency_key_invalid,
            malformed_request, validation_failed. Validation failures carry
            field errors. An input value that cannot bind carries a plain
            problem.
          headers:
            Idempotent-Replayed:
              description: >-
                Present when this response is a replay of the first response to
                the same Idempotency-Key and request.
              schema:
                enum:
                  - 'true'
                type: string
          content:
            application/problem+json:
              schema:
                anyOf:
                  - $ref: '#/components/schemas/HttpValidationProblemDetails'
                  - $ref: '#/components/schemas/ProblemDetails'
              examples:
                idempotency_key_required:
                  value:
                    status: 400
                    code: idempotency_key_required
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                idempotency_key_invalid:
                  value:
                    status: 400
                    code: idempotency_key_invalid
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                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:
                      quote_id:
                        - Supply a quote id prefixed fxq_.
        '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: >-
            account_frozen. 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. After authentication, tier_limit_exceeded
            can also apply to usd_purchase_allowed, max_balance_ngn or
            max_balance_usd. limit_amount is the balance cap in that currency or
            null for a permission. current_tier is the effective tier, and
            required_tier is the first higher tier that meets the limit, or
            null.
          headers:
            Idempotent-Replayed:
              description: >-
                Present when this response is a replay of the first response to
                the same Idempotency-Key and request.
              schema:
                enum:
                  - 'true'
                type: string
          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: fx:write
                account_frozen:
                  value:
                    status: 403
                    code: account_frozen
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                tier_limit_exceeded_usd_purchase_allowed:
                  value:
                    status: 403
                    code: tier_limit_exceeded
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                    limit: usd_purchase_allowed
                    limit_amount: null
                    current_tier: b1
                    required_tier: b2
                tier_limit_exceeded_max_balance_ngn:
                  value:
                    status: 403
                    code: tier_limit_exceeded
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                    limit: max_balance_ngn
                    limit_amount:
                      amount_minor: 10000000
                      currency: NGN
                      display: ₦100,000.00
                    current_tier: b1
                    required_tier: b2
                tier_limit_exceeded_max_balance_usd:
                  value:
                    status: 403
                    code: tier_limit_exceeded
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                    limit: max_balance_usd
                    limit_amount:
                      amount_minor: 5000
                      currency: USD
                      display: $50.00
                    current_tier: b1
                    required_tier: b2
        '404':
          description: not_found
          headers:
            Idempotent-Replayed:
              description: >-
                Present when this response is a replay of the first response to
                the same Idempotency-Key and request.
              schema:
                enum:
                  - 'true'
                type: string
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                not_found:
                  value:
                    status: 404
                    code: not_found
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
        '409':
          description: >-
            idempotency_key_in_progress, test_mode_unavailable, quote_expired,
            quote_used, conversion_unavailable, insufficient_funds
          headers:
            Idempotent-Replayed:
              description: >-
                Present when this response is a replay of the first response to
                the same Idempotency-Key and request.
              schema:
                enum:
                  - 'true'
                type: string
            Retry-After:
              description: >-
                Seconds to wait before retrying, when the code is
                idempotency_key_in_progress.
              schema:
                minimum: 0
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                idempotency_key_in_progress:
                  value:
                    status: 409
                    code: idempotency_key_in_progress
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                test_mode_unavailable:
                  value:
                    status: 409
                    code: test_mode_unavailable
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                quote_expired:
                  value:
                    status: 409
                    code: quote_expired
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                quote_used:
                  value:
                    status: 409
                    code: quote_used
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                conversion_unavailable:
                  value:
                    status: 409
                    code: conversion_unavailable
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                insufficient_funds:
                  value:
                    status: 409
                    code: insufficient_funds
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
        '413':
          description: >-
            payload_too_large. The request body exceeds the 24576-byte limit.
            The Idempotency-Key is not claimed.
          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
        '415':
          description: unsupported_media_type
          headers:
            Idempotent-Replayed:
              description: >-
                Present when this response is a replay of the first response to
                the same Idempotency-Key and request.
              schema:
                enum:
                  - 'true'
                type: string
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                unsupported_media_type:
                  value:
                    status: 415
                    code: unsupported_media_type
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
        '422':
          description: idempotency_key_reused
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                idempotency_key_reused:
                  value:
                    status: 422
                    code: idempotency_key_reused
                    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. fx_unavailable: retry in 60 seconds.
            treasury_busy: retry in 5 seconds. key_requesters_unavailable: FX is
            disabled during rollout, retry in 5 seconds. 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
                fx_unavailable, treasury_busy, key_requesters_unavailable,
                server_busy or database_busy.
              schema:
                minimum: 0
                type: integer
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                fx_unavailable:
                  value:
                    status: 503
                    code: fx_unavailable
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                treasury_busy:
                  value:
                    status: 503
                    code: treasury_busy
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                key_requesters_unavailable:
                  value:
                    status: 503
                    code: key_requesters_unavailable
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
                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
        '504':
          description: request_timeout
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
              examples:
                request_timeout:
                  value:
                    status: 504
                    code: request_timeout
                    trace_id: 00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01
      security:
        - ApiKey: []
components:
  schemas:
    CreateConversionRequest:
      required:
        - quote_id
      type: object
      properties:
        quote_id:
          type: string
          description: >-
            The quote to convert at, prefixed fxq_, created by this business
            less than 60 seconds ago and not yet used.
      additionalProperties: false
    ConversionResponse:
      required:
        - id
        - quote_id
        - status
        - usd_amount
        - ngn_amount
        - sell_rate
        - created_at
        - decided_at
        - completed_at
        - denial_reason
        - cancel_reason
        - order_id
      type: object
      properties:
        id:
          type: string
          description: The conversion's id, prefixed fxc_.
        quote_id:
          type: string
          description: The quote the conversion was created from, prefixed fxq_.
        status:
          $ref: '#/components/schemas/ConversionStatus'
          description: >-
            Where the conversion is: pending_approval and needs_review wait for
            an admin; completed, denied and cancelled are final.
        usd_amount:
          $ref: '#/components/schemas/MoneyResponse'
          description: The USD the conversion credits to the USD wallet once completed.
        ngn_amount:
          $ref: '#/components/schemas/MoneyResponse'
          description: >-
            The naira held while it waits, then charged: usd_amount at
            sell_rate, rounded up to the kobo.
        sell_rate:
          type: string
          description: >-
            Naira per dollar locked from the quote, exact, as a decimal string
            with twelve places; never rounded.
        created_at:
          type: string
          description: When the conversion was created.
          format: date-time
        decided_at:
          type:
            - 'null'
            - string
          description: When it was completed, denied or cancelled; null while it waits.
          format: date-time
        completed_at:
          type:
            - 'null'
            - string
          description: >-
            When the naira was charged and the USD credited; null unless
            completed.
          format: date-time
        denial_reason:
          type:
            - 'null'
            - string
          description: The admin's reason for a denial; null unless denied.
        cancel_reason:
          type:
            - 'null'
            - string
          description: >-
            customer_cancelled, approval_expired, or price_changed for an
            order's conversion cancelled because the card's price rose while it
            waited; null unless cancelled.
        order_id:
          type:
            - 'null'
            - string
          description: >-
            The order this conversion buys dollars for, prefixed ord_; null for
            a conversion the business created itself. Only the order's own
            cancel can cancel it.
      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.
    ConversionStatus:
      enum:
        - pending_approval
        - needs_review
        - completed
        - denied
        - cancelled
      type: string
      description: >-
        pending_approval: the naira is held and an admin has not decided.
        needs_review: approved, but the rate moved beyond tolerance or USD ran
        short, so an admin decides again. completed: the naira was charged and
        the USD credited. denied: an admin refused it and the hold was released.
        cancelled: the business cancelled it or its approval expired, and the
        hold was released.
    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
  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.