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

# List bank payout orders

> Lists the bank payout orders of a Safe, newest first. A rule with an `off_ramp`
action makes an order when it fires.

- Who may call: anyone, about any Safe. For this reason a row holds no payee name,
  no memo, no rule name and no full IBAN.
- Before: nothing.
- Guarantee: `status` shows how far Anafi got with the order at Monerium.
  `providerState` is the order state that Monerium reports.

Served only on `polygon-amoy`.




## OpenAPI

````yaml /api/openapi.yaml get /api/wallets/{aa}/off-ramp/orders
openapi: 3.1.0
info:
  title: Anafi API
  version: 0.3.0
  summary: The public HTTP API of one Anafi network.
  description: >
    The Anafi API is the HTTP surface of one Anafi network. Each network has its
    own host.

    The public TypeScript SDK `@anafi-cc/anafi-sdk` calls these routes for you,
    and it also

    builds and checks the signed and sealed payloads. You can call the routes
    directly.


    - No API key is necessary today.

    - Request and response bodies are JSON, except where an operation says
    otherwise.

    - A route that carries a confidential payload takes an HPKE-sealed envelope.
    Read
      [Sealed requests](/api-reference/sealed-requests) before you call it without the SDK.
    - Read [Introduction](/api-reference/introduction) for formats and
      [Errors](/api-reference/errors) for the error bodies.

    Browser origin: the API hosts answer CORS only for `https://app.ana.fi`
    today. A browser

    page on another origin cannot call the API directly. A server, a script, or
    your own

    same-origin proxy can call it.
servers:
  - url: https://api.polygon.ana.fi
    description: Polygon PoS (chain id 137)
  - url: https://api.xlayer.ana.fi
    description: X Layer (chain id 196)
  - url: https://api.polygon-amoy.ana.fi
    description: Polygon Amoy testnet (chain id 80002)
security: []
tags:
  - name: Accounts
    description: >-
      Find the accounts of an owner address, and deploy the 1-of-1 Safe of an
      owner.
  - name: Safe relay
    description: Submit an owner-signed Safe transaction. Anafi pays the gas.
  - name: Rules
    description: >-
      Stage a sealed rule document. The engine returns the attestation for the
      on-chain commit.
  - name: Confidential channel
    description: >-
      Read back the rule document and the account state of an account through a
      sealed channel.
  - name: Notification email
    description: Verify the email address that rule notifications go to.
  - name: Activity
    description: Read the payments that the engine made for an account.
  - name: Fees
    description: Read the fee terms of the network and the sponsorship of an account.
  - name: Payments
    description: Ask for the email receipt of a payment made on the pay page.
  - name: Rule language
    description: >-
      Read the rule language reference, and write a rule document from a
      description.
  - name: Bank payouts
    description: >
      Connect a Safe to Monerium for bank payouts in euro, and read the state of
      the

      connection and of the orders. These routes are served only on
      `polygon-amoy`

      (Monerium sandbox). The `polygon` and `xlayer` hosts answer `404`.
  - name: Status
    description: Check that the Anafi API answers.
paths:
  /api/wallets/{aa}/off-ramp/orders:
    get:
      tags:
        - Bank payouts
      summary: List bank payout orders
      description: >
        Lists the bank payout orders of a Safe, newest first. A rule with an
        `off_ramp`

        action makes an order when it fires.


        - Who may call: anyone, about any Safe. For this reason a row holds no
        payee name,
          no memo, no rule name and no full IBAN.
        - Before: nothing.

        - Guarantee: `status` shows how far Anafi got with the order at
        Monerium.
          `providerState` is the order state that Monerium reports.

        Served only on `polygon-amoy`.
      operationId: listOffRampOrders
      parameters:
        - $ref: '#/components/parameters/AccountPath'
      responses:
        '200':
          description: The orders, newest first. An empty array when there are none.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OffRampOrderSummary'
              example:
                - seq: 42
                  orderId: 3f6c2a91-7d4e-8b10-9c5a-2e7f4d1b0a63
                  status: placed
                  amount: '120.00'
                  currency: EUR
                  maskedIban: DE…3000
                  providerOrderId: b5f0c2e4-1a2b-4c3d-8e9f-0a1b2c3d4e5f
                  providerState: processed
                  lastError: null
                  firedAt: 1796300000
                  signedAt: 1796300004
                  updatedAt: 1796300400
        '400':
          $ref: '#/components/responses/InvalidPathAddress'
        '500':
          description: The Anafi API could not read its records.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MoneriumErrorResponse'
              example:
                error: storage error
      servers:
        - url: https://api.polygon-amoy.ana.fi
          description: Polygon Amoy testnet (Monerium sandbox)
components:
  parameters:
    AccountPath:
      name: aa
      in: path
      required: true
      description: >-
        The account address (a Safe or a plain address), as `0x` and 40 hex
        digits in any letter case.
      schema:
        $ref: '#/components/schemas/Address'
      example: '0xf9836de53d455019ed985896fce8af80be66b7f9'
  schemas:
    OffRampOrderSummary:
      type: object
      required:
        - seq
        - orderId
        - status
        - amount
        - currency
        - maskedIban
        - providerOrderId
        - providerState
        - lastError
        - firedAt
        - signedAt
        - updatedAt
      properties:
        seq:
          type: integer
          description: A sequence number of the order. Larger is newer.
        orderId:
          type: string
          description: >-
            The identifier of the order, as a UUID (version 8). It is the same
            each time the engine produces this order.
        status:
          $ref: '#/components/schemas/OffRampOrderStatus'
        amount:
          type: string
          description: The decimal amount, as text, from the signed order.
          examples:
            - '120.00'
        currency:
          type: string
          description: The ISO 4217 currency code from the signed order.
          examples:
            - EUR
        maskedIban:
          type: string
          description: >-
            The IBAN of the payee, with all except the country code and the last
            4 characters hidden.
        providerOrderId:
          type:
            - string
            - 'null'
          description: The order identifier at Monerium, after Monerium took the order.
        providerState:
          type:
            - string
            - 'null'
          description: The order state that Monerium reports.
        lastError:
          type:
            - string
            - 'null'
          description: Why the order failed or was refused, with the IBAN masked.
        firedAt:
          $ref: '#/components/schemas/UnixSeconds'
          description: When the rule fired.
        signedAt:
          $ref: '#/components/schemas/UnixSeconds'
          description: When the engine signed the order.
        updatedAt:
          $ref: '#/components/schemas/UnixSeconds'
          description: When the status or the Monerium state last changed.
    MoneriumErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A sentence that says why the route refused.
    Address:
      type: string
      pattern: ^0x[0-9a-fA-F]{40}$
      description: >-
        A 20-byte address as `0x` and 40 hex digits. Requests accept any letter
        case. Responses use lowercase.
      examples:
        - '0xf9836de53d455019ed985896fce8af80be66b7f9'
    OffRampOrderStatus:
      type: string
      oneOf:
        - const: pending
          description: Anafi has the order and will place it at Monerium.
        - const: placing
          description: Anafi sent the order to Monerium and waits for the answer.
        - const: placed
          description: Monerium accepted the order. Follow `providerState`.
        - const: failed
          description: >-
            Monerium refused the order, or it could not be placed. Final. Read
            `lastError`.
        - const: expired
          description: The order was too old to place. Final.
    UnixSeconds:
      type: integer
      description: Seconds since 1970-01-01T00:00:00Z.
      examples:
        - 1796305002
    PlainTextError:
      type: string
      description: >-
        A short English sentence. Show it or log it. Do not parse it; branch on
        the status code.
  responses:
    InvalidPathAddress:
      description: The `aa` path segment is not an address.
      content:
        text/plain:
          schema:
            $ref: '#/components/schemas/PlainTextError'
          example: 'Invalid URL: invalid string length'

````

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