List attributions
const url = 'https://example.com/api/v1/attributions?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/attributions?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 attribution IDs
Filter by partner IDs
Filter by workspace IDs
Page number for pagination (default: 1)
Number of items per page for pagination (default: 10)
Responses
Section titled “ Responses ”OK
object
object
Unique identifier of the attribution
ID of the partner associated with the attribution
ID of the customer associated with the attribution
ID of the attribution schema this attribution was validated against
object
Optional ID of the agent linked to this attribution
Ordered list of events representing the lifecycle of this attribution
object
Timestamp when the event occurred
object
Custom key-value properties attached to the attribution at creation
object
object
Reason why the attribution was cancelled
object
ID of the commission accrued from this attribution
object
Current lifecycle status of the attribution
Reason for cancellation, present only when status is ‘cancelled’
Custom properties attached to this attribution at creation time
object
Timestamp when the attribution was created
Total number of attributions matching the query
Current page number
Number of items per page
Example
{ "attributions": [ { "events": [ { "event": { "type": "create_attribution" } } ], "view": { "status": "confirmed" } } ]}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."}