Mandates - Revoke Mandate
curl --request POST \
--url https://api.sandbox.pesaswap.io/mandates/revoke/{mandate_id} \
--header 'api-key: <api-key>'const options = {method: 'POST', headers: {'api-key': '<api-key>'}};
fetch('https://api.sandbox.pesaswap.io/mandates/revoke/{mandate_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sandbox.pesaswap.io/mandates/revoke/{mandate_id}"
headers = {"api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.pesaswap.io/mandates/revoke/{mandate_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"mandate_id": "<string>",
"status": "active",
"error_code": "E0001",
"error_message": "Failed while verifying the card"
}Mandates
Mandates - Revoke Mandate
Revokes a mandate created using the Payments/Create API
POST
/
mandates
/
revoke
/
{mandate_id}
Mandates - Revoke Mandate
curl --request POST \
--url https://api.sandbox.pesaswap.io/mandates/revoke/{mandate_id} \
--header 'api-key: <api-key>'const options = {method: 'POST', headers: {'api-key': '<api-key>'}};
fetch('https://api.sandbox.pesaswap.io/mandates/revoke/{mandate_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sandbox.pesaswap.io/mandates/revoke/{mandate_id}"
headers = {"api-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.pesaswap.io/mandates/revoke/{mandate_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"mandate_id": "<string>",
"status": "active",
"error_code": "E0001",
"error_message": "Failed while verifying the card"
}Authorizations
Response
The mandate was revoked successfully