Mandates
Get Mandate
Retrieve a single UPI mandate by its unique identifier.
GET
/
v1
/
mandates
/
{id}
Retrieve a mandate
curl --request GET \
--url https://billing.example.com/v1/mandates/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/mandates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/mandates/{id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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}"
req, _ := http.NewRequest("GET", 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.get("https://billing.example.com/v1/mandates/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/mandates/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscription_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mandate_type": "<string>",
"payment_method": "<string>",
"vpa": "<string>",
"razorpay_token_id": "<string>",
"razorpay_subscription_id": "<string>",
"razorpay_customer_id": "<string>",
"max_amount": 123,
"frequency": "weekly",
"status": "created",
"authorized_at": "2023-11-07T05:31:56Z",
"activated_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z",
"last_debit_at": "2023-11-07T05:31:56Z",
"next_debit_at": "2023-11-07T05:31:56Z",
"pre_debit_notified": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"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 (e.g., mdt_7a6b5c4d3e2f1098). |
Example Request
curl https://api.recurso.dev/v1/mandates/mdt_7a6b5c4d3e2f1098 \
-H "Authorization: Bearer rsk_live_xxx"
Response
Returns the full mandate object.{
"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": "authorized",
"razorpay_token_id": "token_Hw3bG7kLmNpQrS",
"umn": "UMN-202606231015-ABCDEF",
"authorized_at": "2026-06-23T10:20:00Z",
"activated_at": "2026-06-23T10:20:05Z",
"valid_from": "2026-06-23T00:00:00Z",
"valid_until": "2031-06-23T00:00:00Z",
"created_at": "2026-06-23T10:15:30Z",
"updated_at": "2026-06-24T08:00:00Z"
}
Response Fields
| Field | Type | Description |
|---|---|---|
status | string | Current mandate status. One of: created, authorized, paused, revoked, or expired. |
razorpay_token_id | string | The Razorpay token ID associated with this mandate. Used internally for recurring debits. |
authorized_at | string | ISO 8601 timestamp when the customer authorized the mandate via their UPI app. null if not yet authorized. |
activated_at | string | ISO 8601 timestamp when the mandate became active for debits. null if not yet activated. |
The
razorpay_token_id is populated once the mandate has been authorized. For mandates in created status, this field will be null.⌘I
Retrieve a mandate
curl --request GET \
--url https://billing.example.com/v1/mandates/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://billing.example.com/v1/mandates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://billing.example.com/v1/mandates/{id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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}"
req, _ := http.NewRequest("GET", 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.get("https://billing.example.com/v1/mandates/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://billing.example.com/v1/mandates/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"customer_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"subscription_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"mandate_type": "<string>",
"payment_method": "<string>",
"vpa": "<string>",
"razorpay_token_id": "<string>",
"razorpay_subscription_id": "<string>",
"razorpay_customer_id": "<string>",
"max_amount": 123,
"frequency": "weekly",
"status": "created",
"authorized_at": "2023-11-07T05:31:56Z",
"activated_at": "2023-11-07T05:31:56Z",
"revoked_at": "2023-11-07T05:31:56Z",
"last_debit_at": "2023-11-07T05:31:56Z",
"next_debit_at": "2023-11-07T05:31:56Z",
"pre_debit_notified": true,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "<string>"
}
}