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

# Update mandate status

> Updates the status of a direct debit mandate (e.g., SUSPEND, ACTIVE).



## OpenAPI

````yaml put /v1/direct-debits/update-status
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/update-status:
    put:
      tags:
        - Direct Debits
      summary: Update mandate status
      description: Updates the status of a direct debit mandate (e.g., SUSPEND, ACTIVE).
      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/UpdateMandateStatusRequest'
            example:
              mandateId: c93e1e1b-85f5-461e-8b9b-74ee091d4aa4
              status: SUSPEND
      responses:
        '200':
          description: Mandate status updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateMandateStatusResponse'
              example:
                code: '00'
                description: SUCCESS
                data:
                  mandateId: c93e1e1b-85f5-461e-8b9b-74ee091d4aa4
                  mandateStatus: Advise not sent
                message: SUCCESS
                status: true
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthenticationError'
          description: >-
            The access_token provided to access the resource is missing or
            invalid.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AuthorizationError'
          description: The client does not have the permissions to access this resource
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecordNotFoundError'
          description: The record that the client is trying to access does not exist.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitError'
          description: >-
            The client has maxed out the number of calls within a time period on
            this resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServerError'
          description: Downstream system error.
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RequestError'
          description: Resource not available
      security:
        - BearerAuth: []
components:
  schemas:
    UpdateMandateStatusRequest:
      type: object
      properties:
        mandateId:
          type: string
          description: Unique identifier of the mandate
        status:
          type: string
          enum:
            - SUSPEND
            - ACTIVE
            - DELETE
          description: New status of the mandate
      required:
        - mandateId
        - status
    UpdateMandateStatusResponse:
      type: object
      properties:
        code:
          type: string
          example: '00'
        description:
          type: string
          example: SUCCESS
        data:
          type: object
          properties:
            mandateId:
              type: string
              example: c93e1e1b-85f5-461e-8b9b-74ee091d4aa4
            mandateStatus:
              type: string
              example: Advise not sent
        message:
          type: string
          example: SUCCESS
        status:
          type: boolean
          example: true
      required:
        - code
        - description
        - data
        - message
        - status
    AuthenticationError:
      type: object
      description: Authentication Error response.
      properties:
        code:
          type: string
          description: API error code.
          example: '401'
        description:
          type: string
          description: Additional details about the error.
          example: Unauthorized
    AuthorizationError:
      type: object
      description: Permissions error response.
      properties:
        code:
          type: string
          description: API error code.
          example: '403'
        description:
          type: string
          description: Additional details about the error.
          example: Forbidden
    RecordNotFoundError:
      type: object
      description: Record-Not-Found error response.
      properties:
        code:
          type: string
          description: API error code.
          example: '404'
        description:
          type: string
          description: Additional details about the error.
          example: Record not found
    RateLimitError:
      type: object
      description: Rate-limit error response.
      properties:
        code:
          type: string
          description: API error code.
          example: '429'
        description:
          type: string
          description: Additional details about the error.
          example: Too many requests
    ServerError:
      type: object
      description: Server error response.
      properties:
        code:
          type: string
          description: API error code.
          example: '500'
        description:
          type: string
          description: Additional details about the error.
          example: Server error
    RequestError:
      type: object
      description: Request Error response.
      properties:
        code:
          type: string
          description: API error code.
          example: '400'
        description:
          type: string
          description: Additional details about the error.
          example: Request failed.
  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

````