Delete a recipient
Delete a recipient
URI
DELETE
https://api.tryduplo.com/v1/recipients/:business_id/:recipient_ref?expand=true
Parameters
Header
Path Param
Query Param
Sample request
curl --location --request DELETE 'https://api.tryduplo.com/v1/recipients/7e7e0728-74a7-41ce-8a05-310e3e2eba4c/rec_W24rwr3r3rwew3?expand=true'
var axios = require('axios');
var config = {
method: 'delete',
url: 'https://api.tryduplo.com/v1/recipients/7e7728-74a7-41ce-8a05-310e3e2eba4c/rec_W24rr3r3rwew3?expand=true',
headers: { }
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api.tryduplo.com/v1/recipients/7e0728-74a7-41ce-8a05-310e3e2eba4c/rec_4rwr3r3rwew3?expand=true',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'DELETE',
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Duplo Response
{
"data": {},
"errors": {},
"message": "Request successful"
}
Last updated