Register recovery webhook
Register an endpoint for order.recovery_required events.
POST
/
v1
/
webhooks
/
recovery
Register recovery webhook
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/webhooks/recovery \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"url": "https://example.com/webhooks/flashnet"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({url: 'https://example.com/webhooks/flashnet'})
};
fetch('https://orchestration.flashnet.xyz/v1/webhooks/recovery', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/webhooks/recovery"
payload = { "url": "https://example.com/webhooks/flashnet" }
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"webhookId": "<string>",
"secret": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Partner API key in the form Authorization: Bearer fn_....
Headers
Minimum string length:
1Body
application/json
Unknown top-level fields are ignored rather than rejected.
Server canonicalizes by trimming leading/trailing whitespace; case is preserved.
Minimum string length:
1Was this page helpful?
⌘I
Register recovery webhook
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/webhooks/recovery \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"url": "https://example.com/webhooks/flashnet"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({url: 'https://example.com/webhooks/flashnet'})
};
fetch('https://orchestration.flashnet.xyz/v1/webhooks/recovery', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/webhooks/recovery"
payload = { "url": "https://example.com/webhooks/flashnet" }
headers = {
"X-Idempotency-Key": "<x-idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"webhookId": "<string>",
"secret": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}