List commissions
const url = 'https://example.com/api/v1/commissions?page=1&per_page=10&settlement_status=unsettled';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/commissions?page=1&per_page=10&settlement_status=unsettled' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Filter by commission IDs
Filter by partner IDs
Filter by attribution IDs
Filter by workspace IDs
Page number for pagination (default: 1)
Number of items per page for pagination (default: 10)
Filter by settlement status
Responses
Section titled “ Responses ”OK
object
object
Unique identifier for the commission
ID of the partner this commission belongs to
ID of the attribution that triggered this commission
ID of the customer this commission belongs to
ID of the commission formula used to compute this commission
ID of the workspace this commission belongs to
ISO 4217 currency code (e.g. EUR, USD)
Ordered list of events representing the lifecycle of this commission
object
Timestamp when the event occurred
object
Amount of the commission
object
The reason the commission was cancelled
object
The new cached commission amount
object
Timestamp when the commission was created
Cached total commission amount. Null until computed at least once.
Settlement state of the commission
Total number of commissions matching the query
Current page number
Number of items per page
Example
{ "commissions": [ { "events": [ { "event": { "type": "create_commission" } } ], "view": { "settlement_status": "unsettled" } } ]}Unauthorized
object
Example
{ "error_code": "UNAUTHORIZED", "message": "Authentication credentials were not provided or are invalid."}Forbidden
object
Example
{ "error_code": "UNAUTHORIZED", "message": "Authentication credentials were not provided or are invalid."}Internal Server Error
object
Example
{ "error_code": "UNAUTHORIZED", "message": "Authentication credentials were not provided or are invalid."}