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

> ## Agent Instructions
> Money amounts are always major-unit decimal strings (e.g. "1000.00"), never floats and never minor units, in every request, response, and webhook payload.
> Authentication is an API key sent as Authorization: Bearer <key> on every request, with no token exchange. Keys start with zk_test_ in sandbox and zk_live_ in production. A key issued with a Client ID can still use the retiring client-credentials token exchange.
> Set a unique clientRef on every money-moving request; it is the idempotency key, and retries return the original resource.
> Quotes are single-use, intent-locked, and expire fast: always read expiresAt, consume the quote with the executor matching its intent, and re-quote on expiry instead of retrying.
> Prefer webhooks over polling for payout, order, application, and virtual-account status tracking.
> Use the sandbox (api.sandbox.zuba.com) with its deterministic magic values before touching production.

# Set the developer fee for a currency pair

> Creates or replaces the developer fee your workspace charges on payouts sent from its sub-accounts from `from` to `to`. One fee per pair applies to every sub-account. `percentage` is a percent of the payout amount ("0.5" is 0.5%) and `fixed` is an amount in the `from` currency; when both are set the fee is the percentage of the amount PLUS the fixed amount. The pair must be enabled for payouts on your workspace. Sending the same fee again changes nothing.



## OpenAPI

````yaml /openapi.json put /v1/developer-fees
openapi: 3.0.0
info:
  contact: {}
  description: >-
    Comprehensive payment platform API supporting fiat and crypto payments,
    currency conversion, and compliance management
  title: Zuba Payment Platform API
  version: '1.0'
servers: []
security: []
tags:
  - description: Manage M2M API keys and credentials
    name: API Keys
  - description: Per-country bank directories and bank-account enquiries
    name: Banks
  - description: Internal ledger accounts and transactions
    name: Ledger
  - description: Handle incoming payments and deposits
    name: Pay-ins
  - description: Manage payouts, beneficiaries, and SEPA transfers
    name: Payouts
  - description: Manage outbound webhook endpoints and deliveries
    name: Webhooks
paths:
  /v1/developer-fees:
    put:
      tags:
        - Developer fees
      summary: Set the developer fee for a currency pair
      description: >-
        Creates or replaces the developer fee your workspace charges on payouts
        sent from its sub-accounts from `from` to `to`. One fee per pair applies
        to every sub-account. `percentage` is a percent of the payout amount
        ("0.5" is 0.5%) and `fixed` is an amount in the `from` currency; when
        both are set the fee is the percentage of the amount PLUS the fixed
        amount. The pair must be enabled for payouts on your workspace. Sending
        the same fee again changes nothing.
      operationId: DeveloperFeesController_setFee
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetDeveloperFeeDto'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeveloperFeeResponseDto'
          description: ''
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDto'
          description: >-
            Invalid body: a currency code is malformed, `fees` sets neither
            `percentage` nor `fixed`, `percentage` is outside 0 to 100 or has
            more than 2 decimal places, or `fixed` is negative
        '401':
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ScopeErrorDto'
          description: >-
            developer_fees_not_available: developer fees are available to
            financial-institution workspaces only; insufficient_scope (missing
            write:developer_fees); or a dashboard role other than owner or admin
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericErrorResponseDto'
          description: >-
            pair_not_enabled: payouts from `from` to `to` are not enabled for
            your workspace; developer_fee_precision_exceeded: `fixed` has more
            decimal places than the `from` currency allows
      security:
        - bearer: []
components:
  schemas:
    SetDeveloperFeeDto:
      properties:
        fees:
          allOf:
            - $ref: '#/components/schemas/DeveloperFeeDto'
          description: >-
            The fee terms. Set `percentage`, `fixed`, or both; when both are set
            they are added together.
        from:
          description: Source currency of the payout (the currency debited).
          example: USD
          type: string
        to:
          description: Currency the beneficiary receives.
          example: NGN
          type: string
      required:
        - from
        - to
        - fees
      type: object
    DeveloperFeeResponseDto:
      properties:
        createdAt:
          example: '2026-11-02T18:00:00.000Z'
          format: date-time
          type: string
        enabled:
          description: >-
            Whether payouts on this pair are currently enabled for your
            workspace. A fee on a pair that is not enabled is kept but charges
            nothing.
          example: true
          type: boolean
        fees:
          allOf:
            - $ref: '#/components/schemas/DeveloperFeeDto'
          description: '`fixed` is in the `from` currency.'
        from:
          description: Source currency of the payout.
          example: USD
          type: string
        to:
          description: Currency the beneficiary receives.
          example: NGN
          type: string
        updatedAt:
          example: '2026-11-02T18:00:00.000Z'
          format: date-time
          type: string
      required:
        - from
        - to
        - fees
        - enabled
        - createdAt
        - updatedAt
      type: object
    ValidationErrorResponseDto:
      properties:
        details:
          description: Array of detailed validation errors
          example:
            - field: accounts.0.data
              message: crAccount must be exactly 10 digits for Nigerian accounts
          items:
            $ref: '#/components/schemas/ValidationErrorDetailDto'
          type: array
        error:
          description: Error type identifier
          example: BAD_REQUEST
          type: string
        message:
          description: >-
            The `details` messages joined with `; `, so a client that reads only
            this field still sees every failing field
          example: crAccount must be exactly 10 digits for Nigerian accounts
          type: string
        path:
          description: Request path that generated the error
          example: /v1/resource
          type: string
        statusCode:
          description: HTTP status code
          example: 400
          type: number
        timestamp:
          description: ISO timestamp when the error occurred
          example: '2024-01-15T10:30:00.000Z'
          type: string
      required:
        - statusCode
        - message
        - error
        - timestamp
        - path
        - details
      type: object
    ScopeErrorDto:
      properties:
        error:
          description: Error type identifier
          example: insufficient_scope
          type: string
        message:
          description: Error message
          example: 'API key is missing required scope: read:payouts'
          type: string
        path:
          description: Request path that generated the error
          example: /v1/resource
          type: string
        requiredScope:
          description: The scope the key must carry to call this endpoint
          example: read:payouts
          type: string
        statusCode:
          description: HTTP status code
          example: 403
          type: number
        timestamp:
          description: ISO timestamp when the error occurred
          example: '2024-01-15T10:30:00.000Z'
          type: string
      required:
        - statusCode
        - message
        - error
        - timestamp
        - path
        - requiredScope
      type: object
    GenericErrorResponseDto:
      properties:
        error:
          description: Error type identifier
          example: BAD_REQUEST
          type: string
        message:
          description: Error message
          example: Bad Request
          type: string
        path:
          description: Request path that generated the error
          example: /v1/resource
          type: string
        statusCode:
          description: HTTP status code
          example: 400
          type: number
        timestamp:
          description: ISO timestamp when the error occurred
          example: '2024-01-15T10:30:00.000Z'
          type: string
      required:
        - statusCode
        - message
        - error
        - timestamp
        - path
      type: object
    DeveloperFeeDto:
      properties:
        fixed:
          description: >-
            Fixed amount in the source currency, in major units. Added to the
            percentage when both are set.
          example: '10'
          type: string
        percentage:
          description: >-
            Percentage of the payout amount, from 0 to 100 with at most 2
            decimal places ("0.5" is 0.5%). Added to `fixed` when both are set.
          example: '0.5'
          type: string
      type: object
    ValidationErrorDetailDto:
      properties:
        code:
          description: >-
            Stable machine-readable code for client-side branching. Present on
            structural-validation failures of the recipient (e.g.
            MISSING_BENEFICIARY_NAME, INVALID_IBAN, BENEFICIARY_INCOMPLETE) and
            of the sender (SENDER_INFO_INCOMPLETE, SENDER_INFO_INVALID), and on
            a payout narration longer than the limit of its currency
            (NARRATION_TOO_LONG); absent on any other DTO validation error.
          example: MISSING_BENEFICIARY_NAME
          type: string
        field:
          description: >-
            The field path that failed validation. A bank account format rule
            reports the account object it checked (e.g. accounts.0.data) and
            names each failing field in its message.
          example: accounts.0.data
          type: string
        message:
          description: Human-readable error message describing the validation failure
          example: crAccount must be exactly 10 digits for Nigerian accounts
          type: string
      required:
        - field
        - message
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: Enter Auth0 JWT token
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.