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

# Payouts

> This endpoint is a universal endpoint, below are schemas for different payouts such as mobile money or bank accounts and this endpoint allows you to payout to these destinations through this single endpoint.



## OpenAPI

````yaml POST /api/b2b/fiat/payout
openapi: 3.1.0
info:
  title: Zerocash API
  version: 1.0.0
  description: >-
    The Zerocash API lets you collect payments (charges) and disburse funds
    (payouts) across supported markets through a single, unified integration.
servers:
  - url: https://api.zerocash.tech
security:
  - bearerAuth: []
tags:
  - name: Authentication
    description: Obtain and manage API credentials.
  - name: Reference Data
    description: Look up countries, banks, operators, and rates before transacting.
  - name: Charges
    description: Collect payments from your customers.
  - name: Payouts
    description: Disburse funds to recipients.
  - name: Transactions
    description: Retrieve and reconcile transactions.
  - name: Webhooks
    description: Receive and replay real-time event notifications.
paths:
  /api/b2b/fiat/payout:
    post:
      tags:
        - Payouts
      summary: Payouts
      description: >-
        This endpoint is a universal endpoint, below are schemas for different
        payouts such as mobile money or bank accounts and this endpoint allows
        you to payout to these destinations through this single endpoint.
      operationId: payouts
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - amount
                - currency
                - country
                - destination
                - externalReference
              properties:
                amount:
                  type: integer
                  default: 100
                  format: int32
                currency:
                  type: string
                  default: KES
                country:
                  type: string
                  description: ISO 3166-1 alpha-2 country code
                  default: KE
                payoutMethod:
                  type: object
                  required:
                    - accountName
                    - accountNumber
                  properties:
                    accountName:
                      type: string
                      description: e.g Clark Kent
                    accountNumber:
                      type: string
                      description: '254712345678'
                    code:
                      type: string
                      description: >-
                        Might be required depending on the currency and
                        destination. All bank payouts require the bank code
                        which can be retrieved from the get banks api. For
                        mobile money payouts, some currencies require a mobile
                        operator code which can be retrieved from the mobile
                        money providers api.
                    businessNumber:
                      type: string
                      description: Only applies for Mpesa paybill payouts
                destination:
                  type: string
                  description: MoMo / Bank Account
                  default: MoMo
                externalReference:
                  type: string
                  description: >-
                    A unique ID of your liking to reconcile transactions
                    internally.
                externalAccountId:
                  type: string
                debitCurrency:
                  type: string
                  description: >-
                    The wallet you want to be debited from. If missing, we will
                    default to the currency passed.
                debitCountry:
                  type: string
                  description: >-
                    ISO 3166-1 alpha-2 country scope of the wallet being
                    debited. Required when debitCurrency is different from
                    currency and the debit wallet currency can exist in multiple
                    country scopes, such as USD or XOF.
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    success: true
                    message: Withdrawal Request Accepted for Processing.
                    transactionId: mIt5ycmF3YCqaOQp6Ljz
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                    default: true
                  message:
                    type: string
                    example: Withdrawal Request Accepted for Processing.
                  transactionId:
                    type: string
                    example: mIt5ycmF3YCqaOQp6Ljz
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````