Payout batches
The payout_batch object
A payout batch pays many payees from one request. Each row becomes a payout to a connected account, sent through your own payout provider or paid by you by hand, and the batch reports their progress.
Attributes
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.kindstringRequiredKind of batch.
disbursementYour batch of payments to payees.
settlementA batch of payouts of merchant balances that Paycose assembles.
fundingstringRequiredWhere the batch's money comes from.
merchant_railPaid from your own payout provider account.
balancePaid from Paycose balances.
statusstringRequiredStatus of the batch, worked out from its payouts and rows.
awaiting_approvalCreated and waiting to be approved.
processingApproved; rows are still becoming payouts or payouts are still on their way.
completedEvery row became a payout and every payout was paid.
completed_with_failuresFinished, but some payouts failed or were canceled, or some rows could not be paid.
canceledCanceled before any of its payouts was approved, sent or paid.
emptyThe batch has no payouts and no rows.
application_country_idstringIdentifier of the country setup of your application that the batch belongs to.
accountstringID of the account (
acct_…) that owns the batch.currencystringRequiredThree-letter ISO 4217 currency code, in lowercase.
methodstringHow the batch's payouts are paid.
providerEach payout is sent through your payout provider.
manualYou pay each payee yourself and upload proof of each transfer.
providerstringPayout provider chosen when the batch was approved; omitted when none was chosen.
referencestringReference recorded when the batch was approved; omitted when none.
descriptionstringDescription given when the batch was created; omitted when empty.
purposestringWhether the batch's payouts also lower what you owe the connected accounts.
disbursementThe payouts do not change what you owe connected accounts.
owed_settlementEach payout also records a settlement that lowers what you owe the connected account.
row_countintegerRequiredNumber of rows sent when the batch was created.
rows_doneintegerRequiredNumber of rows finished: turned into a payout, or given up on.
rows_failedintegerRequiredNumber of rows given up on without a payout.
progressobjectRequiredCounts and totals of the batch's payouts by status.
Show child attributes
progress.scaling_factorintegerRequiredNumber of smallest units in one unit of the batch currency, for example
100for THB.progress.countintegerRequiredNumber of payouts in the batch.
progress.amountintegerRequiredSum of the payouts'
amount, in the currency's smallest unit.progress.net_amountintegerRequiredSum of the payouts'
net_amount, in the currency's smallest unit.progress.waitingintegerRequiredNumber of payouts still waiting for approval.
progress.blockedintegerRequiredNumber of waiting payouts whose last attempt failed; they wait until the batch is retried.
progress.in_flightintegerRequiredNumber of payouts approved and on their way (status
pendingorsent).progress.paidintegerRequiredNumber of paid payouts.
progress.paid_amountintegerRequiredSum of
net_amountover the paid payouts, in the currency's smallest unit.progress.failedintegerRequiredNumber of failed payouts.
progress.canceledintegerRequiredNumber of canceled payouts.
skippedarray of objectsRequiredRows that have not become payouts, with why; rows Paycose is still retrying are included.
Show child attributes
skipped.rowintegerNullableZero-based position of the line in the batch's rows. Omitted for entries that are not rows.
skipped.retryablebooleantruewhile Paycose will still try the line again on its own.skipped.attemptsintegerHow many times Paycose has tried to create a payout for the line.
skipped.application_country_idstringIdentifier of the country setup the skipped item belonged to. Set only on batches Paycose assembles itself.
skipped.accountstringID of the account the line was to pay.
skipped.payoutstringID of an existing payout the batch skipped, when the entry is a payout rather than a row.
skipped.currencystringThree-letter ISO 4217 currency code, in lowercase.
skipped.amountintegerAmount the line was to pay, in the currency's smallest unit (for example 49900 = 499.00 THB).
skipped.codestringError code of the last failure, for example
E4301, orcreate_failedwhen the failure had no code.skipped.reasonstringRequiredWhy the line did not become a payout.
skipped.retry_aftertimestampNullableWhen Paycose will next try the line, in Unix seconds. Set only while
retryableistrue.
created_bystringRequiredID of the user who created the batch, or
system.created_by_typestringRequiredKind of creator.
merchantCreated by you.
adminCreated by a Paycose operator.
systemCreated automatically by Paycose, such as by the daily automatic payout run.
approved_attimestampRequiredNullableUnix timestamp in seconds.
approved_bystringID of whoever approved the batch; omitted until it is approved. A batch you create is approved when it is created.
canceled_attimestampRequiredNullableUnix timestamp in seconds.
canceled_bystringID of whoever canceled the batch; omitted unless it was canceled.
cancel_reasonstringReason given when the batch was canceled; omitted when none.
createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.