Get a referrer's commission detail
curl --request GET \ --url 'https://example.com/api/v1/commissions/referrers/example?payment=paid&payout=paid' \ --header 'Authorization: Bearer <token>'Returns the full commission detail for a referrer client, including every commission record and computed totals. Callers without commissions.manage can only read the referrer client they are themselves linked to. payment (paid or unpaid: paid by the referred client, or not) and payout (paid or unpaid: paid out to the referrer, or still owed; rejected and not-counted commissions are left out) narrow the commission list; the totals always cover every commission.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Referrer Client identifier (CUID2).
Referrer Client identifier (CUID2).
Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”The referrer’s commission detail.
object
Full commission detail for a single referrer client, including every commission record.
object
A commission linking a referrer client to a system invoice or an external invoice.
object
The invoice this commission is against, and the only place its amount comes from. origin is SYSTEM for an invoice this workspace issued and EXTERNAL for one issued elsewhere; externalNumber and documentUrl carry the originating system’s number and a link to the real document.
object
object
Commission percentage of the invoice total.
The referrer Client that earns this commission.
object
object
Per-referrer percentage override. Null uses the workspace default.
Example
{ "data": { "commissions": [ { "reviewFlagReason": "REFUND" } ] }}Unauthorized.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Forbidden.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Not found.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Rate limit exceeded. Wait for Retry-After before retrying.
Standard error envelope.
object
object
Stable machine-readable error code.
Human-readable error message.
HTTP status code, mirrored in the body.
Example
{ "error": { "code": "UNAUTHORIZED" }}Headers
Section titled “Headers”Maximum requests in the current quota window.
Quota policy in requests and window seconds, for example 60;w=60.
Requests left in this quota window (zero when blocked).
Seconds until the current quota window resets, when available from the rate-limit store.
Seconds until another request may be attempted.
Chelsea is operated by Arepa Labs LLC