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

# Request Mandate Approval

> Request CRDB Direct Debit mandate approval and create the linked payment schedule.

<Note>
  See the [CRDB Direct Debit API overview](/crdb-direct-debit/api-overview) for mandate status callbacks and payment webhooks. A CRDB debit account can have only one mandate at a time.
</Note>


## OpenAPI

````yaml api-reference/collection/crdb-direct-debit/openapi.json POST /customers/crdb-direct-debit-mandate
openapi: 3.0.1
info:
  title: CORE API - CRDB Direct Debit
  description: API for requesting, querying, and cancelling CRDB Direct Debit mandates
  version: 1.0.0
servers:
  - url: https://api.clickpesa.com/third-parties
security:
  - bearerAuth: []
paths:
  /customers/crdb-direct-debit-mandate:
    post:
      tags:
        - CRDB Direct Debit
      summary: Request Mandate Approval
      description: >-
        Request CRDB Direct Debit mandate approval and create the linked payment
        schedule.
      operationId: requestCrdbDirectDebitMandate
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - customer
                - phoneNumber
                - debitAccount
                - startDate
                - endDate
                - frequencyType
                - installmentAmount
                - mandateCallbackUrl
              properties:
                customer:
                  type: object
                  required:
                    - fullName
                  properties:
                    fullName:
                      type: string
                      description: Full name of the customer
                      example: Ramona Cormier-Hilll
                    email:
                      type: string
                      description: Customer email address
                      example: Aurore56@yahoo.com
                    phoneNumber:
                      type: string
                      description: Customer phone number (optional contact number)
                      example: '255799468121'
                phoneNumber:
                  type: string
                  description: >-
                    Customer's SimBanking-registered phone number for the debit
                    account. 12 digits, starts with country code, no plus sign.
                  example: '255754712650'
                debitAccount:
                  type: string
                  description: CRDB account number to debit
                  example: '0152590146100'
                startDate:
                  type: string
                  description: Mandate start date (DD-MM-YYYY or YYYY-MM-DD)
                  example: 10-12-2025
                endDate:
                  type: string
                  description: Mandate end date (DD-MM-YYYY or YYYY-MM-DD)
                  example: 30-12-2025
                frequencyType:
                  type: string
                  enum:
                    - DAILY
                    - WEEKLY
                    - MONTHLY
                    - YEARLY
                  description: Installment frequency type
                frequency:
                  type: number
                  description: >-
                    Frequency multiplier (default: 1). Example:
                    frequencyType=WEEKLY, frequency=2 means every 2 weeks
                  example: 2
                installmentAmount:
                  type: number
                  description: Amount to debit per installment (must be positive)
                  example: 2500
                mandateCallbackUrl:
                  type: string
                  format: uri
                  description: >-
                    URL where mandate status callbacks (ACTIVE, REJECTED,
                    CANCELLED) will be sent
                  example: https://your-system.com/webhooks/crdb-mandate-status
                billDetails:
                  type: string
                  description: Optional description of the bill or mandate
                  example: Loan No. 233422 from Inc.
            example:
              customer:
                fullName: Ramona Cormier-Hilll
                email: Aurore56@yahoo.com
                phoneNumber: '255799468121'
              phoneNumber: '255754712650'
              debitAccount: '0152590146100'
              installmentAmount: 2500
              startDate: 10-12-2025
              endDate: 30-12-2025
              frequencyType: DAILY
              frequency: 2
              billDetails: Loan No. 233422 from Inc.
              mandateCallbackUrl: https://your-system.com/webhooks/crdb-mandate-status
      responses:
        '200':
          description: Mandate request accepted
          content:
            application/json:
              schema:
                type: object
                properties:
                  mandateRequestId:
                    type: string
                    description: Unique identifier for the mandate request
                  mandateStatus:
                    type: string
                    description: Current status of the mandate (typically REQUESTED)
                  paymentsTotalAmount:
                    type: number
                    description: Total amount scheduled over the mandate period
                  paymentsInstallments:
                    type: number
                    description: Total number of installments scheduled
              example:
                mandateRequestId: 69383ce4f8b5a8e2077df9c7
                mandateStatus: REQUESTED
                paymentsTotalAmount: 27500
                paymentsInstallments: 11
        '400':
          description: Validation or service error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        statusCode:
          type: number
    UnauthorizedError:
      type: object
      properties:
        statusCode:
          type: number
          example: 401
        message:
          type: string
          example: Unauthorized
        error:
          type: string
          example: Unauthorized
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Bearer token from Generate Authorization Token

````