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

# Debit a mandate

> Debits a customer's account using an active mandate.



## OpenAPI

````yaml post /v1/direct-debits/debit-mandate
openapi: 3.0.1
info:
  description: ''
  title: Vendor API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.nomba.com
  - description: Sandbox
    url: https://sandbox.nomba.com
security: []
tags:
  - name: Authenticate
  - name: Accounts
  - name: Virtual Accounts
  - name: Online Checkout
  - name: Charge
  - name: Transfers
  - name: Direct Debits
  - name: Terminals
  - name: Transactions
  - name: Airtime and Data Vending
  - name: Electricity Vending
  - name: CableTV Subscription
  - name: Betting Vending
paths:
  /v1/direct-debits/debit-mandate:
    post:
      tags:
        - Direct Debits
      summary: Debit a mandate
      description: Debits a customer's account using an active mandate.
      parameters:
        - name: accountId
          in: header
          required: true
          schema:
            type: string
          description: The vendor account ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DebitMandateRequest'
            example:
              mandateId: 89b0efc0-dde5-49e2-8bde-5523ae081c43
              amount: '110.00'
      responses:
        '200':
          description: Mandate debited successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DebitMandateResponse'
              example:
                code: '00'
                description: SUCCESS
                data:
                  mandateId: 89b0efc0-dde5-49e2-8bde-5523ae081c43
                  status: SUCCESS
                  amount: '110.00'
                  message: Approved or completed successfully
                message: SUCCESS
                status: true
        '400':
          description: Invalid request payload
        '401':
          description: Unauthorized - invalid or missing token
      security:
        - BearerAuth: []
components:
  schemas:
    DebitMandateRequest:
      type: object
      properties:
        mandateId:
          type: string
          description: Unique identifier of the mandate to debit
        amount:
          type: string
          description: Amount to be debited
      required:
        - mandateId
        - amount
    DebitMandateResponse:
      type: object
      properties:
        code:
          type: string
          example: '00'
        description:
          type: string
          example: SUCCESS
        data:
          type: object
          properties:
            mandateId:
              type: string
              example: 89b0efc0-dde5-49e2-8bde-5523ae081c43
            status:
              type: string
              example: SUCCESS
            amount:
              type: string
              example: '110.00'
            message:
              type: string
              example: Approved or completed successfully
        message:
          type: string
          example: SUCCESS
        status:
          type: boolean
          example: true
      required:
        - code
        - description
        - data
        - message
        - status
  securitySchemes:
    BearerAuth:
      description: >-
        Nomba authenticates API calls with [OAuth2 HTTP bearer
        tokens](http://tools.ietf.org/html/rfc6750). There are two methods of
        authentication; [Client-Credentials
        method](https://www.rfc-editor.org/rfc/rfc6749) and [PKCE (Proof Key for
        Code Exchange)](https://www.rfc-editor.org/rfc/rfc7636) method. In each
        of the methods, You will get an `ACCESS_TOKEN`. You need to use an
        `"Authorization"` HTTP header to provide your `ACCESS_TOKEN`. For
        example: `Authorization: {ACCESS_TOKEN}`.
      scheme: bearer
      type: http
      bearerFormat: JWT

````