> ## 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 rates

> Returns the latest distinct FX rate per pair. Rates already include the platform commission adjustment.



## OpenAPI

````yaml /openapi.json get /v3/rates
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/rates:
    get:
      tags:
        - Rates
      summary: List rates
      description: >-
        Returns the latest distinct FX rate per pair. Rates already include the
        platform commission adjustment.
      operationId: listRates
      parameters:
        - $ref: '#/components/parameters/EnvironmentHeader'
      responses:
        '200':
          description: FX rates.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateListResponse'
              example:
                status: success
                data:
                  - from_currency: UGX
                    to_currency: USD
                    rate: 0.00025
                    created_at: '2026-07-06T10:00:00.000Z'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '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:
    RateListResponse:
      type: object
      required:
        - status
        - data
      properties:
        status:
          type: string
          enum:
            - success
        data:
          type: array
          items:
            $ref: '#/components/schemas/Rate'
    Rate:
      type: object
      required:
        - from_currency
        - to_currency
        - rate
        - created_at
      properties:
        from_currency:
          $ref: '#/components/schemas/Currency'
        to_currency:
          $ref: '#/components/schemas/Currency'
        rate:
          type: number
        created_at:
          type: string
          format: date-time
    ErrorResponse:
      type: object
      required:
        - status
        - message
      properties:
        status:
          type: string
          enum:
            - error
        message:
          type: string
    Currency:
      type: string
      enum:
        - USD
        - SSP
        - UGX
        - KES
        - NGN
        - USDT
        - USDC
  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
    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.

````