Request deposit refund
Request a refund of selected depositIds or one batchId to an explicit refundAddress on the source chain. Unsupported token deposits may be requested for return of only their original token and recorded amount; no canonical-token substitution or shared-inventory payout is authorized. The worker checks proof, screening, custody and live transactions asynchronously; these checks may keep the refund held. A request is not proof of delivery, and arbitrary token arrivals do not trigger automatic gas-funded refunds. Requires a server key.
POST
/
v1
/
standing-deposit-addresses
/
{ref}
/
resolve
Request deposit refund
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/standing-deposit-addresses/{ref}/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"batchId": "<string>",
"refundAddress": "<string>"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({batchId: '<string>', refundAddress: '<string>'})
};
fetch('https://orchestration.flashnet.xyz/v1/standing-deposit-addresses/{ref}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/standing-deposit-addresses/{ref}/resolve"
payload = {
"batchId": "<string>",
"refundAddress": "<string>"
}
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){
"batchId": "<string>",
"status": "refund_requested"
}Authorizations
Body
application/json
Was this page helpful?
⌘I
Request deposit refund
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/standing-deposit-addresses/{ref}/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"batchId": "<string>",
"refundAddress": "<string>"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({batchId: '<string>', refundAddress: '<string>'})
};
fetch('https://orchestration.flashnet.xyz/v1/standing-deposit-addresses/{ref}/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/standing-deposit-addresses/{ref}/resolve"
payload = {
"batchId": "<string>",
"refundAddress": "<string>"
}
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){
"batchId": "<string>",
"status": "refund_requested"
}