Claim affiliate balance
Claim the full available balance in one custody and frozen payout bucket. Pass claimBucketId from affiliate stats to select an exact bucket. Without it, select the oldest claimable bucket within the chosen settlement and frozen payout destination. Missing legacy payout details are filled only when existing details match the selected destination; conflicting rows remain unclaimed. A below-minimum refusal identifies another eligible snapshotted balance’s claimBucketId and saved recipient when available in the same settlement. Select that ID explicitly with a new X-Idempotency-Key; availability and the payout quote are rechecked.
POST
/
v1
/
affiliates
/
{affiliateId}
/
claim
Claim affiliate balance
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/affiliates/{affiliateId}/claim \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"claimBucketId": "<string>",
"settlementChain": "<string>",
"settlementAsset": "<string>",
"payoutAsset": "<string>",
"payoutAddress": "<string>"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
claimBucketId: '<string>',
settlementChain: '<string>',
settlementAsset: '<string>',
payoutAsset: '<string>',
payoutAddress: '<string>'
})
};
fetch('https://orchestration.flashnet.xyz/v1/affiliates/{affiliateId}/claim', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/affiliates/{affiliateId}/claim"
payload = {
"claimBucketId": "<string>",
"settlementChain": "<string>",
"settlementAsset": "<string>",
"payoutAsset": "<string>",
"payoutAddress": "<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){
"claim": {
"id": "<string>",
"affiliateId": "<string>",
"amount": "<string>",
"settlementChain": "<string>",
"settlementAsset": "<string>",
"payoutChain": "arbitrum",
"payoutAsset": "<string>",
"payoutAddress": "<string>",
"status": "processing",
"txHash": "<string>",
"relayRequestId": "<string>",
"operationId": "<string>",
"errorMessage": "<string>",
"nextAttemptAt": "<string>",
"attempts": 123,
"createdAt": "<string>",
"completedAt": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Body
application/json
Was this page helpful?
⌘I
Claim affiliate balance
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/affiliates/{affiliateId}/claim \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Idempotency-Key: <x-idempotency-key>' \
--data '
{
"claimBucketId": "<string>",
"settlementChain": "<string>",
"settlementAsset": "<string>",
"payoutAsset": "<string>",
"payoutAddress": "<string>"
}
'const options = {
method: 'POST',
headers: {
'X-Idempotency-Key': '<x-idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
claimBucketId: '<string>',
settlementChain: '<string>',
settlementAsset: '<string>',
payoutAsset: '<string>',
payoutAddress: '<string>'
})
};
fetch('https://orchestration.flashnet.xyz/v1/affiliates/{affiliateId}/claim', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/affiliates/{affiliateId}/claim"
payload = {
"claimBucketId": "<string>",
"settlementChain": "<string>",
"settlementAsset": "<string>",
"payoutAsset": "<string>",
"payoutAddress": "<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){
"claim": {
"id": "<string>",
"affiliateId": "<string>",
"amount": "<string>",
"settlementChain": "<string>",
"settlementAsset": "<string>",
"payoutChain": "arbitrum",
"payoutAsset": "<string>",
"payoutAddress": "<string>",
"status": "processing",
"txHash": "<string>",
"relayRequestId": "<string>",
"operationId": "<string>",
"errorMessage": "<string>",
"nextAttemptAt": "<string>",
"attempts": 123,
"createdAt": "<string>",
"completedAt": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}