A valid request URL is required to generate request examples{
"version": "external-affiliate-earnings/v1",
"accountId": "<string>",
"affiliateId": "<string>",
"settlements": [
{
"settlementId": "<string>",
"feeAsset": "<string>",
"periodStartEpochMs": 123,
"periodEndEpochMs": 123,
"settledFeeAtoms": "<string>",
"source": "paid_fee_atoms",
"throughJournalSequence": 1,
"fillCount": 1,
"settledAtEpochMs": 123,
"acknowledgedShortfall": {
"journalSequences": [
123
],
"reason": "<string>"
}
}
],
"nextCursor": "<string>"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid"
}Get affiliate earnings for an account
Available only when the DB-backed affiliate-public runtime flag is enabled for this environment; otherwise the route is hidden with 404. Successful and hidden responses include x-edel-runtime-policy-version. Returns the settled affiliate periods paid to this account, newest first. A null affiliateId means the account is not a registered affiliate, which is a different answer from a registered affiliate with nothing settled yet. Amounts are atom strings only: a settlement record carries no asset scale, so no formatted decimal is emitted.
Method and path: GET /v1/accounts//affiliate/earnings
Authentication: DFNS trader bearer required.
Request schema: none.
Response schema: ExternalAffiliateEarningsResponse.
Error envelope: ExternalRestError (external-rest-error/v1).
A valid request URL is required to generate request examples{
"version": "external-affiliate-earnings/v1",
"accountId": "<string>",
"affiliateId": "<string>",
"settlements": [
{
"settlementId": "<string>",
"feeAsset": "<string>",
"periodStartEpochMs": 123,
"periodEndEpochMs": 123,
"settledFeeAtoms": "<string>",
"source": "paid_fee_atoms",
"throughJournalSequence": 1,
"fillCount": 1,
"settledAtEpochMs": 123,
"acknowledgedShortfall": {
"journalSequences": [
123
],
"reason": "<string>"
}
}
],
"nextCursor": "<string>"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid"
}{
"version": "external-rest-error/v1",
"requestId": "<string>",
"code": "invalid_request",
"safeMessage": "<string>",
"retryable": true,
"recoveryActions": [
"none"
],
"occurredAtEpochMs": 1,
"realtimeTicketFailure": "invalid"
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
1Query Parameters
Page size, from 1 to 100. Defaults to 50.
x <= 100Opaque cursor returned as nextCursor by the previous page.
1