Skip to main content
POST
Create a payout batch

Authorizations

x-api-key
string
header
required

Introw API key shown once when the credential is created.

Body

application/json
periodStart
string<date-time>
required

Start of the commission period the batch covers.

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))$
periodEnd
string<date-time>
required

End of the commission period the batch covers. Must be on or after periodStart.

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))$
partnerIds
string[]

Partners to open a draft payout for. Omit to create the batch empty and add partners later with POST /payouts.

Minimum string length: 1
attachPendingLines
boolean

Attach 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.

data
object
required