Settlement and payouts
MerchantBalance
Section titled “MerchantBalance”What the merchant is owed and what has already gone.
paidOut
Section titled “paidOut”Money!
Settled and in the merchant’s bank. Historical, for reconciliation against their own statement.
pending
Section titled “pending”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.
unverified
Section titled “unverified”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.
refundsOutstanding
Section titled “refundsOutstanding”Money!
Refunds recorded and not yet discharged. Owed by the merchant, not to them.
nextPayoutAt
Section titled “nextPayoutAt”DateTime
When the next payout is expected.
nextPayoutAmount
Section titled “nextPayoutAmount”Money
No description.
Payout
Section titled “Payout”One settlement into the merchant’s account.
ID!
No description.
reference
Section titled “reference”String
What the provider called it, for matching against a bank statement.
amount
Section titled “amount”Money!
What actually arrived.
status
Section titled “status”PayoutStatus!
No description.
destination
Section titled “destination”BankAccount!
Where it went.
provider
Section titled “provider”String!
Which provider settled it.
breakdown
Section titled “breakdown”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.
transactions
Section titled “transactions”TransactionConnection!
The transactions this covers.
| Argument | Type | Meaning |
|---|---|---|
first | Int | No description. |
after | String | No description. |
refunds
Section titled “refunds”[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.
periodStart
Section titled “periodStart”String!
The business days it covers.
periodEnd
Section titled “periodEnd”String!
No description.
scheduledFor
Section titled “scheduledFor”DateTime
No description.
settledAt
Section titled “settledAt”DateTime
No description.
failureReason
Section titled “failureReason”String
Why it failed. Usually a closed or mistyped شبا.
PayoutAdjustment
Section titled “PayoutAdjustment”One line of a payout that is not a fee or a refund.
description
Section titled “description”String!
What it is, in the provider’s own words where they gave any.
amount
Section titled “amount”Money!
No description.
PayoutAdjustmentKind!
No description.
PayoutAdjustmentKind
Section titled “PayoutAdjustmentKind”What kind of adjustment a payout carries.
| Value | Meaning |
|---|---|
REVERSAL | A previous payout that failed and is being re-sent. |
CORRECTION | A correction from reconciliation. |
HOLD | Money withheld pending a dispute. |
RELEASE | Money released from a previous hold. |
OTHER | No description. |
PayoutBreakdown
Section titled “PayoutBreakdown”What a payout is made of.
Money!
Everything taken in the period, before anything is removed.
networkFees
Section titled “networkFees”Money!
Shaparak’s per-transaction fee — کارمزد شاپرک.
Flat and small below a threshold, capped above it. Not the platform’s, and not the facilitator’s.
providerFees
Section titled “providerFees”Money!
The facilitator’s or PSP’s own fee.
platformCommission
Section titled “platformCommission”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.
refunds
Section titled “refunds”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.
adjustments
Section titled “adjustments”[PayoutAdjustment!]!
Anything else, itemized.
Money!
gross less every line above.
PayoutConnection
Section titled “PayoutConnection”A page of payouts.
[PayoutEdge!]!
No description.
[Payout!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int!
No description.
totalAmount
Section titled “totalAmount”Money!
What these payouts add up to, across every page.
PayoutEdge
Section titled “PayoutEdge”One payout, with its cursor.
cursor
Section titled “cursor”String!
No description.
Payout!
No description.
PayoutFilter
Section titled “PayoutFilter”A filter on the payout list.
status
Section titled “status”[PayoutStatus!]
No description.
provider
Section titled “provider”String
No description.
settledAfter
Section titled “settledAfter”DateTime
No description.
settledBefore
Section titled “settledBefore”DateTime
No description.
PayoutRefund
Section titled “PayoutRefund”One refund a provider took out of a payout.
refund
Section titled “refund”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.
reference
Section titled “reference”String!
The provider’s own reference for the refund: what its support desk asks for.
amount
Section titled “amount”Money!
What this payout gave up for it. A refund larger than one payout comes out of the next as well.
PayoutStatus
Section titled “PayoutStatus”Where a payout stands.
| Value | Meaning |
|---|---|
SCHEDULED | Expected, not yet sent. |
IN_TRANSIT | Sent to the banking network. PAYA batches settle on the next cycle. |
PAID | In the merchant’s account. |
FAILED | The transfer failed. failureReason says why; usually a bad شبا. |
ON_HOLD | Held by the provider or by Kaladan pending something. |
CANCELLED | No description. |
SettlementReport
Section titled “SettlementReport”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.
provider
Section titled “provider”String!
No description.
businessDate
Section titled “businessDate”String!
No description.
reportedTotal
Section titled “reportedTotal”Money!
The provider’s totals, unmodified.
reportedCount
Section titled “reportedCount”Int!
No description.
reconciliationRun
Section titled “reconciliationRun”ReconciliationRun
The reconciliation run that consumed it, once one has.
documentUrl
Section titled “documentUrl”URL
Where to download the file the provider sent.
receivedAt
Section titled “receivedAt”DateTime!
No description.
SettlementReportConnection
Section titled “SettlementReportConnection”A page of settlement reports.
[SettlementReportEdge!]!
No description.
[SettlementReport!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
SettlementReportEdge
Section titled “SettlementReportEdge”One report, with its cursor.
cursor
Section titled “cursor”String!
No description.
SettlementReport!
No description.