Queue an export of the commission breakdown report
Queues a CSV export of the commission breakdown report to be generated asynchronously.
Query parameters
Filter results by the site they belong to
Restrict to items on or after this date.
Restrict to items on or before this date.
Restrict the report to a single practitioner. Deprecated: prefer earner_id + earner_type, which also cover items sold by a plain User under a sold attribution rate.
Restrict the report to a single earner (a Practitioner or User, per earner_type).
Restrict the report to earners of this type. Combine with earner_id to disambiguate an id that could otherwise refer to either a Practitioner or a User.
If true, email the completed CSV to the authenticated user when the background job finishes. Defaults to false, in which case the queued job's output URL must be polled via the queued-jobs endpoint.
Response
The job was successfully queued
Example response
{
"data": {
"created_at": "2023-11-07T00:00:00+00:00",
"updated_at": "2023-11-07T01:00:00+00:00"
}
}