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

# Refund Deposit

> This API endpoint allows you to initiate a refund for a previously successful mobile money deposit transaction.



## OpenAPI

````yaml POST /api/b2b/fiat/deposit/{transactionId}/refund
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/deposit/{transactionId}/refund:
    post:
      tags:
        - Charges
      summary: Refund Deposit
      description: >-
        This API endpoint allows you to initiate a refund for a previously
        successful mobile money deposit transaction.
      operationId: refund-deposit
      parameters:
        - name: transactionId
          in: path
          description: The transactionId of the transaction.
          schema:
            type: string
          required: true
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - refundReason
                - externalReference
              properties:
                refundReason:
                  type: string
                  description: An explanation of why the refund is being initiated.
                externalReference:
                  type: string
                  description: >-
                    A unique ID of your liking to reconcile transactions
                    internally.
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    success: true
                    message: Transaction refund initiated successfully.
                    data:
                      refundTransactionId: unique-refund-transaction-id
                      originalTransactionId: unique-original-transaction-id
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                    default: true
                  message:
                    type: string
                    example: Transaction refund initiated successfully.
                  data:
                    type: object
                    properties:
                      refundTransactionId:
                        type: string
                        example: unique-refund-transaction-id
                      originalTransactionId:
                        type: string
                        example: unique-original-transaction-id
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````