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

# Read a transaction

> Reads a transaction.



## OpenAPI

````yaml /openapi/api-production.yaml get /transactions/{id}
openapi: 3.1.0
info:
  version: 1.0.0
  title: Lumx API
  description: >-
    A cross-border banking API with instant settlements and unmatched liquidity,
    powered by stablecoins.
servers:
  - url: https://api-sandbox.lumx.io
security: []
paths:
  /transactions/{id}:
    get:
      tags:
        - Transactions
      summary: Read a transaction
      description: Reads a transaction.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Transaction's unique identifier (UUID v4).
          example: 0ccac40f-612c-4729-9a83-16437b085b48
      responses:
        '200':
          description: Transaction successfully retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponse'
              examples:
                On-ramp - Awaiting funds:
                  $ref: '#/components/examples/TransactionOnRampAwaitingFundsExample'
                On-ramp - Transferring fiat:
                  $ref: >-
                    #/components/examples/TransactionOnRampTransferringFiatExample
                On-ramp - Trading:
                  $ref: '#/components/examples/TransactionOnRampTradingExample'
                On-ramp - Transferring stablecoin:
                  $ref: >-
                    #/components/examples/TransactionOnRampTransferringStablecoinExample
                On-ramp - Success:
                  $ref: '#/components/examples/TransactionOnRampSuccessExample'
                On-ramp - Success (PIX, partner fee):
                  $ref: '#/components/examples/TransactionOnRampSuccessPixExample'
                On-ramp - Failed:
                  $ref: '#/components/examples/TransactionOnRampFailedExample'
                On-ramp - Expired:
                  $ref: '#/components/examples/TransactionOnRampExpiredExample'
                Off-ramp - Transferring stablecoin:
                  $ref: >-
                    #/components/examples/TransactionOffRampTransferringStablecoinExample
                Off-ramp - Trading:
                  $ref: '#/components/examples/TransactionOffRampTradingExample'
                Off-ramp - Transferring fiat:
                  $ref: >-
                    #/components/examples/TransactionOffRampTransferringFiatExample
                Off-ramp - Success:
                  $ref: '#/components/examples/TransactionOffRampSuccessExample'
                Off-ramp - Success (locked):
                  $ref: '#/components/examples/TransactionOffRampSuccessLockedExample'
                Off-ramp - Failed:
                  $ref: '#/components/examples/TransactionOffRampFailedExample'
                Transfer - Transferring stablecoin:
                  $ref: '#/components/examples/TransactionTransferProcessingExample'
                Transfer - Success:
                  $ref: '#/components/examples/TransactionTransferSuccessExample'
                Transfer - Failed:
                  $ref: '#/components/examples/TransactionTransferFailedExample'
        '400':
          description: |-
            Bad request. Possible codes:

            - `VALIDATION_ERROR`: id is not a UUID (v4).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                requestId: aa734e08-5846-48dd-9109-2c7057487c3c
                timestamp: '2026-11-04T16:55:45.452Z'
                path: /transactions/abc
                status: 400
                code: VALIDATION_ERROR
                message: The request body contains invalid parameters.
                validationErrors:
                  - param: id
                    message: id must be a UUID
        '401':
          description: |-
            Unauthorized. Possible codes:

            - `UNAUTHORIZED`: The API key is missing, invalid or inactive.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                requestId: 564dcf18-b799-4cd9-9b2c-eac7cda60b60
                timestamp: '2026-11-04T17:22:41.377Z'
                path: /transactions/00000000-0000-4000-8000-000000000000
                status: 401
                code: UNAUTHORIZED
                message: Unauthorized
        '403':
          description: >-
            Forbidden. Possible codes:


            - `FORBIDDEN`: The API key doesn't have the scope this route
            requires.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                requestId: 472048ca-1e92-43ca-86a8-7ac0f8fd6654
                timestamp: '2026-11-04T16:55:46.613Z'
                path: /transactions/70f81563-246f-4aba-91a1-45ce0b9887bc
                status: 403
                code: FORBIDDEN
                message: This API key can't access this resource.
        '404':
          description: |-
            Not found. Possible codes:

            - `TRANSACTION_NOT_FOUND`: No transaction with this id.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                requestId: 404aed80-4546-4b96-8bd4-aa5c9127c28d
                timestamp: '2026-11-04T16:55:46.022Z'
                path: /transactions/00000000-0000-4000-8000-000000000000
                status: 404
                code: TRANSACTION_NOT_FOUND
                message: >-
                  Transaction with id 00000000-0000-4000-8000-000000000000 not
                  found.
      security:
        - apiKey: []
components:
  schemas:
    TransactionResponse:
      description: Transaction. Shape depends on `type`.
      oneOf:
        - $ref: '#/components/schemas/TransactionOnRampResponse'
        - $ref: '#/components/schemas/TransactionOffRampResponse'
        - $ref: '#/components/schemas/TransactionTransferResponse'
      discriminator:
        propertyName: type
        mapping:
          ON_RAMP: '#/components/schemas/TransactionOnRampResponse'
          OFF_RAMP: '#/components/schemas/TransactionOffRampResponse'
          TRANSFER: '#/components/schemas/TransactionTransferResponse'
    ErrorResponse:
      type: object
      description: >-
        Error returned by every route. Match on `code`; keep `requestId` for
        support requests. See [Errors](/developer/errors).
      required:
        - requestId
        - timestamp
        - path
        - status
        - code
        - message
      properties:
        requestId:
          type: string
          format: uuid
          description: Request's unique identifier. Include it when contacting support.
        timestamp:
          type: string
          format: date-time
          description: Date and time the error was generated (UTC).
        path:
          type: string
          description: Path of the request that failed.
        status:
          type: integer
          description: HTTP status code.
        code:
          type: string
          description: Machine-readable error code.
        message:
          type: string
          description: Human-readable description of the error.
        validationErrors:
          type: array
          description: >-
            Fields that failed validation. Returned with some `VALIDATION_ERROR`
            responses.
          items:
            type: object
            properties:
              param:
                type: string
                description: Name of the parameter or field that failed.
              message:
                type: string
                description: Why it failed.
    TransactionOnRampResponse:
      type: object
      title: On-ramp
      properties:
        id:
          type: string
          format: uuid
          description: Transaction's unique identifier.
          example: 3960c216-e281-4b40-b5ea-98c1dbfb819a
        customerId:
          type: string
          format: uuid
          description: Customer's unique identifier.
          example: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type:
          type: string
          enum:
            - ON_RAMP
          description: Transaction's type.
          example: ON_RAMP
        request:
          type: object
          description: >-
            Transaction's request, as resolved by Lumx. For locked rates, the
            values come from the exchange rate.
          properties:
            sourceCurrency:
              type: string
              description: Fiat currency to be converted.
              example: BRL
            targetCurrency:
              type: string
              description: Stablecoin to be received.
              example: USDC
            sourceAmount:
              type: string
              description: Amount to be converted. 2 decimal places.
              example: '1000.00'
            targetAmount:
              type: string
              description: >-
                Stablecoin amount to be received, 6 decimal places. Set from the
                exchange rate for locked rates; omitted for floating rates until
                the final amount is known.
              example: '178.462990'
            rail:
              $ref: '#/components/schemas/TransactionRail'
            purpose:
              $ref: '#/components/schemas/TransactionPurpose'
            blockchain:
              type: string
              description: Blockchain the stablecoin is delivered on.
              example: POLYGON
        state:
          type: object
          description: Transaction's current state.
          properties:
            status:
              $ref: '#/components/schemas/TransactionStatus'
            payment:
              $ref: '#/components/schemas/TransactionOnRampPayment'
            receipt:
              $ref: '#/components/schemas/TransactionOnRampReceipt'
        metadata:
          type: object
          additionalProperties: true
          description: >-
            Transaction's metadata, as sent on creation. Empty object when none
            was sent.
          example:
            orderId: ord_789
        createdAt:
          type: string
          format: date-time
          description: Creation date and time (UTC).
          example: '2026-11-03T17:40:39.774Z'
        updatedAt:
          type: string
          format: date-time
          description: Last update date and time (UTC).
          example: '2026-11-03T17:40:40.112Z'
    TransactionOffRampResponse:
      type: object
      title: Off-ramp
      properties:
        id:
          type: string
          format: uuid
          description: Transaction's unique identifier.
          example: 171726cd-83f2-4b51-807f-463b17491064
        customerId:
          type: string
          format: uuid
          description: Customer's unique identifier.
          example: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type:
          type: string
          enum:
            - OFF_RAMP
          description: Transaction's type.
          example: OFF_RAMP
        request:
          type: object
          description: >-
            Transaction's request, as resolved by Lumx. For locked rates, the
            values come from the exchange rate.
          properties:
            sourceCurrency:
              type: string
              description: Stablecoin to be converted.
              example: USDC
            targetCurrency:
              type: string
              description: Fiat currency to be paid out. Always the destination's currency.
              example: BRL
            sourceAmount:
              type: string
              description: Amount to be converted. 6 decimal places.
              example: '100.000000'
            targetAmount:
              type: string
              description: >-
                Fiat amount to be paid out, 2 decimal places. Set from the
                exchange rate for locked rates; omitted for floating rates until
                the final amount is known.
              example: '538.50'
            bankAccountId:
              type: string
              format: uuid
              description: >-
                Destination's unique identifier (the `destinationId` sent on
                creation).
              example: 8be529c1-1f8c-4977-9bca-6a62c47e75b9
            rail:
              $ref: '#/components/schemas/TransactionRail'
            purpose:
              $ref: '#/components/schemas/TransactionPurpose'
            blockchain:
              type: string
              description: Blockchain the stablecoin is collected on.
              example: POLYGON
            memo:
              type: string
              description: Memo sent on creation.
              example: INV-2026-11-0001
        state:
          type: object
          description: Transaction's current state.
          properties:
            status:
              $ref: '#/components/schemas/TransactionStatus'
            receipt:
              $ref: '#/components/schemas/TransactionOffRampReceipt'
        metadata:
          type: object
          additionalProperties: true
          description: >-
            Transaction's metadata, as sent on creation. Empty object when none
            was sent.
          example:
            orderId: ord_789
        createdAt:
          type: string
          format: date-time
          description: Creation date and time (UTC).
          example: '2026-11-03T17:40:39.774Z'
        updatedAt:
          type: string
          format: date-time
          description: Last update date and time (UTC).
          example: '2026-11-03T17:40:40.112Z'
    TransactionTransferResponse:
      type: object
      title: Transfer
      properties:
        id:
          type: string
          format: uuid
          description: Transaction's unique identifier.
          example: bb9680d8-a42b-43a7-b26a-3c06aaa23e1e
        customerId:
          type: string
          format: uuid
          description: Customer's unique identifier. For transfers, the sending customer.
          example: 31d79c2a-6a4d-4240-b3fd-5e6ccb68527d
        type:
          type: string
          enum:
            - TRANSFER
          description: Transaction's type.
          example: TRANSFER
        request:
          type: object
          description: Transaction's request.
          properties:
            currency:
              type: string
              description: Stablecoin transferred.
              example: USDC
            from:
              type: string
              format: uuid
              description: Sending customer's unique identifier.
              example: 31d79c2a-6a4d-4240-b3fd-5e6ccb68527d
            to:
              type: string
              description: >-
                Recipient, as sent on creation: a customer's unique identifier
                or a wallet address.
              example: 992f6325-fdd9-410d-803c-2ec0f30e1d74
            amount:
              type: string
              description: Amount transferred, as sent on creation.
              example: '100.00'
            blockchain:
              type: string
              description: Blockchain the transfer runs on.
              example: POLYGON
        state:
          type: object
          description: Transaction's current state.
          properties:
            status:
              $ref: '#/components/schemas/TransactionStatus'
            receipt:
              type: object
              description: >-
                Transfer's receipt. Present once the on-chain transaction
                exists. A failed transfer returns no receipt.
              properties:
                transactionHash:
                  type: string
                  description: Receipt's on-chain transaction hash.
                  example: >-
                    0x5f1c3a9e2b7d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a
                blockExplorerUrl:
                  type: string
                  format: uri
                  description: Receipt's block explorer URL for `transactionHash`.
                  example: >-
                    https://amoy.polygonscan.com/tx/0x5f1c3a9e2b7d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a
        metadata:
          type: object
          additionalProperties: true
          description: >-
            Transaction's metadata, as sent on creation. Empty object when none
            was sent.
          example:
            orderId: ord_789
        createdAt:
          type: string
          format: date-time
          description: Creation date and time (UTC).
          example: '2026-11-03T17:40:39.774Z'
        updatedAt:
          type: string
          format: date-time
          description: Last update date and time (UTC).
          example: '2026-11-03T17:40:40.112Z'
    TransactionRail:
      type: string
      enum:
        - PIX
        - SWIFT
        - SEPA
        - FEDWIRE
        - ACH
        - SPEI
        - FPS
      description: >-
        Payment rail. Each rail settles one fiat currency: `PIX`: BRL, `SPEI`:
        MXN, `SEPA`: EUR, `FPS`: GBP, `SWIFT`, `FEDWIRE` and `ACH`: USD. The
        rail must be enabled for your project.
      example: PIX
    TransactionPurpose:
      type: string
      enum:
        - PERSONAL_ACCOUNT
        - INVESTMENT
        - REAL_ESTATE
        - TRADE_TRANSACTIONS
        - TAX
        - LOAN
        - BILLS
        - EXPENSES_REIMBURSEMENT
        - PROFESSIONAL_SERVICES
      description: >-
        Transaction's purpose. Case-insensitive. `PERSONAL_ACCOUNT`: transfer to
        or from the customer's own account (for off-ramps, the destination
        holder's relationship must be `SELF`), `INVESTMENT`: investment,
        `REAL_ESTATE`: real estate purchase or rent, `TRADE_TRANSACTIONS`:
        payment for goods, `TAX`: tax payment, `LOAN`: loan payment or
        disbursement, `BILLS`: bill payment, `EXPENSES_REIMBURSEMENT`: expense
        reimbursement, `PROFESSIONAL_SERVICES`: payment for professional
        services.
      example: PERSONAL_ACCOUNT
    TransactionStatus:
      type: string
      enum:
        - AWAITING_FUNDS
        - TRANSFERRING_FIAT
        - TRANSFERRING_STABLECOIN
        - TRADING
        - SUCCESS
        - FAILED
        - EXPIRED
      description: >-
        Transaction's status. See [Transaction
        lifecycle](/concepts/transactions#transaction-lifecycle) for the order
        by transaction type.
      example: AWAITING_FUNDS
    TransactionOnRampPayment:
      description: Payment instructions for the fiat deposit. Shape depends on the rail.
      oneOf:
        - type: object
          title: PIX
          description: Payment's rail is PIX.
          properties:
            rail:
              type: string
              enum:
                - PIX
              description: Payment rail.
              example: PIX
            brCode:
              type: string
              description: >-
                PIX copy-and-paste code (BR Code). Pay it from any Brazilian
                bank app.
              example: >-
                00020101021226900014br.gov.bcb.pix2568qrcode.bpy.com.br/pix/v2/cobv/3960c216e2814b40b5ea98c1dbfb819a5204000053039865802BR5909Lumx
                Ltda6014Rio de Janeiro62070503***6304A1B2
        - type: object
          title: ACH
          description: Payment's rail is ACH.
          properties:
            rail:
              type: string
              enum:
                - ACH
              description: Payment rail.
              example: ACH
            identifier:
              type: object
              description: Account to send the transfer to.
              properties:
                accountNumber:
                  type: string
                  description: Account number.
                  example: '8312047765'
                accountRoutingNumber:
                  type: string
                  description: ABA routing number.
                  example: '021000021'
            holder:
              type: object
              description: Account holder.
              properties:
                name:
                  type: string
                  description: Holder's name.
                  example: Lumx US Inc.
                address:
                  type: object
                  description: Holder's address.
                  properties:
                    line1:
                      type: string
                      description: Address line 1.
                      example: 100 Wall Street
                    city:
                      type: string
                      description: City.
                      example: New York
                    state:
                      type: string
                      description: State or province.
                      example: NY
                    country:
                      type: string
                      description: Country (ISO 3166-1 alpha-3).
                      example: USA
                    postalCode:
                      type: string
                      description: Postal code.
                      example: '10005'
            bank:
              type: object
              description: Receiving bank.
              properties:
                name:
                  type: string
                  description: Bank's name.
                  example: JPMorgan Chase Bank
            memo:
              type: string
              description: >-
                Reference to include in the transfer. Required for the deposit
                to be matched to this transaction.
              example: LUMX447967D2
        - type: object
          title: SWIFT / FEDWIRE
          description: Payment's rail is SWIFT or FEDWIRE.
          properties:
            rail:
              type: string
              enum:
                - SWIFT
                - FEDWIRE
              description: Payment rail.
              example: SWIFT
            identifier:
              type: object
              description: Account to send the wire to.
              properties:
                accountNumber:
                  type: string
                  description: Account number.
                  example: '1234567890'
                accountRoutingNumber:
                  type: string
                  description: ABA routing number.
                  example: 26009593
                bic:
                  type: string
                  description: >-
                    Bank's SWIFT/BIC code. Omitted when the provider returns
                    none (for example, on FEDWIRE).
                  example: BUTTKYKY
            holder:
              type: object
              description: Account holder.
              properties:
                name:
                  type: string
                  description: Holder's name.
                  example: Lumx Cayman Ltd.
                address:
                  type: object
                  description: Holder's address.
                  properties:
                    line1:
                      type: string
                      description: Address line 1.
                      example: 100 Wall Street
                    city:
                      type: string
                      description: City.
                      example: New York
                    state:
                      type: string
                      description: State or province.
                      example: NY
                    country:
                      type: string
                      description: Country (ISO 3166-1 alpha-3).
                      example: USA
                    postalCode:
                      type: string
                      description: Postal code.
                      example: '10005'
            bank:
              type: object
              description: Receiving bank.
              properties:
                name:
                  type: string
                  description: Bank's name.
                  example: Butterfield Bank (Cayman) Limited
                address:
                  type: object
                  description: Bank's address.
                  properties:
                    line1:
                      type: string
                      description: Address line 1.
                      example: 100 Wall Street
                    city:
                      type: string
                      description: City.
                      example: New York
                    state:
                      type: string
                      description: State or province.
                      example: NY
                    country:
                      type: string
                      description: Country (ISO 3166-1 alpha-3).
                      example: USA
                    postalCode:
                      type: string
                      description: Postal code.
                      example: '10005'
            memo:
              type: string
              description: >-
                Reference to include in the wire. Required for the deposit to be
                matched to this transaction.
              example: LUMX846722E9
        - type: object
          title: SEPA
          description: Payment's rail is SEPA.
          properties:
            rail:
              type: string
              enum:
                - SEPA
              description: Payment rail.
              example: SEPA
            identifier:
              type: object
              description: Account to send the transfer to.
              properties:
                iban:
                  type: string
                  description: IBAN, without spaces.
                  example: FR1420041010050500013M02606
                bic:
                  type: string
                  description: Bank's SWIFT/BIC code.
                  example: BNPAFRPP
            holder:
              type: object
              description: Account holder.
              properties:
                name:
                  type: string
                  description: Holder's name.
                  example: Lumx SAS
        - type: object
          title: FPS
          description: Payment's rail is FPS.
          properties:
            rail:
              type: string
              enum:
                - FPS
              description: Payment rail.
              example: FPS
            identifier:
              type: object
              description: Account to send the transfer to.
              properties:
                sortCode:
                  type: string
                  description: Sort code (6 digits).
                  example: 40509
                accountNumber:
                  type: string
                  description: Account number (8 digits).
                  example: '00126007'
            holder:
              type: object
              description: Account holder.
              properties:
                name:
                  type: string
                  description: Holder's name.
                  example: Lumx UK Ltd
        - type: object
          title: SPEI
          description: Payment's rail is SPEI.
          properties:
            rail:
              type: string
              enum:
                - SPEI
              description: Payment rail.
              example: SPEI
            identifier:
              type: object
              description: Account to send the transfer to.
              properties:
                clabe:
                  type: string
                  description: CLABE (18 digits).
                  example: '646180157000000004'
            holder:
              type: object
              description: Account holder.
              properties:
                name:
                  type: string
                  description: Holder's name.
                  example: Lumx Mexico SA de CV
            bank:
              type: object
              description: Receiving bank.
              properties:
                name:
                  type: string
                  description: Bank's name.
                  example: STP
            memo:
              type: string
              description: Payment reference to include in the transfer.
              example: 4C80019D
    TransactionOnRampReceipt:
      description: >-
        On-ramp's receipt. Present when `status` is `SUCCESS` (settlement
        details) or when the transaction failed (error). Omitted otherwise.
      oneOf:
        - type: object
          title: Success
          description: Returned when `status` is `SUCCESS`.
          properties:
            sourceCurrency:
              type: string
              description: Receipt's source currency.
              example: BRL
            sourceAmount:
              type: string
              description: Receipt's source amount. 2 decimal places.
              example: '1000.00'
            targetCurrency:
              type: string
              description: Receipt's target currency.
              example: USDC
            baseExchangeRate:
              type: string
              description: >-
                Receipt's base exchange rate before fees, in target currency
                units per source currency unit.
              example: '0.181900'
            baseTargetAmount:
              type: string
              description: Receipt's target amount before fees.
              example: '181.900000'
            fees:
              $ref: '#/components/schemas/TransactionFees'
            finalTargetAmount:
              type: string
              description: Receipt's target amount after fees. 6 decimal places.
              example: '178.626700'
            finalExchangeRate:
              type: string
              description: Receipt's effective exchange rate after fees.
              example: '0.178627'
            transactionHash:
              type: string
              description: Receipt's on-chain transaction hash.
              example: >-
                0x5f1c3a9e2b7d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a
            blockExplorerUrl:
              type: string
              format: uri
              description: Receipt's block explorer URL for `transactionHash`.
              example: >-
                https://amoy.polygonscan.com/tx/0x5f1c3a9e2b7d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a
        - $ref: '#/components/schemas/TransactionErrorReceipt'
    TransactionOffRampReceipt:
      description: >-
        Off-ramp's receipt. Present when `status` is `SUCCESS` (settlement
        details) or when the transaction failed (error). Omitted otherwise.
      oneOf:
        - type: object
          title: Success
          description: Returned when `status` is `SUCCESS`.
          properties:
            sourceCurrency:
              type: string
              description: Receipt's source currency.
              example: USDC
            sourceAmount:
              type: string
              description: >-
                Receipt's source amount. 6 decimal places. The stablecoin amount
                actually converted; it can be lower than `request.sourceAmount`,
                for example when a partner fee is deducted before conversion.
              example: '99.200000'
            targetCurrency:
              type: string
              description: Receipt's target currency.
              example: BRL
            baseExchangeRate:
              type: string
              description: >-
                Receipt's base exchange rate before fees, in target currency
                units per source currency unit.
              example: '5.494900'
            baseTargetAmount:
              type: string
              description: Receipt's target amount before fees.
              example: '549.49'
            fees:
              $ref: '#/components/schemas/TransactionFees'
            finalTargetAmount:
              type: string
              description: Receipt's target amount after fees. 2 decimal places.
              example: '538.50'
            finalExchangeRate:
              type: string
              description: Receipt's effective exchange rate after fees.
              example: '5.385002'
            transactionHash:
              type: string
              description: Receipt's on-chain transaction hash.
              example: >-
                0x5f1c3a9e2b7d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a
            blockExplorerUrl:
              type: string
              format: uri
              description: Receipt's block explorer URL for `transactionHash`.
              example: >-
                https://amoy.polygonscan.com/tx/0x5f1c3a9e2b7d4f6a8c0e1b3d5f7a9c2e4b6d8f0a1c3e5b7d9f2a4c6e8b0d1f3a
            reference:
              type: string
              description: Receipt's payout reference from the payment provider.
              example: E18236120202611031752a1b2c3d4e5f
        - $ref: '#/components/schemas/TransactionErrorReceipt'
    TransactionFees:
      type: object
      description: Fees charged on the operation.
      properties:
        lumx:
          type: object
          description: Lumx fee.
          properties:
            rate:
              type: string
              description: >-
                Lumx fee rate in basis points. For locked rates, includes the
                surcharge for the chosen `timelock`.
              example: '20'
            flatAmount:
              type: string
              description: Lumx fee flat amount, in the stablecoin.
              example: '1.000000'
            totalAmount:
              type: string
              description: >-
                Lumx fee total amount (rate applied to the stablecoin amount
                plus the flat amount).
              example: '1.363800'
            currency:
              type: string
              enum:
                - USDC
                - USDT
              description: Lumx fee currency. Always the stablecoin of the operation.
              example: USDC
        partner:
          type: object
          description: Partner fee. Present only when a partner fee applies.
          properties:
            id:
              type: string
              format: uuid
              description: Partner fee's unique identifier.
              example: 64cd84f0-a99d-422b-82e8-89d3595251b9
            rate:
              type: string
              description: Partner fee rate in basis points.
              example: '50'
            flatAmount:
              type: string
              description: Partner fee flat amount, in the stablecoin.
              example: '1.000000'
            totalAmount:
              type: string
              description: >-
                Partner fee total amount (rate applied to the stablecoin amount
                plus the flat amount).
              example: '1.909500'
            currency:
              type: string
              enum:
                - USDC
                - USDT
              description: Partner fee currency. Always the stablecoin of the operation.
              example: USDC
    TransactionErrorReceipt:
      type: object
      title: Error
      description: Returned when the transaction failed.
      properties:
        error:
          type: object
          description: Error details.
          properties:
            message:
              type: string
              description: Error's message.
              example: Your transaction has failed. Please contact support.
  examples:
    TransactionOnRampAwaitingFundsExample:
      value:
        id: 3b62170b-e82c-4373-a1c1-c08d45ca619d
        customerId: a97f1a81-6f56-43a9-899a-5863322dfba9
        type: ON_RAMP
        request:
          sourceCurrency: EUR
          targetCurrency: USDC
          sourceAmount: '1000.00'
          rail: SEPA
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: AWAITING_FUNDS
          payment:
            rail: SEPA
            identifier:
              iban: DE89370400440532013000
              bic: HBUKGB4BXXX
            holder:
              name: Harry Potter
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T18:32:08.466Z'
        updatedAt: '2026-11-03T18:32:08.466Z'
    TransactionOnRampTransferringFiatExample:
      value:
        id: 3b62170b-e82c-4373-a1c1-c08d45ca619d
        customerId: a97f1a81-6f56-43a9-899a-5863322dfba9
        type: ON_RAMP
        request:
          sourceCurrency: EUR
          targetCurrency: USDC
          sourceAmount: '1000.00'
          rail: SEPA
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: TRANSFERRING_FIAT
          payment:
            rail: SEPA
            identifier:
              iban: DE89370400440532013000
              bic: HBUKGB4BXXX
            holder:
              name: Harry Potter
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T18:32:08.466Z'
        updatedAt: '2026-11-03T18:32:11.935Z'
    TransactionOnRampTradingExample:
      value:
        id: 3b62170b-e82c-4373-a1c1-c08d45ca619d
        customerId: a97f1a81-6f56-43a9-899a-5863322dfba9
        type: ON_RAMP
        request:
          sourceCurrency: EUR
          targetCurrency: USDC
          sourceAmount: '1000.00'
          rail: SEPA
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: TRADING
          payment:
            rail: SEPA
            identifier:
              iban: DE89370400440532013000
              bic: HBUKGB4BXXX
            holder:
              name: Harry Potter
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T18:32:08.466Z'
        updatedAt: '2026-11-03T18:32:15.829Z'
    TransactionOnRampTransferringStablecoinExample:
      value:
        id: 3b62170b-e82c-4373-a1c1-c08d45ca619d
        customerId: a97f1a81-6f56-43a9-899a-5863322dfba9
        type: ON_RAMP
        request:
          sourceCurrency: EUR
          targetCurrency: USDC
          sourceAmount: '1000.00'
          rail: SEPA
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: TRANSFERRING_STABLECOIN
          payment:
            rail: SEPA
            identifier:
              iban: DE89370400440532013000
              bic: HBUKGB4BXXX
            holder:
              name: Harry Potter
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T18:32:08.466Z'
        updatedAt: '2026-11-03T18:32:18.875Z'
    TransactionOnRampSuccessExample:
      value:
        id: 7bc4f181-40cb-474a-bb2c-4e6cf5df3df6
        customerId: a97f1a81-6f56-43a9-899a-5863322dfba9
        type: ON_RAMP
        request:
          sourceCurrency: EUR
          targetCurrency: USDC
          sourceAmount: '1000.00'
          targetAmount: '1116.410700'
          rail: SEPA
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: SUCCESS
          payment:
            rail: SEPA
            identifier:
              iban: DE89370400440532013000
              bic: HBUKGB4BXXX
            holder:
              name: Harry Potter
          receipt:
            sourceCurrency: EUR
            sourceAmount: '1000.00'
            targetCurrency: USDC
            baseExchangeRate: '1.119650'
            baseTargetAmount: '1119.650000'
            fees:
              lumx:
                rate: '20'
                flatAmount: '1.000000'
                totalAmount: '3.239300'
                currency: USDC
            finalTargetAmount: '1116.410700'
            finalExchangeRate: '1.116411'
            transactionHash: '0x08a07bac0b993e21d9357d1eb23da6e912fb2cfaf06322f1be93ae78f5198ff6'
            blockExplorerUrl: >-
              https://amoy.polygonscan.com/tx/0x08a07bac0b993e21d9357d1eb23da6e912fb2cfaf06322f1be93ae78f5198ff6
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T18:30:20.132Z'
        updatedAt: '2026-11-03T18:31:21.395Z'
    TransactionOnRampSuccessPixExample:
      value:
        id: 842158bd-0669-4bc2-a15d-7157da4885df
        customerId: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type: ON_RAMP
        request:
          sourceCurrency: BRL
          targetCurrency: USDC
          sourceAmount: '1000.00'
          targetAmount: '179.023900'
          rail: PIX
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: SUCCESS
          payment:
            rail: PIX
            brCode: >-
              00020126580014br.gov.bcb.pix01367b03c0fc-2458-4490-940e-b00351493ce75204000053039865802BR5913Mock
              Payment6008Sao Paulo62070503***6304
          receipt:
            sourceCurrency: BRL
            sourceAmount: '1000.00'
            targetCurrency: USDC
            baseExchangeRate: '0.182300'
            baseTargetAmount: '182.300000'
            fees:
              lumx:
                rate: '20'
                flatAmount: '1.000000'
                totalAmount: '1.364600'
                currency: USDC
              partner:
                id: 64cd84f0-a99d-422b-82e8-89d3595251b9
                rate: '50'
                flatAmount: '1.000000'
                totalAmount: '1.911500'
                currency: USDC
            finalTargetAmount: '179.023900'
            finalExchangeRate: '0.179024'
            transactionHash: '0x0e9ae9172206b9c5182a231e7f9225788edcaa7cdd9bb871b3a762d31e5f48f1'
            blockExplorerUrl: >-
              https://amoy.polygonscan.com/tx/0x0e9ae9172206b9c5182a231e7f9225788edcaa7cdd9bb871b3a762d31e5f48f1
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T19:29:52.160Z'
        updatedAt: '2026-11-03T19:30:41.153Z'
    TransactionOnRampFailedExample:
      value:
        id: 3960c216-e281-4b40-b5ea-98c1dbfb819a
        customerId: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type: ON_RAMP
        request:
          sourceCurrency: BRL
          targetCurrency: USDC
          sourceAmount: '1000.00'
          rail: PIX
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: FAILED
          payment:
            rail: PIX
            brCode: >-
              00020101021226900014br.gov.bcb.pix2568qrcode.bpy.com.br/pix/v2/cobv/3960c216e2814b40b5ea98c1dbfb819a5204000053039865802BR5909Lumx
              Ltda6014Rio de Janeiro62070503***6304A1B2
          receipt:
            error:
              message: Your transaction has failed. Please contact support.
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T17:40:39.774Z'
        updatedAt: '2026-11-03T17:52:18.405Z'
    TransactionOnRampExpiredExample:
      value:
        id: 0e8b38a6-b52f-4c44-ac2c-4d60d46e0f6f
        customerId: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type: ON_RAMP
        request:
          sourceCurrency: BRL
          targetCurrency: USDC
          sourceAmount: '1000.00'
          targetAmount: '178.462990'
          rail: PIX
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: EXPIRED
          payment:
            rail: PIX
            brCode: >-
              00020101021226900014br.gov.bcb.pix2568qrcode.bpy.com.br/pix/v2/cobv/3960c216e2814b40b5ea98c1dbfb819a5204000053039865802BR5909Lumx
              Ltda6014Rio de Janeiro62070503***6304A1B2
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T17:40:39.774Z'
        updatedAt: '2026-11-03T17:52:18.405Z'
    TransactionOffRampTransferringStablecoinExample:
      value:
        id: fc7fe47b-e57a-4bd4-83a6-423ce2873936
        customerId: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type: OFF_RAMP
        request:
          sourceCurrency: USDC
          targetCurrency: BRL
          sourceAmount: '100.000000'
          bankAccountId: 8be529c1-1f8c-4977-9bca-6a62c47e75b9
          rail: PIX
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
          memo: INV-2026-11-0001
        state:
          status: TRANSFERRING_STABLECOIN
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T19:31:41.578Z'
        updatedAt: '2026-11-03T19:31:41.578Z'
    TransactionOffRampTradingExample:
      value:
        id: 171726cd-83f2-4b51-807f-463b17491064
        customerId: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type: OFF_RAMP
        request:
          sourceCurrency: USDC
          targetCurrency: BRL
          sourceAmount: '100.000000'
          bankAccountId: 8be529c1-1f8c-4977-9bca-6a62c47e75b9
          rail: PIX
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
          memo: INV-2026-11-0001
        state:
          status: TRADING
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T17:40:39.774Z'
        updatedAt: '2026-11-03T17:44:20.508Z'
    TransactionOffRampTransferringFiatExample:
      value:
        id: e9dad8ff-bbaa-49f2-8b8a-75aaf487a4a0
        customerId: 78927360-47b6-404d-828f-26fa245c4887
        type: OFF_RAMP
        request:
          sourceCurrency: USDC
          targetCurrency: USD
          sourceAmount: '100.000000'
          bankAccountId: d92e1547-3ec0-4540-840e-7cde6f4b166a
          rail: ACH
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
          memo: INV-2026-11-0003
        state:
          status: TRANSFERRING_FIAT
        metadata:
          orderId: ord_792
        createdAt: '2026-11-03T19:51:17.067Z'
        updatedAt: '2026-11-03T19:57:58.598Z'
    TransactionOffRampSuccessExample:
      value:
        id: e9dad8ff-bbaa-49f2-8b8a-75aaf487a4a0
        customerId: 78927360-47b6-404d-828f-26fa245c4887
        type: OFF_RAMP
        request:
          sourceCurrency: USDC
          targetCurrency: USD
          sourceAmount: '100.000000'
          targetAmount: '64.10'
          bankAccountId: d92e1547-3ec0-4540-840e-7cde6f4b166a
          rail: ACH
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
          memo: INV-2026-11-0003
        state:
          status: SUCCESS
          receipt:
            sourceCurrency: USDC
            sourceAmount: '99.200000'
            targetCurrency: USD
            baseExchangeRate: '1.000000'
            baseTargetAmount: '99.20'
            fees:
              lumx:
                rate: '10'
                flatAmount: '35.000000'
                totalAmount: '35.099200'
                currency: USDC
              partner:
                id: 50cb218f-bb84-4fb1-803b-99d110bb13a0
                rate: '30'
                flatAmount: '0.500000'
                totalAmount: '0.800000'
                currency: USDC
            finalTargetAmount: '64.10'
            finalExchangeRate: '0.646177'
            transactionHash: '0x22b75a078a9e4fbe3d7be54a25f445ac9b15ea92d9c19fe6159867f35a4e8759'
            blockExplorerUrl: >-
              https://amoy.polygonscan.com/tx/0x22b75a078a9e4fbe3d7be54a25f445ac9b15ea92d9c19fe6159867f35a4e8759
        metadata:
          orderId: ord_792
        createdAt: '2026-11-03T19:51:17.067Z'
        updatedAt: '2026-11-03T19:58:25.508Z'
    TransactionOffRampSuccessLockedExample:
      value:
        id: 983506f1-c037-4b83-bd11-6d1a917657c0
        customerId: 78927360-47b6-404d-828f-26fa245c4887
        type: OFF_RAMP
        request:
          sourceCurrency: USDC
          targetCurrency: GBP
          sourceAmount: '100.000000'
          targetAmount: '73.56'
          bankAccountId: 8342b406-34c7-461a-ac36-97ef3b90b5ec
          rail: FPS
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
        state:
          status: SUCCESS
          receipt:
            sourceCurrency: USDC
            sourceAmount: '100.000000'
            targetCurrency: GBP
            baseExchangeRate: '0.745400'
            baseTargetAmount: '74.53'
            fees:
              lumx:
                rate: '29'
                flatAmount: '1.000000'
                totalAmount: '1.289961'
                currency: USDC
            finalTargetAmount: '73.56'
            finalExchangeRate: '0.735686'
            transactionHash: '0x9fa43a9c401e1f1457fa99203bf02f09731ba1804caaee3fcc5aadcf8d8d4ed7'
            blockExplorerUrl: >-
              https://amoy.polygonscan.com/tx/0x9fa43a9c401e1f1457fa99203bf02f09731ba1804caaee3fcc5aadcf8d8d4ed7
        metadata:
          orderId: ord_793
        createdAt: '2026-11-03T19:51:20.793Z'
        updatedAt: '2026-11-03T19:58:20.114Z'
    TransactionOffRampFailedExample:
      value:
        id: 171726cd-83f2-4b51-807f-463b17491064
        customerId: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type: OFF_RAMP
        request:
          sourceCurrency: USDC
          targetCurrency: BRL
          sourceAmount: '100.000000'
          bankAccountId: 8be529c1-1f8c-4977-9bca-6a62c47e75b9
          rail: PIX
          purpose: PERSONAL_ACCOUNT
          blockchain: POLYGON
          memo: INV-2026-11-0001
        state:
          status: FAILED
          receipt:
            error:
              message: Your transaction has failed. Please contact support.
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T17:40:39.774Z'
        updatedAt: '2026-11-03T17:52:18.405Z'
    TransactionTransferProcessingExample:
      value:
        id: 0ec7e578-9b8d-4b42-b799-8e4f45f6c367
        customerId: 992f6325-fdd9-410d-803c-2ec0f30e1d74
        type: TRANSFER
        request:
          currency: USDC
          from: 992f6325-fdd9-410d-803c-2ec0f30e1d74
          to: 31d79c2a-6a4d-4240-b3fd-5e6ccb68527d
          amount: '50.00'
          blockchain: POLYGON
        state:
          status: TRANSFERRING_STABLECOIN
        metadata:
          orderId: ord_791
        createdAt: '2026-11-03T19:31:56.421Z'
        updatedAt: '2026-11-03T19:31:56.421Z'
    TransactionTransferSuccessExample:
      value:
        id: 454390c8-6d59-43d1-8ecb-3de95fe252fa
        customerId: 78927360-47b6-404d-828f-26fa245c4887
        type: TRANSFER
        request:
          currency: USDC
          from: 78927360-47b6-404d-828f-26fa245c4887
          to: '0x76b74209f3542d172ca1575b5b18064594360299'
          amount: '25.00'
          blockchain: POLYGON
        state:
          status: SUCCESS
          receipt:
            transactionHash: '0x75aa9e656ecd91e14c684518288163a8e8bf52e914e9e75474e9e2c8ecdaafe2'
            blockExplorerUrl: >-
              https://amoy.polygonscan.com/tx/0x75aa9e656ecd91e14c684518288163a8e8bf52e914e9e75474e9e2c8ecdaafe2
        metadata: {}
        createdAt: '2026-11-03T19:51:23.377Z'
        updatedAt: '2026-11-03T19:57:33.039Z'
    TransactionTransferFailedExample:
      value:
        id: bb9680d8-a42b-43a7-b26a-3c06aaa23e1e
        customerId: 31d79c2a-6a4d-4240-b3fd-5e6ccb68527d
        type: TRANSFER
        request:
          currency: USDC
          from: 31d79c2a-6a4d-4240-b3fd-5e6ccb68527d
          to: 992f6325-fdd9-410d-803c-2ec0f30e1d74
          amount: '100.00'
          blockchain: POLYGON
        state:
          status: FAILED
        metadata:
          orderId: ord_789
        createdAt: '2026-11-03T17:40:39.774Z'
        updatedAt: '2026-11-03T17:52:18.405Z'
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: Bearer authentication header on the format `Bearer <API_KEY>`.

````

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