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

# Transaction history

> Retrieves the paginated transaction history of the authenticated business.



## OpenAPI

````yaml /openapi-v2.en.yaml get /v2/transactions/history
openapi: 3.0.0
info:
  title: YP API Partner
  description: Integration documentation for YP API partners.
  version: v2
  contact: {}
servers:
  - url: https://sandbox-rampa.mesadepagos.com/api
    description: Sandbox
security: []
tags:
  - name: Auth
    description: ''
  - name: Quotes
    description: ''
  - name: Payin
    description: ''
  - name: Payout
    description: ''
  - name: Wallet
    description: ''
  - name: Queries
    description: ''
  - name: Webhooks
    description: ''
  - name: Fees
    description: ''
  - name: Clients
    description: ''
paths:
  /v2/transactions/history:
    get:
      tags:
        - Queries
      summary: Transaction history
      description: >-
        Retrieves the paginated transaction history of the authenticated
        business.
      operationId: getTransactionHistoryV2
      parameters:
        - name: type
          required: false
          in: query
          description: Filters by transaction type.
          schema:
            enum:
              - deposit_express
              - deposit_cash
              - withdrawal_express
              - withdrawal_ach
              - withdrawal_pix
              - deposit_crypto
              - withdrawal_crypto
              - prefunding
              - deposit_card
              - withdrawal_ach_us
              - withdrawal_wire
              - withdrawal_swift
              - withdrawal_sepa
            type: string
        - name: transactionStatus
          required: false
          in: query
          description: Filters by transaction status.
          schema:
            enum:
              - pending_transaction
              - processing_transaction
              - completed_transaction
              - reject_transaction
              - expired_transaction
              - cancelled_transaction
              - failed_transaction
              - received_transaction
            type: string
        - name: page
          required: false
          in: query
          description: 'Requested page. Default: 1.'
          schema:
            type: number
            example: 1
        - name: limit
          required: false
          in: query
          description: 'Number of records per page. Default: 10.'
          schema:
            type: number
            example: 10
        - name: fromDate
          required: false
          in: query
          description: Filter start date.
          schema:
            example: '2026-05-01T00:00:00.000Z'
            type: string
        - name: toDate
          required: false
          in: query
          description: Filter end date.
          schema:
            example: '2026-05-12T00:00:00.000Z'
            type: string
        - name: search
          required: false
          in: query
          description: Search text for a reference or other supported fields.
          schema:
            example: ORDER-1001
            type: string
      responses:
        '200':
          description: Paginated history.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionHistoryResponseDoc'
        '400':
          description: Invalid query parameters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDoc'
        '401':
          description: Missing, invalid, or expired token.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponseDoc'
      security:
        - bearer: []
components:
  schemas:
    TransactionHistoryResponseDoc:
      type: object
      properties:
        transactions:
          description: Transactions found.
          type: array
          items:
            $ref: '#/components/schemas/TransactionHistoryItemDoc'
        pagination:
          description: Pagination data.
          allOf:
            - $ref: '#/components/schemas/PaginationDoc'
      required:
        - transactions
        - pagination
    ValidationErrorResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 400
        message:
          type: string
          example: Validation failed
        error:
          type: string
          example: Bad Request
      required:
        - statusCode
        - message
        - error
    UnauthorizedResponseDoc:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        message:
          type: string
          example: Unauthorized
      required:
        - statusCode
        - message
    TransactionHistoryItemDoc:
      type: object
      properties:
        amountFiat:
          type: number
          example: 69.6
          description: Transaction fiat amount.
        amountCrypto:
          type: number
          example: 10
          description: Transaction crypto amount.
        assetCode:
          type: string
          example: USDC
          description: Crypto asset code.
        fiatCode:
          type: string
          example: BOB
          description: Fiat currency code.
        exchangeRate:
          type: number
          example: 6.96
          description: Applied exchange rate.
        transactionId:
          type: string
          example: 550e8400-e29b-41d4-a716-446655440000
          description: Unique transaction identifier.
        type:
          type: string
          enum:
            - deposit_express
            - deposit_cash
            - withdrawal_express
            - withdrawal_ach
            - withdrawal_pix
            - deposit_crypto
            - withdrawal_crypto
            - prefunding
            - deposit_card
            - withdrawal_ach_us
            - withdrawal_wire
            - withdrawal_swift
            - withdrawal_sepa
          example: deposit_express
          description: Transaction type.
        status:
          type: string
          enum:
            - pending_transaction
            - processing_transaction
            - completed_transaction
            - reject_transaction
            - expired_transaction
            - cancelled_transaction
            - failed_transaction
            - received_transaction
          example: completed_transaction
          description: Transaction status.
        createdAt:
          type: string
          example: '2026-05-12T12:00:00.000Z'
          description: Creation date.
        updatedAt:
          type: string
          example: '2026-05-12T12:00:00.000Z'
          description: Last update date.
        externalReference:
          type: string
          example: ORDER-1001
          description: External reference sent by the partner.
      required:
        - amountFiat
        - amountCrypto
        - assetCode
        - fiatCode
        - exchangeRate
        - transactionId
        - type
        - status
        - createdAt
        - updatedAt
        - externalReference
    PaginationDoc:
      type: object
      properties:
        page:
          type: number
          example: 1
        limit:
          type: number
          example: 10
        total:
          type: number
          example: 25
        totalPages:
          type: number
          example: 3
      required:
        - page
        - limit
        - total
        - totalPages
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: JWT obtained from /v2/auth/login

````