Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

e-Mandate Termination


v2DELETE console.bayar.cash/api/v2/mandates/{mandate_id} v3DELETE api.console.bayar.cash/v3/mandates/{mandate_id}


Terminate an existing Direct Debit (e-Mandate). The mandate must be active. The order_number is taken from the mandate and does not need to be supplied.

Name
Description
Type
Condition

application_reason

string

Required

link_expired_at

Mandate link expiry datetime (Y-m-d H:i:s). Defaults to 1 hour from creation

string

Optional

platform_id

string

Optional

checksum

string

Optional


Example of sending DELETE request with cURL.

curl -X DELETE https://api.console.bayar.cash/v3/mandates/md_MGWpzp \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer <Personal_Access_Token>' \
  --data-raw '{
          "application_reason": "Termination for DD001"
      }'

Example of JSON structured response.

{
    "payer_name": "Mohd Ali",
    "payer_id_type": 1,
    "payer_id": "910109021234",
    "payer_email": "mohd.ali@gmail.com",
    "payer_telephone_number": "60198109001",
    "order_number": "DD001",
    "amount": 30,
    "application_type": "Termination",
    "application_reason": "Termination of DD001",
    "frequency_mode": "YR",
    "effective_date": "2024-06-15",
    "expiry_date": "2024-08-15",
    "url": "https://console.bayar.cash/payment-intent/pi_pGwZaY"
}

Last updated