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

# List merchant orders

> Get a list of all orders for the authenticated merchant



## OpenAPI

````yaml get /api/v1/account/orders
openapi: 3.0.0
info:
  contact:
    email: support@tropipay.com
    name: Tropipay Support
    url: https://help.tropipay.com/contacto/
  description: Banking as a service API.
  title: RALIO API
  version: '1.0'
servers:
  - url: https://sandbox-revo-api.raliopay.com
security: []
paths:
  /api/v1/account/orders:
    get:
      tags:
        - orders
      summary: List merchant orders
      description: Get a list of all orders for the authenticated merchant
      parameters:
        - description: 'Page number (default: 1)'
          in: query
          name: page
          schema:
            type: integer
        - description: 'Page size (default: 30, max: 100)'
          in: query
          name: pageSize
          schema:
            type: integer
        - description: >-
            Sort fields (prefix with - for desc): createdAt. Example:
            sort=createdAt
          in: query
          name: sort
          schema:
            type: string
        - description: >-
            Multiple filters can be applied with field_operator=value format.
            Fields:
            state,type,id,originCurrency,destinationCurrency,createdAt,amount.
            Operators: eq (equals), neq (not equals), gt (greater than), lt
            (less than), gte (greater or equal), lte (less or equal), like
            (contains), in (in list), nin (not in list). Examples:
            state_in=FAILED,SETTLED&createdAt_gte=2024-01-01&createdAt_lte=2024-12-31&amount_gte=1000&amount_lte=50000
          in: query
          name: filter
          schema:
            type: string
        - description: 'Search by id (UUID) or reference (text). Example: search=PAY-2025'
          in: query
          name: search
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.ListPaginatedOrdersResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/httperror.ErrResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    dto.ListPaginatedOrdersResponse:
      properties:
        orders:
          items:
            $ref: '#/components/schemas/dto.OrderResponse'
          type: array
        pagination:
          $ref: '#/components/schemas/httpdto.PaginationResponse'
      type: object
    httperror.ErrResponse:
      properties:
        error:
          $ref: '#/components/schemas/httperror.ErrorData'
      type: object
    dto.OrderResponse:
      properties:
        canceledAt:
          example: '2025-01-15T10:35:00Z'
          type: string
        counterparty:
          description: >-
            Counterparty is the party on the other side of the order, resolved
            per

            operation type: sender/cardholder for incomes, recipient/destination
            for

            expenses. May be empty when not available.
          example: John Doe
          type: string
        createdAt:
          example: '2025-01-15T10:30:00Z'
          type: string
        destination:
          $ref: '#/components/schemas/domain.Money'
        detailUrl:
          example: /api/v1/account/orders/e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b
          type: string
        displayType:
          example: Transaction Type
          type: string
        failedAt:
          example: '2025-01-15T10:35:00Z'
          type: string
        fee:
          $ref: '#/components/schemas/domain.Money'
        fx:
          $ref: '#/components/schemas/dto.FXResponse'
        id:
          example: e5f6a7b8-c9d0-4e1f-2a3b-4c5d6e7f8a9b
          type: string
        origin:
          $ref: '#/components/schemas/domain.Money'
        reference:
          example: PAY-2025-001234
          type: string
        reversedAt:
          example: '2025-01-15T10:35:00Z'
          type: string
        settledAt:
          example: '2025-01-15T10:35:00Z'
          type: string
        state:
          example: PENDING
          type: string
        type:
          example: TRANSACTION_TYPE
          type: string
        updatedAt:
          example: '2025-01-15T10:30:05Z'
          type: string
      type: object
    httpdto.PaginationResponse:
      properties:
        next:
          description: URL of the next page (null if no next page)
          type: string
        numPages:
          description: Total number of pages
          type: integer
        page:
          description: Current page number
          type: integer
        pageSize:
          description: Number of items per page
          type: integer
        previous:
          description: URL of the previous page (null if no previous page)
          type: string
        total:
          description: Total number of elements
          type: integer
      type: object
    httperror.ErrorData:
      properties:
        code:
          $ref: '#/components/schemas/httperror.ErrorCode'
        details:
          items:
            $ref: '#/components/schemas/httperror.ErrorDetails'
          type: array
        message:
          type: string
        type:
          $ref: '#/components/schemas/httperror.ErrorType'
      type: object
    domain.Money:
      properties:
        amount:
          description: 'Amount in cents. Ex: 12345 = 123.45€'
          example: 1000
          type: integer
        currency:
          description: USD, EUR, etc.
          enum:
            - EUR
            - USD
            - MXN
            - CAD
            - BRL
            - COP
            - PEN
            - BOB
            - CLP
            - ARS
            - UYU
            - PYG
            - CNY
            - HKD
            - MYR
            - USDT
            - USDC
            - EURC
            - BTC
            - ETH
          example: CURRENCY
          type: string
      required:
        - currency
      type: object
    dto.FXResponse:
      properties:
        pair:
          example: CURRENCY/CURRENCY
          type: string
        rate:
          example: 1.08
          type: number
        timestamp:
          example: '2025-01-15T10:30:00Z'
          type: string
      type: object
    httperror.ErrorCode:
      enum:
        - INVALID_REQUEST
        - UNAUTHORIZED
        - FORBIDDEN
        - NOT_FOUND
        - INTERNAL_SERVER_ERROR
        - UNKNOWN_ERROR
        - NOT_IMPLEMENTED
        - TOO_MANY_REQUESTS
        - QUOTE_EXPIRED
        - BAD_GATEWAY
      type: string
      x-enum-varnames:
        - InvalidRequestCode
        - UnauthorizedCode
        - ForbiddenCode
        - NotFoundCode
        - InternalServerCode
        - UnknownErrorCode
        - NotImplementedCode
        - TooManyRequestsCode
        - QuoteExpiredCode
        - BadGatewayCode
    httperror.ErrorDetails:
      properties:
        field:
          type: string
        message:
          type: string
      type: object
    httperror.ErrorType:
      enum:
        - VALIDATION_ERROR
        - CONFLICT_ERROR
        - UNPROCESSABLE_ERROR
        - AUTHENTICATION_ERROR
        - AUTHORIZATION_ERROR
        - NOT_FOUND_ERROR
        - INTERNAL_ERROR
        - NOT_IMPLEMENTED_ERROR
        - UNKNOWN_ERROR
        - RATE_LIMIT_ERROR
        - BAD_GATEWAY_ERROR
      type: string
      x-enum-varnames:
        - ValidationError
        - ConflictError
        - UnprocessableError
        - AuthenticationError
        - AuthorizationError
        - NotFoundError
        - InternalError
        - NotImplementedError
        - UnknownError
        - RateLimitError
        - BadGatewayError
  securitySchemes:
    ApiKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: API Key for accessing management endpoints
      x-mint-auth-type: bearer

````