Skip to content
Select theme
Light
Dark
Auto
Select language
English
فارسی

Settlement and payouts

Object

What the merchant is owed and what has already gone.

Money!

Settled and in the merchant’s bank. Historical, for reconciliation against their own statement.

Money!

Verified, not yet settled. What Shaparak or the facilitator is holding.

T+1 is the usual cycle, so this is roughly yesterday’s takings.

Money!

Taken but not yet verified — transactions in UNRESOLVED or still verifying.

Shown separately because it is not yet money: some of it will resolve to failed. A merchant treating it as income will be wrong by exactly the amount reconciliation is about to remove.

Money!

Refunds recorded and not yet discharged. Owed by the merchant, not to them.

DateTime

When the next payout is expected.

Money

No description.

Object

One settlement into the merchant’s account.

ID!

No description.

String

What the provider called it, for matching against a bank statement.

Money!

What actually arrived.

PayoutStatus!

No description.

BankAccount!

Where it went.

String!

Which provider settled it.

PayoutBreakdown!

What the payout is made of, in the order a merchant would check it.

gross less every deduction equals amount. Stated as an identity because it is the thing a merchant recomputes by hand, and a breakdown that does not add up is worse than none.

TransactionConnection!

The transactions this covers.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.

[PayoutRefund!]!

Each refund the provider took out of this payout — the way an Iranian provider gives a card payment back — as its report named them. They add up to breakdown.refunds. Empty when it took none.

String!

The business days it covers.

String!

No description.

DateTime

No description.

DateTime

No description.

String

Why it failed. Usually a closed or mistyped شبا.

Object

One line of a payout that is not a fee or a refund.

String!

What it is, in the provider’s own words where they gave any.

Money!

No description.

PayoutAdjustmentKind!

No description.

Enum

What kind of adjustment a payout carries.

ValueMeaning
REVERSALA previous payout that failed and is being re-sent.
CORRECTIONA correction from reconciliation.
HOLDMoney withheld pending a dispute.
RELEASEMoney released from a previous hold.
OTHERNo description.
Object

What a payout is made of.

Money!

Everything taken in the period, before anything is removed.

Money!

Shaparak’s per-transaction fee — کارمزد شاپرک.

Flat and small below a threshold, capped above it. Not the platform’s, and not the facilitator’s.

Money!

The facilitator’s or PSP’s own fee.

Money!

Kaladan’s commission, in PLATFORM mode.

Zero in OWN_GATEWAY mode, and shown as zero rather than omitted — a merchant on their own gateway should be able to see that the line exists and is empty.

Money!

Refunds given back through the gateway that the provider took out of this payout: the sum of Payout.refunds, each named. A refund comes out of the merchant’s share — never Kaladan’s commission or a partner’s — and Kaladan’s part of a refunded sale is Refund.commissionAdjustment, which is in no transfer. A refund made by hand is never taken out.

[PayoutAdjustment!]!

Anything else, itemized.

Money!

gross less every line above.

Object

A page of payouts.

[PayoutEdge!]!

No description.

[Payout!]!

No description.

PageInfo!

No description.

Int!

No description.

Money!

What these payouts add up to, across every page.

Object

One payout, with its cursor.

String!

No description.

Payout!

No description.

Input

A filter on the payout list.

[PayoutStatus!]

No description.

String

No description.

DateTime

No description.

DateTime

No description.

Object

One refund a provider took out of a payout.

Refund

The refund, matched on the provider’s own reference for it. Null for a deduction naming no refund this shop gave back through that provider — raised as an UNKNOWN_REFUND_DEDUCTION discrepancy, and counted all the same, because the money is gone from the payout either way.

String!

The provider’s own reference for the refund: what its support desk asks for.

Money!

What this payout gave up for it. A refund larger than one payout comes out of the next as well.

Enum

Where a payout stands.

ValueMeaning
SCHEDULEDExpected, not yet sent.
IN_TRANSITSent to the banking network. PAYA batches settle on the next cycle.
PAIDIn the merchant’s account.
FAILEDThe transfer failed. failureReason says why; usually a bad شبا.
ON_HOLDHeld by the provider or by Kaladan pending something.
CANCELLEDNo description.
Object

A provider’s own report for a period, as they sent it.

Kept verbatim alongside the platform’s interpretation, because when the two disagree the provider will only discuss their own file.

ID!

No description.

String!

No description.

String!

No description.

Money!

The provider’s totals, unmodified.

Int!

No description.

ReconciliationRun

The reconciliation run that consumed it, once one has.

URL

Where to download the file the provider sent.

DateTime!

No description.

Object

A page of settlement reports.

[SettlementReportEdge!]!

No description.

[SettlementReport!]!

No description.

PageInfo!

No description.

Object

One report, with its cursor.

String!

No description.

SettlementReport!

No description.