Export a commission list
Queues an export of a commission list (items, payments, remittances, statements, suppliers, payees, payouts, commission invoices or earnings) as CSV, XLSX or PDF, with a preset or ad-hoc columns, or AGENCY: everything of the company in one ZIP archive, <company> commission <YYYY-MM-DD>.zip, with a CSV file of each list holding all of its columns (AGENCY takes nothing but its subject); and answers it QUEUED. A Rust worker pages through the rows and streams them to the file; GET the export until it is READY to receive a link that works for 15 minutes. The file is kept 7 days. Advisors export their own bookings and statements; agency admins and finance staff anything of the company (payees never with a legal name). Columns must belong to the subject (400), CSV holds 2,000,000 rows (so does each file of an archive), XLSX 1,048,575, PDF 10,000 and an archive 4 GiB (the export fails COMMISSION_EXPORT_TOO_LARGE past them). A company may have 3 exports queued or running, an archive counting as one (429 COMMISSION_RATE_LIMITED). The request and its filter are audited.
Authorization
Header parameters
Request body JSON required
One of the following:
- object
- object
- object
- object
- object
- object
- object
- object
- object
- object
Returns
200
OK
- createdAtstringrequiredformat: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$