List commission formulas
const url = 'https://example.com/api/v1/commission-formulas?page=1&per_page=10';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/commission-formulas?page=1&per_page=10' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ”Filter by commission formula IDs
Filter by customer IDs
Filter by partner IDs
Filter by workspace IDs
Filter formulas active at the given ISO 8601 date-time
Page number for pagination (default: 1)
Number of items per page for pagination (default: 10)
Responses
Section titled “ Responses ”OK
object
object
Unique identifier for the commission formula
ID of the partner this formula belongs to
ID of the customer this formula belongs to
ID of the workspace this formula belongs to
ID of the attribution schema this formula is associated with
Ordered list of events representing the lifecycle of this commission formula
object
Timestamp when the event occurred
object
ISO 4217 currency code (e.g. EUR, USD)
Name of the commission formula
Optional description of the commission formula
The AST expression defining the commission calculation
object
object
object
object
The AST expression defining the commission calculation
object
Name of the attribution attribute
The AST expression defining the commission calculation
object
Name of the property key in the attribution’s dynamic property bag
The AST expression defining the commission calculation
object
Updated expression formula (omit to leave unchanged)
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
Name of the attribution attribute
Updated expression formula (omit to leave unchanged)
object
Name of the property key in the attribution’s dynamic property bag
Updated expression formula (omit to leave unchanged)
object
object
object
object
object
object
object
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
object
object
object
object
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
Name of the attribution attribute
Updated expression formula (omit to leave unchanged)
object
Name of the property key in the attribution’s dynamic property bag
Updated expression formula (omit to leave unchanged)
object
object
object
object
object
object
object
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
Updated expression formula (omit to leave unchanged)
object
The AST expression defining the commission calculation
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
Name of the attribution attribute
Updated expression formula (omit to leave unchanged)
object
Name of the property key in the attribution’s dynamic property bag
Updated expression formula (omit to leave unchanged)
object
object
object
object
object
object
object
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
Updated expression formula (omit to leave unchanged)
object
The AST expression defining the commission calculation
object
Updated expression formula (omit to leave unchanged)
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
Name of the attribution attribute
Updated expression formula (omit to leave unchanged)
object
Name of the property key in the attribution’s dynamic property bag
Updated expression formula (omit to leave unchanged)
object
object
object
object
object
object
object
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
Updated expression formula (omit to leave unchanged)
object
Updated expression formula (omit to leave unchanged)
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
Name of the attribution attribute
Updated expression formula (omit to leave unchanged)
object
Name of the property key in the attribution’s dynamic property bag
Updated expression formula (omit to leave unchanged)
object
object
object
object
object
object
object
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
Updated expression formula (omit to leave unchanged)
object
Updated expression formula (omit to leave unchanged)
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
Name of the attribution attribute
Updated expression formula (omit to leave unchanged)
object
Name of the property key in the attribution’s dynamic property bag
Updated expression formula (omit to leave unchanged)
object
object
object
object
object
object
object
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
Updated expression formula (omit to leave unchanged)
object
Date and time from which this formula is active
Date and time until which this formula is active (null means no expiry)
object
Reason why the commission formula was cancelled
object
Updated name of the commission formula (null means unchanged)
Updated start date-time (null means unchanged)
Updated end date-time (null means unchanged; omitted field means unchanged, explicit null means cleared)
object
Current lifecycle status of the commission formula
Reason for cancellation, present only when status is ‘cancelled’
Name of the commission formula
Optional description of the commission formula
Updated expression formula (omit to leave unchanged)
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
Name of the attribution attribute
Updated expression formula (omit to leave unchanged)
object
Name of the property key in the attribution’s dynamic property bag
Updated expression formula (omit to leave unchanged)
object
object
object
object
object
object
object
object
object
object
object
Updated expression formula (omit to leave unchanged)
object
object
object
Updated expression formula (omit to leave unchanged)
object
Date and time from which this formula is active
Date and time until which this formula is active (null means no expiry)
Timestamp when the commission formula was created
Total number of commission formulas matching the query
Current page number
Number of commission formulas returned per page
Example
{ "commission_formulas": [ { "events": [ { "event": { "type": "create_commission_formula", "formula": { "type": "literal", "value": { "type": "number" } } } } ], "view": { "status": "active", "formula": { "type": "literal", "value": { "type": "number" } } } } ]}Unauthorized
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."}