Update recovery settings
curl --request PATCH \
--url https://api.useduro.com/v1/settings/recovery \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"autoRecovery": true,
"renewalReminders": true,
"renewalReminderDays": 123,
"abandonedCart": true,
"dunningEnabled": true,
"dunningEscalationDays": 123,
"paydayAware": true,
"maxAttempts": 123,
"retryRails": [],
"retryOffsetsHours": [
123
]
}
'import requests
url = "https://api.useduro.com/v1/settings/recovery"
payload = {
"autoRecovery": True,
"renewalReminders": True,
"renewalReminderDays": 123,
"abandonedCart": True,
"dunningEnabled": True,
"dunningEscalationDays": 123,
"paydayAware": True,
"maxAttempts": 123,
"retryRails": [],
"retryOffsetsHours": [123]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
autoRecovery: true,
renewalReminders: true,
renewalReminderDays: 123,
abandonedCart: true,
dunningEnabled: true,
dunningEscalationDays: 123,
paydayAware: true,
maxAttempts: 123,
retryRails: [],
retryOffsetsHours: [123]
})
};
fetch('https://api.useduro.com/v1/settings/recovery', 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://api.useduro.com/v1/settings/recovery",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'autoRecovery' => true,
'renewalReminders' => true,
'renewalReminderDays' => 123,
'abandonedCart' => true,
'dunningEnabled' => true,
'dunningEscalationDays' => 123,
'paydayAware' => true,
'maxAttempts' => 123,
'retryRails' => [
],
'retryOffsetsHours' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.useduro.com/v1/settings/recovery"
payload := strings.NewReader("{\n \"autoRecovery\": true,\n \"renewalReminders\": true,\n \"renewalReminderDays\": 123,\n \"abandonedCart\": true,\n \"dunningEnabled\": true,\n \"dunningEscalationDays\": 123,\n \"paydayAware\": true,\n \"maxAttempts\": 123,\n \"retryRails\": [],\n \"retryOffsetsHours\": [\n 123\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.useduro.com/v1/settings/recovery")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"autoRecovery\": true,\n \"renewalReminders\": true,\n \"renewalReminderDays\": 123,\n \"abandonedCart\": true,\n \"dunningEnabled\": true,\n \"dunningEscalationDays\": 123,\n \"paydayAware\": true,\n \"maxAttempts\": 123,\n \"retryRails\": [],\n \"retryOffsetsHours\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useduro.com/v1/settings/recovery")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"autoRecovery\": true,\n \"renewalReminders\": true,\n \"renewalReminderDays\": 123,\n \"abandonedCart\": true,\n \"dunningEnabled\": true,\n \"dunningEscalationDays\": 123,\n \"paydayAware\": true,\n \"maxAttempts\": 123,\n \"retryRails\": [],\n \"retryOffsetsHours\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"autoRecovery": true,
"renewalReminders": true,
"renewalReminderDays": 123,
"abandonedCart": true,
"dunningEnabled": true,
"dunningEscalationDays": 123,
"paydayAware": true,
"maxAttempts": 123,
"retryRails": [],
"retryOffsetsHours": [
123
]
}Settings
Update recovery settings
PATCH
/
v1
/
settings
/
recovery
Update recovery settings
curl --request PATCH \
--url https://api.useduro.com/v1/settings/recovery \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"autoRecovery": true,
"renewalReminders": true,
"renewalReminderDays": 123,
"abandonedCart": true,
"dunningEnabled": true,
"dunningEscalationDays": 123,
"paydayAware": true,
"maxAttempts": 123,
"retryRails": [],
"retryOffsetsHours": [
123
]
}
'import requests
url = "https://api.useduro.com/v1/settings/recovery"
payload = {
"autoRecovery": True,
"renewalReminders": True,
"renewalReminderDays": 123,
"abandonedCart": True,
"dunningEnabled": True,
"dunningEscalationDays": 123,
"paydayAware": True,
"maxAttempts": 123,
"retryRails": [],
"retryOffsetsHours": [123]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
autoRecovery: true,
renewalReminders: true,
renewalReminderDays: 123,
abandonedCart: true,
dunningEnabled: true,
dunningEscalationDays: 123,
paydayAware: true,
maxAttempts: 123,
retryRails: [],
retryOffsetsHours: [123]
})
};
fetch('https://api.useduro.com/v1/settings/recovery', 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://api.useduro.com/v1/settings/recovery",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'autoRecovery' => true,
'renewalReminders' => true,
'renewalReminderDays' => 123,
'abandonedCart' => true,
'dunningEnabled' => true,
'dunningEscalationDays' => 123,
'paydayAware' => true,
'maxAttempts' => 123,
'retryRails' => [
],
'retryOffsetsHours' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.useduro.com/v1/settings/recovery"
payload := strings.NewReader("{\n \"autoRecovery\": true,\n \"renewalReminders\": true,\n \"renewalReminderDays\": 123,\n \"abandonedCart\": true,\n \"dunningEnabled\": true,\n \"dunningEscalationDays\": 123,\n \"paydayAware\": true,\n \"maxAttempts\": 123,\n \"retryRails\": [],\n \"retryOffsetsHours\": [\n 123\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.useduro.com/v1/settings/recovery")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"autoRecovery\": true,\n \"renewalReminders\": true,\n \"renewalReminderDays\": 123,\n \"abandonedCart\": true,\n \"dunningEnabled\": true,\n \"dunningEscalationDays\": 123,\n \"paydayAware\": true,\n \"maxAttempts\": 123,\n \"retryRails\": [],\n \"retryOffsetsHours\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.useduro.com/v1/settings/recovery")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"autoRecovery\": true,\n \"renewalReminders\": true,\n \"renewalReminderDays\": 123,\n \"abandonedCart\": true,\n \"dunningEnabled\": true,\n \"dunningEscalationDays\": 123,\n \"paydayAware\": true,\n \"maxAttempts\": 123,\n \"retryRails\": [],\n \"retryOffsetsHours\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body{
"autoRecovery": true,
"renewalReminders": true,
"renewalReminderDays": 123,
"abandonedCart": true,
"dunningEnabled": true,
"dunningEscalationDays": 123,
"paydayAware": true,
"maxAttempts": 123,
"retryRails": [],
"retryOffsetsHours": [
123
]
}Authorizations
Paste your secret key as the bearer token: sk_test_… (test) or sk_live_… (live). That is all a normal API call needs. OAuth access tokens from POST /v1/oauth/token also work, but a client id/secret is only for platforms acting on another tenant's behalf, not for your own integration.
Body
application/json
Available options:
cancel, pause, mark_unpaid Available options:
card, transfer, ussd, virtual_account, direct_debit, wallet Response
200 - application/json
OK
Available options:
cancel, pause, mark_unpaid Available options:
card, transfer, ussd, virtual_account, direct_debit, wallet Was this page helpful?
⌘I