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

# List operations (history)

> Lists transaction history for the given user ID.



## OpenAPI

````yaml /raas/swagger-partner.json get /user/operations/{userToken}
openapi: 3.0.0
info:
  title: ''
  version: 0.0.1
servers:
  - url: https://raas-partner-cv.nomas.cash/v1
security: []
paths:
  /user/operations/{userToken}:
    get:
      tags:
        - Operations
      summary: List operations (history)
      description: Lists transaction history for the given user ID.
      operationId: getOperations
      parameters:
        - description: User ID.
          in: path
          name: userToken
          required: true
          schema:
            type: string
        - description: |-
            Optional filter by destination phone.
            Example: `+19166020018`.
          in: query
          name: toPhoneNumber
          required: false
          schema:
            type: string
      responses:
        '200':
          description: >-
            **200 — OK.** Operation history list.


            **Scenarios for this response**:


            | Scenario | How to reproduce | Typical `code` / body |

            |------------|------------------|------------------------|

            | History | Valid `userToken` aligned with tenant. |
            `OperationDetail[]` |


            See also [Full scenario
            matrix](/raas/guides/testing-sandbox#get-operations-scenario-matrix).
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/OperationResponsePartner'
                type: array
              example:
                - id: b6bf4bcd-7751-426b-86c6-1b3d72ee5a02
                  type: request
                  createdAt: '2026-04-13T17:54:15.180Z'
                  updatedAt: '2026-04-13T17:54:16.022Z'
                  amount: 500
                  status: Sent
                  statusDetails: RequestSent
                  reason: Pago de servicio
                  code: Ze2i4o
                  recipientAmout: 500
                  senderAmount: 0
                  fromUser:
                    userId: 5bMwDyW4ZDVgu58HKzocpZcZ7fz1
                    firstName: Maria
                    lastName: Garcia
                    phoneNumber: '+5215521206706'
                    email: ''
                    country: MX
                  toUser:
                    phoneNumber: '+19163015400'
                    country: US
                  currency: MXN
                  recipientCurrency: MXN
                  senderCurrency: USD
                  exchangeRate: 1
                  destinationPaymentMethod:
                    type: DebitCard
                    country: MX
                    id: f9b8131f-404a-41e0-9312-927cf81f97fe
                    number: tok_sandbox_9PNgfqqpdpyQpnD1jYkdw1_1111
                    currency: MXN
                  attributionLink: https://links-dev.nomas.cash/EFUb8
                  isIgnored: false
                  tenantfee: 0
                  userId: 5bMwDyW4ZDVgu58HKzocpZcZ7fz1
                  cancelable: false
                  fromTo:
                    - 5bMwDyW4ZDVgu58HKzocpZcZ7fz1
                  platId: 22038600-846a-47fd-8733-3b0fa886d894
        '400':
          description: >-
            **400 — Bad request.**


            **Scenarios for this response**:


            | Scenario | How to reproduce | Typical `code` / body |

            |------------|------------------|------------------------|

            | Tenant mismatch | `userToken` user not in requesting tenant. |
            `ErrorResponse` from handler |


            See also [Full scenario
            matrix](/raas/guides/testing-sandbox#get-operations-scenario-matrix).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                reason: User tenant does not match request tenant.
        '401':
          description: >-
            **401 — Unauthorized.**


            **Scenarios for this response**:


            | Scenario | How to reproduce | Typical `code` / body |

            |------------|------------------|------------------------|

            | Missing / bad API key | Omit `api_key` or invalid key. | OpenAPI
            `401` via `@Response<ErrorResponse>`. |


            See also [Full scenario
            matrix](/raas/guides/testing-sandbox#get-operations-scenario-matrix).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                reason: Missing or invalid API key
        '500':
          description: >-
            **500 — Internal server error.**


            **Scenarios for this response**:


            | Scenario | How to reproduce | Typical `code` / body |

            |------------|------------------|------------------------|

            | List failure | Unexpected datastore errors. |
            `ERROR_INTERNAL_SERVER_ERROR` |


            See also [Full scenario
            matrix](/raas/guides/testing-sandbox#get-operations-scenario-matrix).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                reason: An unhandled error has occurred
      security:
        - api_key:
            - partner_full
            - partner_send
            - partner
components:
  schemas:
    OperationResponsePartner:
      properties:
        cancelable:
          type: boolean
          description: Indicates if the operation can be cancelled by the funder user.
        userId:
          type: string
          description: |-
            User ID

            ID of the user who performed the operation.
        ignoredData:
          $ref: '#/components/schemas/IgnoredOperationData'
          description: >-
            Data about the reason why the operation was ignored by the funder
            user.
        isIgnored:
          type: boolean
          description: Indicates if the operation was ignored by the funder user.
        attributionLink:
          type: string
          description: |-
            Attribution link

            Link to the operation.
        toUser:
          $ref: '#/components/schemas/PartnerOperationUserDetail'
          description: Recipient user information
        fromUser:
          $ref: '#/components/schemas/PartnerOperationUserDetail'
          description: Sender user information
        estimatedExchangeRate:
          type: number
          format: double
          description: |-

            Estimated exchange rate for the operation.
        destinationPaymentMethod:
          $ref: '#/components/schemas/PartnerPaymentMethodResponse'
          description: Destination payment method
        sourcePaymentMethod:
          $ref: '#/components/schemas/PartnerPaymentMethodResponse'
          description: Source payment method
        currency:
          type: string
          description: |-
            Currency code

            ISO 4217 format.
            Example: `USD` for United States Dollar, `MXN` for Mexican Peso.
        code:
          type: string
          description: |-
            User frendly operation code for support purposes

            Example: `ABC123`.
        reason:
          type: string
          description: |-
            Reason. Free text.

            Example: `Hi! I need money`.
        statusDetails:
          type: string
          description: Operation status details
        status:
          type: string
          description: >-
            Operation status


            Example: `Sent`, `Funding`, `Funded`, `Accepted`, `Rejected`,
            `ReadyForPickup`, `Completed`, `Failed`, `OnHold`, `InTransit`,
            `Cancelled`.
        amount:
          type: number
          format: double
        updatedAt:
          type: string
          format: date-time
        createdAt:
          type: string
          format: date-time
        correlationId:
          type: string
          description: |-
            Correlation ID

            Partner provided operation identifier.
      required:
        - code
        - status
        - amount
        - createdAt
      type: object
    ErrorResponse:
      properties:
        detail:
          type: string
        code:
          type: string
        reason:
          type: string
      required:
        - code
        - reason
      type: object
    IgnoredOperationData:
      properties:
        description:
          type: string
        date:
          type: string
          format: date-time
        notifySupport:
          type: boolean
        reason:
          $ref: '#/components/schemas/IgnoredOperationReason'
        responsibleUserId:
          type: string
      required:
        - date
        - notifySupport
        - reason
        - responsibleUserId
      type: object
    PartnerOperationUserDetail:
      properties:
        dob:
          type: string
          format: date-time
        country:
          type: string
        email:
          type: string
        phoneNumber:
          type: string
        lastName:
          type: string
        firstName:
          type: string
        userId:
          type: string
      type: object
    PartnerPaymentMethodResponse:
      properties:
        paymentMethodOwner:
          type: string
        accountPrefix:
          type: string
        bin:
          type: string
        name:
          type: string
        type:
          type: string
        isPrimary:
          type: boolean
        accountNumber:
          type: string
        currency:
          type: string
        country:
          type: string
        number:
          type: string
        id:
          type: string
      type: object
    IgnoredOperationReason:
      enum:
        - I_DONT_RECOGNIZE_CONTACT
        - AMOUNT_TOO_HIGHT
        - I_DONT_HAVE_MONEY_RIGHT_NOW
        - OTHER
        - I_DIDNT_MAKE_THIS_REQUEST
        - I_REQUESTED_A_DIFFERENT_AMOUNT
      type: string
  securitySchemes:
    api_key:
      type: apiKey
      name: api_key
      in: header

````