Skip to main content
POST
Create a payout

Authorizations

x-api-key
string
header
required

Introw API key shown once when the credential is created.

Body

application/json
partnerId
string
required

Introw partner the payout is for.

Minimum string length: 1
periodStart
string<date-time>
required

Start of the commission period the payout 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 payout 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))$
batchId
string

Existing batch to open this payout on, so several partners share one payout run. The batch is one period by definition, so it dates the payout and periodStart/periodEnd are ignored. When omitted, the payout gets a batch of its own. A partner already on the batch returns their existing payout instead of a second one.

Minimum string length: 1
stage
enum<string>

Stage to open the payout in. Defaults to DRAFT, which is where the app creates one.

Available options:
DRAFT,
PENDING_REVIEW,
PENDING_INVOICE,
APPROVED,
SCHEDULED,
PENDING_PAYMENT,
PAID,
DECLINED,
POSTPONED,
BLOCKED,
FAILED
poNumber
string | null

Partner purchase order number.

metadata
string | null

Free-text block printed on the commission statement PDF, below the commission table.

Maximum string length: 2000
attachPendingLines
boolean

Attach the partner's pending commission lines whose period overlaps this one, the way creating a payout in the app does. Defaults to false, so the payout opens empty and you attach lines yourself with POST /commission-lines.

Response

Payout created successfully.

data
object
required