CRISP partners Endpoint reference Get referral earnings GET /v1/accounts/{externalUserId}/referral-earnings
Use this operation for get referral earnings. Follow the referrals and rewards guide for the complete workflow.
Referrals and rewards guide · All endpoints · SDK: getReferralEarnings
Server-to-server HMAC. Your key selects the partner; your backend must authorize the end user.
CRISP enables access to the features agreed for your integration. Contact CRISP if an enabled feature returns an access error.
Idempotency-Key: Not required by this operation . Signing and authentication →
Required means the field must be present. Nullable means an explicit JSON null is allowed; it does not mean optional.
Path parameters Field Type / presence Description and constraints externalUserIdstringRequired
Non-null
Your stable user ID within the authenticated partner. Derive it from your authorized server session.
Validation pattern ^[A-Za-z0-9._:@-]{1,200}$
Query parameters Field Type / presence Description and constraints fromstringOptional
Non-null
Format: date
tostringOptional
Non-null
Format: date
granularitystringOptional
Non-null
Allowed: "daily", "weekly", "monthly"
limitintegerOptional
Non-null
Maximum number of records requested in one page.
Default: 31
minimum: 1
maximum: 366
Header parameters No operation-specific headers. The HMAC headers above still apply.
JSON body No request body.
Illustrative identifiers only: replace them with resources from your integration. Keep credentials on your backend. HTTP placeholders must be signed ; the SDK signs automatically. Financial intent keys must be persisted and unique per new action.
HTTP SDK
GET /v1/accounts/user-123/referral-earnings?limit=31
Host : partner-api.crisp.trade
X-Crisp-Partner-Key : <server-key-id>
X-Crisp-Timestamp : <fresh-ISO-8601-UTC-timestamp>
X-Crisp-Nonce : <fresh-unique-nonce>
X-Crisp-Signature : <computed-base64-HMAC>
HTTP responses use the envelope below. SDK calls expose its payload as result.data, with HTTP status and request metadata on the SDK wrapper.
200 · Success Data payload Field Type / presence Description and constraints cadencestringRequired
Non-null
— fromstring | nullRequired
Nullable
Expand the structure below. from: expand fields tostring | nullRequired
Nullable
Expand the structure below. to: expand fields granularitystringRequired
Non-null
— earningsarray<object>Required
Non-null
Expand the structure below. earnings: expand item fields Field Type / presence Description and constraints feeDaystringRequired
Non-null
Format: date
accruedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$collectedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$feeDayConcludedbooleanRequired
Non-null
— claimableUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$claimobject | nullRequired
Nullable
Expand the structure below. claim: expand fields Field Type / presence Description and constraints idstringRequired
Non-null
Format: uuid
statestringRequired
Non-null
Allowed: "queued", "submitting", "submitted", "settled", "manual_review"
amountUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$totalAmountUsdcstringOptional
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$transactionHashstring | nullRequired
Nullable
Expand the structure below. transactionHash: expand fields
Additional fields are not allowed in this object.
Additional fields are not allowed in this object.
seriesarray<object>Required
Non-null
Expand the structure below. series: expand item fields Field Type / presence Description and constraints periodStartstringRequired
Non-null
Format: date
accruedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$collectedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$claimableUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$
Additional fields are not allowed in this object.
levelsarray<object>Required
Non-null
Expand the structure below. levels: expand item fields Field Type / presence Description and constraints levelintegerRequired
Non-null
minimum: 0
accruedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$
Additional fields are not allowed in this object.
claimEarningsarray<object>Required
Non-null
Expand the structure below. claimEarnings: expand item fields Field Type / presence Description and constraints feeDaystringRequired
Non-null
Format: date
accruedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$collectedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$feeDayConcludedbooleanRequired
Non-null
— claimableUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$claimobject | nullRequired
Nullable
Expand the structure below. claim: expand fields Field Type / presence Description and constraints idstringRequired
Non-null
Format: uuid
statestringRequired
Non-null
Allowed: "queued", "submitting", "submitted", "settled", "manual_review"
amountUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$totalAmountUsdcstringOptional
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$transactionHashstring | nullRequired
Nullable
Expand the structure below. transactionHash: expand fields
Additional fields are not allowed in this object.
Additional fields are not allowed in this object.
Additional fields are not allowed in this object.
Full HTTP envelope Field Type / presence Description and constraints dataobjectRequired
Non-null
Expand the structure below. data: expand fields Field Type / presence Description and constraints cadencestringRequired
Non-null
— fromstring | nullRequired
Nullable
Expand the structure below. from: expand fields tostring | nullRequired
Nullable
Expand the structure below. to: expand fields granularitystringRequired
Non-null
— earningsarray<object>Required
Non-null
Expand the structure below. earnings: expand item fields Field Type / presence Description and constraints feeDaystringRequired
Non-null
Format: date
accruedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$collectedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$feeDayConcludedbooleanRequired
Non-null
— claimableUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$claimobject | nullRequired
Nullable
Expand the structure below. claim: expand fields Field Type / presence Description and constraints idstringRequired
Non-null
Format: uuid
statestringRequired
Non-null
Allowed: "queued", "submitting", "submitted", "settled", "manual_review"
amountUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$totalAmountUsdcstringOptional
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$transactionHashstring | nullRequired
Nullable
Expand the structure below. transactionHash: expand fields
Additional fields are not allowed in this object.
Additional fields are not allowed in this object.
seriesarray<object>Required
Non-null
Expand the structure below. series: expand item fields Field Type / presence Description and constraints periodStartstringRequired
Non-null
Format: date
accruedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$collectedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$claimableUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$
Additional fields are not allowed in this object.
levelsarray<object>Required
Non-null
Expand the structure below. levels: expand item fields Field Type / presence Description and constraints levelintegerRequired
Non-null
minimum: 0
accruedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$
Additional fields are not allowed in this object.
claimEarningsarray<object>Required
Non-null
Expand the structure below. claimEarnings: expand item fields Field Type / presence Description and constraints feeDaystringRequired
Non-null
Format: date
accruedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$collectedUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$feeDayConcludedbooleanRequired
Non-null
— claimableUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$claimobject | nullRequired
Nullable
Expand the structure below. claim: expand fields Field Type / presence Description and constraints idstringRequired
Non-null
Format: uuid
statestringRequired
Non-null
Allowed: "queued", "submitting", "submitted", "settled", "manual_review"
amountUsdcstringRequired
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$totalAmountUsdcstringOptional
Non-null
Exact decimal string. Never use floating point for ledger arithmetic.
Validation pattern ^\d+(?:\.\d+)?$transactionHashstring | nullRequired
Nullable
Expand the structure below. transactionHash: expand fields
Additional fields are not allowed in this object.
Additional fields are not allowed in this object.
Additional fields are not allowed in this object.
requestIdstringRequired
Non-null
Request correlation ID for debugging and support.
Additional fields are not allowed in this object.
Schema illustration, not live account data. Null means unavailable or not applicable, never an invented zero. Empty arrays do not imply the endpoint always returns no results.
200 response JSON {
"data" : {
"cadence" : "example" ,
"from" : null ,
"to" : null ,
"granularity" : "example" ,
"earnings" : [],
"series" : [],
"levels" : [],
"claimEarnings" : []
},
"requestId" : "example-request-id"
}
Status Meaning 400Inspect error.code and retain the original financial intent. 401Inspect error.code and retain the original financial intent. 403Inspect error.code and retain the original financial intent. 404Not visible for this account. A recovery lookup miss is not proof that an in-flight submission failed. 409Inspect error.code and retain the original financial intent. 429Inspect error.code and retain the original financial intent. 500Inspect error.code and retain the original financial intent. 502Inspect error.code and retain the original financial intent. 503Inspect error.code and retain the original financial intent.
Inspect the error code and outcomeUnknown, not just the HTTP status. Preserve the original intent after financial uncertainty. Read-only retries should honor Retry-After. Recovery workflow →
Error response fields Field Type / presence Description and constraints errorobjectRequired
Non-null
Expand the structure below. error: expand fields Field Type / presence Description and constraints codestringRequired
Non-null
— messagestringRequired
Non-null
— requestIdstringRequired
Non-null
Request correlation ID for debugging and support.
Additional fields are not allowed in this object.
Additional fields are not allowed in this object.
OpenAPI download · Advanced schema and legacy anchor