Queue an export of the commission report
Queues a CSV export of the commission report to be generated asynchronously.
Query parameters
Restrict the report to commission earned at the given site.
Restrict to commission earned on or after this date.
Restrict to commission earned on or before this date.
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"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.