Create a payout batch
Opens a payout run for one period and, optionally, a draft payout for each partner on it. A batch is what the Payouts page lists as a period: it holds one payout per partner, and each partner gets their own commission statement. Use it when a run covers several partners, so they stay one batch instead of one batch each. Pass partnerIds to open every partner’s payout in this call, or leave it out and add partners one at a time with POST /api/v1/payouts using the returned batch id. The payouts open empty unless attachPendingLines is set.
Authorizations
Introw API key shown once when the credential is created.
Body
Start of the commission period the batch covers.
^(?:(?:\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))$End of the commission period the batch covers. Must be on or after periodStart.
^(?:(?:\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))$Partners to open a draft payout for. Omit to create the batch empty and add partners later with POST /payouts.
1Attach each partner's pending commission lines whose period overlaps this one, the way creating a payout run in the app does. Defaults to false, so the payouts open empty and you attach lines yourself with POST /commission-lines.
Response
Payout batch created successfully.