Mandates
Revoke Mandate
Revoke an active UPI mandate to stop future recurring debits.
POST
/
v1
/
mandates
/
{id}
/
revoke
Revoke a mandate
curl --request POST \
--url https://billing.example.com/v1/mandates/{id}/revoke \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/mandates/{id}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/mandates/{id}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/mandates/{id}/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/mandates/{id}/revoke"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://billing.example.com/v1/mandates/{id}/revoke")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/mandates/{id}/revoke")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "revoked"
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The unique identifier of the mandate to revoke (e.g. mdt_7a6b5c4d3e2f1098). |
Example Request
curl -X POST https://api.recurso.dev/v1/mandates/mdt_7a6b5c4d3e2f1098/revoke \
-H "Authorization: Bearer rsk_live_xxx"
Response
Returns the updated mandate object withstatus set to revoked.
{
"id": "mdt_7a6b5c4d3e2f1098",
"object": "mandate",
"customer_id": "cust_a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"subscription_id": "sub_9f8e7d6c5b4a3210",
"vpa": "rajesh.kumar@okicici",
"max_amount": 99900,
"frequency": "monthly",
"status": "revoked",
"umn": "UMN-202606231015-ABCDEF",
"valid_from": "2026-06-23T00:00:00Z",
"valid_until": "2031-06-23T00:00:00Z",
"revoked_at": "2026-06-25T11:30:00Z",
"created_at": "2026-06-23T10:15:30Z",
"updated_at": "2026-06-25T11:30:00Z"
}
Revoking a mandate is permanent and cannot be undone. If the mandate is linked to an
active subscription, the subscription will fail to collect its next payment. You must
set up a new mandate or alternative payment method to continue billing.
Only mandates with
authorized or paused status can be revoked. Attempting to
revoke a mandate that is already revoked or expired returns a 422 error.⌘I
Revoke a mandate
curl --request POST \
--url https://billing.example.com/v1/mandates/{id}/revoke \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/mandates/{id}/revoke"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/mandates/{id}/revoke', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://billing.example.com/v1/mandates/{id}/revoke",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://billing.example.com/v1/mandates/{id}/revoke"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://billing.example.com/v1/mandates/{id}/revoke")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/mandates/{id}/revoke")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "revoked"
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}