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

# List transactions

> Returns transactions ordered by most recent.



## OpenAPI

````yaml /openapi.json get /v3/transactions
openapi: 3.1.0
info:
  title: Sarafa Merchant API
  summary: Enterprise API for Sarafa merchants.
  description: >-
    The Sarafa Merchant API is mounted under `/v3` and authenticated with a
    merchant API secret.
  version: 0.1.0
servers:
  - url: https://serviceapi.sarafa.ss
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Profile
  - name: Wallets
  - name: Money movement
  - name: Transactions
  - name: Rates
paths:
  /v3/transactions:
    get:
      tags:
        - Transactions
      summary: List transactions
      description: Returns transactions ordered by most recent.
      operationId: listTransactions
      parameters:
        - $ref: '#/components/parameters/EnvironmentHeader'
        - name: limit
          in: query
          description: Number of transactions to return.
          schema:
            type: integer
            default: 50
            minimum: 0
            maximum: 100
        - name: offset
          in: query
          description: Number of transactions to skip.
          schema:
            type: integer
            default: 0
            minimum: 0
      responses:
        '200':
          description: Transactions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionListResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  parameters:
    EnvironmentHeader:
      name: environment
      in: header
      required: false
      description: Target environment. Defaults to `production` when omitted.
      schema:
        type: string
        enum:
          - production
          - sandbox
        default: production
  schemas:
    TransactionListResponse:
      type: object
      required:
        - status
        - data
        - meta
      properties:
        status:
          type: string
          enum:
            - success
        data:
          type: array
          items:
            $ref: '#/components/schemas/Transaction'
        meta:
          type: object
          required:
            - limit
            - offset
          properties:
            limit:
              type: integer
            offset:
              type: integer
    Transaction:
      type: object
      required:
        - total_amount
        - total_fee
        - product
        - description
        - status
        - created_at
        - updated_at
        - completed_at
        - external_reference
        - customer_meta
      properties:
        total_amount:
          type: number
        total_fee:
          type: number
        product:
          type: string
          examples:
            - collect_mobile
            - disburse_mobile
        description:
          type:
            - string
            - 'null'
        status:
          $ref: '#/components/schemas/Status'
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        external_reference:
          type:
            - string
            - 'null'
        customer_meta:
          type:
            - object
            - 'null'
          additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
    Status:
      type: string
      examples:
        - pending
        - processing
        - completed
        - failed
  responses:
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingApiKey:
              value:
                status: error
                message: API key is required
            invalidApiKey:
              value:
                status: error
                message: Invalid API key
    Forbidden:
      description: Organization or account context could not be resolved.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            message: Organization account not found
    ServerError:
      description: Unexpected server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            status: error
            message: Something went wrong. Request could not be processed
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Merchant API secret.

````