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

Payments

Object

A bank account money settles to.

ID!

No description.

String!

شبا — the 26-character IBAN: IR, two check digits, then the 22-digit account number. The check digits are part of the string a merchant is given and a validator that omits them refuses every real account.

Masked on read: it is enough, with a name, to attempt a transfer.

String

No description.

String

The name on the account, as the bank holds it.

VerificationState!

Whether the account holder’s name matches the merchant’s legal identity.

Checked against the business profile, not merely stored. A settlement account in somebody else’s name is the commonest shape of a takeover, and the commonest shape of an honest mistake.

Boolean!

No description.

DateTime!

No description.

Input

A settlement account.

String!

شبا — IR, two check digits, then 22 digits: 26 characters. Validated mod 97.

String!

No description.

Object

What the bank-account mutations return.

BankAccount

No description.

[UserError!]!

No description.

Enum

What becomes of Kaladan’s commission when a sale is refunded.

Every value is defensible and they are not equivalent — a merchant refunding ten per cent of their sales cares about this line more than about the rate itself, and a merchant who discovers the answer at the first refund will discover it as a grievance.

ValueMeaning
RETURNEDKaladan returns its share. The merchant is made whole. Cleanest to explain and the most expensive to run: the platform has already been settled and has to move money back out.
NETTEDKaladan keeps the cash and credits the merchant against future commission. Kaladan’s standard terms. No money moves, which is the point: clawing back a settled تسهیم share means an outbound transfer Kaladan has to initiate, per refund, on rails where that is slow and manual. Netting costs the merchant nothing unless they stop selling, at which point the credit strands — which is why unusedRefundCredit is readable and why a closing shop is told about it. Refund.commissionAdjustment makes each credit visible rather than a surprise.
KEPTKaladan keeps its share; the merchant bears it. Defensible — the platform did the work of taking the payment — and the one most likely to be read as unfair, so a merchant on these terms must be able to see the line on every refund. That is why commissionAdjustment is recorded even when it is zero to the merchant’s benefit.
Object

What Kaladan takes per sale, in PLATFORM mode.

Float!

As a fraction: 0.01 for one per cent.

Money

The most that can be taken from one sale, if capped.

Money

The least, if there is a floor.

BankAccount!

Where Kaladan’s share settles.

DateTime!

No description.

CommissionRefundPolicy!

What happens to Kaladan’s share when the sale is refunded.

Why it has to be stated. In PLATFORM mode Shaparak settles a sale in two directions at once — the merchant’s share to their شبا, Kaladan’s commission to Kaladan’s — and money never rests anywhere it could simply be clawed back from. When the buyer is owed everything back, somebody has to say whose money returns.

Kaladan’s standard terms are NETTED. It is per-merchant because it will differ by plan and by negotiation, but a merchant who is not told otherwise is on netting.

Money!

Commission credited by past refunds and not yet consumed, under NETTED.

Always zero under the other two policies. Surfaced because a credit a merchant cannot see is a credit they do not believe in — and because a merchant winding down needs to know what will strand when they stop selling.

Object

One thing the platform and the provider disagree about.

ID!

No description.

ReconciliationRun!

No description.

DiscrepancyKind!

No description.

Transaction

The platform’s record, when there is one.

JSON

The provider’s record, as they reported it.

Free-form because every provider’s report has a different shape, and normalizing it would lose the fields a merchant needs to quote back.

Money

No description.

DiscrepancyResolutionStatus!

No description.

DiscrepancyResolution

What was done about it.

AuditActor

No description.

DateTime

No description.

String

No description.

Refund

The refund discrepancyRefund raised: an UNCLAIMED_PAYMENT only.

Present from the moment the refund is asked for, so one still with the provider — the discrepancy stays INVESTIGATING until the money has gone back — or one the provider refused is read from the discrepancy it was meant to close. The latest, when somebody asked again after a refusal. Null after discrepancyResolve with REFUNDED, which records a refund made outside the platform and raises none.

DateTime!

No description.

Object

A page of discrepancies.

[DiscrepancyEdge!]!

No description.

[Discrepancy!]!

No description.

PageInfo!

No description.

Int!

How many match the filter, across every page — the same number on page one and on page five. Counted up to 10000: a larger result reads 10000, and a client showing it says “10000 or more”. Test rows are counted only where the list includes them.

Object

One discrepancy, with its cursor.

String!

No description.

Discrepancy!

No description.

Enum

What kind of disagreement this is.

ValueMeaning
MISSING_LOCALLYThe provider took money the platform has no record of. The expensive one. It is a paid order the merchant never saw, and it is what a lost callback plus a failed inquiry produces. Resolving it creates the transaction and the order moves to paid.
MISSING_AT_PROVIDERThe platform recorded a payment the provider does not report. Usually a transaction marked succeeded on a callback that was never verified — which is why verification is not optional.
AMOUNT_MISMATCHBoth have it; the amounts differ.
STATUS_MISMATCHBoth have it; one says paid and the other does not.
DUPLICATE_CAPTUREThe provider reports two captures for one authority. A double charge.
REFUND_MISMATCHA refund both sides hold and disagree about: payouts took more out for it than it gave back. Names the refund’s own transaction.
SPLIT_MISMATCHA split settled to an amount or a beneficiary that was not requested.
UNCLAIMED_PAYMENTA paid attempt nobody wrote a sale for. The checkout said a sale would claim the payment, the money arrived, and no sale ever did — usually a placement that failed after the buyer paid. The provider and the platform agree completely, so this is not a report to take to the provider: what is missing is the order. Resolving it is writing the sale down, or refunding the buyer: through the provider that took the money with discrepancyRefund, or outside the platform and recorded with discrepancyResolve as REFUNDED.
ATTRIBUTION_MISMATCHThe checkout the money was attributed to and the one the sale names disagree. Whether a commission was due is then a question about a client rather than about a payment, and it is not settled in favour of either: the money has already moved on one of them.
CLAIMED_AFTER_REFUNDA sale claimed a payment after it had been given back. An UNCLAIMED_PAYMENT was refunded through its provider and the sale it was for arrived afterwards — a buyer’s late return, a placement retried. The sale is bound to the payment all the same and the refund is given the sale, so the order reads paid and refunded, which is true. This is raised so that somebody looks before goods nobody has been paid for are sent: cancel the order, or collect the money again.
UNKNOWN_REFUND_DEDUCTIONA provider took money out of a payout for a refund that matches none this shop gave back through that provider. Counted in the payout’s refunds all the same — the money is gone from the transfer, and the payout adds up only with it. Ask the provider what it was, quoting providerRecord. Names no transaction: there is none here.
REFUND_NOT_DEDUCTEDA refund given back through a provider that no payout has taken out, a week after it went back. The buyer has the money and the merchant’s settlement has not yet shown it leaving, so a payout will be smaller than expected when it does — or the provider has lost it. amount is what is still to come out. Names the refund’s own transaction.
Object

What the reconciliation mutations return.

Discrepancy

No description.

[UserError!]!

No description.

Input

Why an unclaimed payment is being given back.

String!

Required: the refund’s note, and the discrepancy’s once the money has gone back. Money is never sent back without saying why.

Enum

What was done about a discrepancy.

ValueMeaning
RECORD_CORRECTEDThe platform’s record was created or corrected from the provider’s.
ORDER_SETTLEDThe order was marked paid and released.
REFUNDEDThe buyer was refunded — a double charge, usually. Given to discrepancyResolve, a refund made outside the platform — by hand, by bank transfer — on every kind, an UNCLAIMED_PAYMENT included: it is recorded, and no money moves. An unclaimed payment given back through its provider by discrepancyRefund is closed with this resolution too, once the provider says the money went back.
PROVIDER_DISPUTERaised with the provider; awaiting their answer.
IMMATERIALBelow the write-off threshold.
OTHERNo description.
Enum

Where a discrepancy stands.

ValueMeaning
OPENNo description.
INVESTIGATINGA person is looking at it.
RESOLVEDNo description.
WRITTEN_OFFJudged not worth chasing — a rounding difference under the threshold.
Input

How a discrepancy was settled.

DiscrepancyResolution!

No description.

String!

No description.

Object

A buyer’s claim to have transferred money — رسید کارت به کارت.

ID!

No description.

Order!

No description.

Image

The photo the buyer uploaded — فیش واریزی.

String

The transfer reference the buyer typed.

Money!

What the buyer says they sent.

DateTime

When the buyer says they sent it.

String

The last four of the card they say they sent from.

ReceiptStatus!

No description.

ReceiptVerification!

How it was checked, and what was found.

Transaction

The transaction created when it was approved. Null until then.

StaffMember

No description.

DateTime

No description.

ReceiptRejectionReason

Why it was rejected. The buyer is told this, so it has to be usable.

DateTime!

No description.

Object

A page of receipts.

[ManualReceiptEdge!]!

No description.

[ManualReceipt!]!

No description.

PageInfo!

No description.

Int!

How many match the filter, across every page — the same number on page one and on page five. Counted up to 10000: a larger result reads 10000, and a client showing it says “10000 or more”. Test rows are counted only where the list includes them.

Object

One receipt, with its cursor.

String!

No description.

ManualReceipt!

No description.

Object

What the receipt mutations return.

ManualReceipt

No description.

Order

No description.

Transaction

The transaction created on approval. Null on a rejection.

[UserError!]!

No description.

Object

The account a card-to-card buyer transfers to.

String!

The card number shown to the buyer, masked in this response.

String

The شبا, for a buyer transferring by IBAN instead.

String!

No description.

String

No description.

Input

The account a card-to-card buyer transfers to.

String

No description.

String

No description.

String!

No description.

String

No description.

Object

How this merchant gets paid.

One of two modes, chosen by the merchant and changeable. The distinction is not a setting — it decides whose terminal the money moves through, who is named as a beneficiary, and whether Kaladan takes anything at all.

PaymentMode!

No description.

[PaymentTerminal!]!

The gateway terminals this shop has, of both modes — each says which in mode.

PLATFORM terminals belong to Kaladan’s facilitator relationship. OWN_GATEWAY terminals are ones the merchant registered, and Kaladan holds no credential of its own for them. A payment goes through a terminal of the shop’s current mode and no other: a merchant’s own terminal registered and verified for a switch waits until the switch completes, and once it has, the old mode’s terminals take no new payment.

BankAccount

Where the merchant’s share settles — their شبا.

Required in both modes. In PLATFORM mode it is a beneficiary on every split; in OWN_GATEWAY mode it is what their own PSP already settles to, recorded here so payouts can be reconciled against it.

CommissionTerms

What Kaladan takes per sale. Null in OWN_GATEWAY mode, where it takes nothing.

[PaymentMethodConfiguration!]!

Which methods the merchant offers, and on what terms.

PaymentModeSwitch

A pending change of mode, if one is in flight.

Switching is an operation with its own state rather than a toggle: the new terminal has to be verified, and until it is, the old one must keep working. Null when none is: once a switch completes, mode is the one it asked for, and once it is cancelled, mode is what it was.

Object

What the payment-configuration mutations return.

PaymentConfiguration

No description.

[UserError!]!

No description.

Object

How one payment method is offered.

PaymentMethodType!

No description.

Boolean!

No description.

Money

What choosing it adds for the buyer — a cash-on-delivery charge, or a gateway fee passed to the payer rather than absorbed.

Money

Limits, where the method or the merchant sets them.

Money

No description.

[String!]!

Provinces this method is offered in. Empty means everywhere.

Cash on delivery is the reason: couriers will not collect cash everywhere, and offering it where it cannot be honoured produces an order the merchant has to cancel.

ManualTransferTarget

Where a card-to-card buyer is told to transfer.

Only for CARD_TO_CARD, and null otherwise.

Input

How a payment method is offered.

PaymentMethodType!

No description.

Boolean

No description.

MoneyInput

No description.

MoneyInput

No description.

MoneyInput

No description.

[String!]

Empty means everywhere. Set it for cash on delivery.

ManualTransferTargetInput

No description.

Enum

Whose terminal the money moves through.

Neither mode lets Kaladan hold merchant funds. In PLATFORM mode both parties are named as beneficiaries at payment time and Shaparak performs the split at settlement — تسهیم. Money never lands in a Kaladan account and is never redistributed from one. Collect-hold-remit is fund aggregation outside a Shaparak-approved account, which is prohibited outright.

ValueMeaning
PLATFORMKaladan’s licensed facilitator relationship. The merchant needs no gateway contract of their own, and frequently no e-Namad. Kaladan is a beneficiary on each split.
OWN_GATEWAYThe merchant’s own terminal. Everything settles to them and Kaladan takes nothing per sale — but still runs verification and reconciliation, which is the answer to “why route through you at all”.
Object

A change of payment mode, in flight.

It completes on its own once blockers is empty — when the new mode’s terminal is verified, or the last payment the old mode left unresolved is — and from that instant every new payment is the new mode’s: in OWN_GATEWAY no Kaladan beneficiary and no commission, in PLATFORM the commission in force. Until then the old mode’s terminals keep taking payments, and what is in flight on them finishes on them.

PaymentMode!

No description.

PaymentMode!

No description.

PaymentModeSwitchStatus!

AWAITING_MERCHANT or AWAITING_VERIFICATION while pending, read from blockers.

DateTime!

No description.

StaffMember

No description.

[PaymentModeSwitchBlocker!]!

What still has to happen before it can complete.

Int!

How many payments through the old mode’s terminals still need resolving — what UNRESOLVED_TRANSACTIONS waits on. The needsResolution transactions.

Enum

What is stopping a mode switch.

ValueMeaning
TERMINAL_MISSINGNo terminal registered for the target mode.
TERMINAL_UNVERIFIEDThe terminal is registered but the provider has not confirmed it.
SETTLEMENT_ACCOUNT_UNVERIFIEDNo settlement account, or its holder does not match the business profile.
BUSINESS_PROFILE_INCOMPLETEThe business profile lacks something the target mode requires.
UNRESOLVED_TRANSACTIONSMoney is still in flight on the old terminal. A switch cannot complete while a transaction is unresolved, because resolving it needs the terminal it was made on. unresolvedTransactions says how many.
SPLIT_PARTNERSThe shop names split partners, and a payment through its own gateway names nobody: they would go unpaid. Remove them first, deliberately. Raised for a switch to OWN_GATEWAY only.
COMMISSION_TERMS_MISSINGKaladan has recorded no commission terms for this shop’s plan, and in PLATFORM mode a sale through hosted checkout is refused without them. Raised for a switch to PLATFORM only, and Kaladan’s to clear.
Enum

Where a mode switch has got to.

ValueMeaning
AWAITING_MERCHANTWaiting on the merchant to supply something: a terminal, a key, an account.
AWAITING_VERIFICATIONWaiting on a provider or on Kaladan — an unresolved payment, commission terms.
COMPLETEDDone. The old terminal stops taking new payments; in-flight ones finish on it. Never on pendingModeSwitch, which is null once a switch is done.
CANCELLEDWithdrawn by paymentModeSwitchCancel. Never on pendingModeSwitch.
REJECTEDRefused by Kaladan. Nothing refuses one today.
Object

A provider this build can charge through, and what a terminal there needs and can do — read off the adapter that speaks to it.

String!

What a terminal names it by — zarinpal, sandbox. PaymentTerminalInput.provider takes this.

String!

Its display name.

Boolean!

Whether a terminal there is registered with a key, beside its merchant id. ZarinPal’s payment API, for one, authenticates by the merchant id alone, and takes none.

Boolean!

Whether it does تسهیم, which a terminal in PLATFORM mode needs.

Boolean!

Whether it gives money back through its own API at all.

Boolean!

No description.

Object

One gateway terminal a shop can charge through.

ID!

No description.

String!

The facilitator or PSP, by its PaymentProvider.key — zarinpal, sandbox. paymentProviders lists the ones this deployment can charge through.

String!

The provider’s display name, for an admin screen.

String!

The merchant id the provider issued — کد پذیرنده / merchant_id.

Masked on read. A terminal id is not a secret in the way a key is, but it is enough to impersonate a merchant to some providers’ support desks.

PaymentMode!

The mode it charges in. A merchant registers OWN_GATEWAY terminals; PLATFORM ones are Kaladan’s. See PaymentConfiguration.terminals.

PaymentTerminalStatus!

No description.

Boolean!

Whether a key is on file for it. A provider that takes no key — PaymentProvider.takesKey — has none. The key itself is never returned.

[PaymentMethodType!]!

Which methods this terminal can carry.

Boolean!

Whether the provider supports تسهیم on this terminal.

Boolean!

Whether refunds can be issued through the provider’s API at all.

Boolean!

Whether same-day settlement — تسویه آنی — is available.

Boolean!

Whether this is the terminal new payments use, for any method — primaryFor says which.

Exactly one terminal per method is primary, in each mode. The others are fallbacks, tried in order when the primary is not answering — which matters more here than elsewhere, because a single PSP being down for an hour is ordinary.

[PaymentMethodType!]!

The methods it is primary for. A terminal carrying two methods can be primary for one and a fallback for the other.

Int

Its place in its mode’s fallback sequence, from 1. Null for a terminal primary for every method it carries, and for one switched off.

DateTime

When the cool-down it is in ends: set exactly when status is UNAVAILABLE, null otherwise. Its provider failed to start a payment three times in a row, so checkout tries it after the shop’s other terminals until then, and in its place again afterwards — nothing switches it off, and the merchant is told once in the inbox.

DateTime

When its provider last accepted its credential.

String

Why the provider refused or revoked it, in their own words — what support will quote. Null once a check passes.

DateTime!

No description.

Input

A terminal the merchant is registering — always OWN_GATEWAY: it is the merchant’s own, whatever mode the shop is in today.

String!

A PaymentProvider.key. NOT_FOUND for one this build does not speak.

String!

The merchant id the provider issued — ZarinPal’s 36-character merchant_id.

String

The provider’s API key or secret, for a provider that takes one (PaymentProvider.takesKey): REQUIRED there, and INCONSISTENT for one that takes none.

Write-only: no field on this API returns it, and nothing here keeps it. It is filed with the platform’s secret holder, encrypted, under a reference only the payment service reads it by, at the moment of each call it authorizes. A merchant who loses it re-enters it with paymentTerminalKeySet.

[PaymentMethodType!]

No description.

Boolean

Make it primary for every method it carries, if its provider accepts it when it is registered. One its provider refuses is primary for nothing; once a check passes it takes any primary its mode has none for, and paymentTerminalSetPrimary makes it primary for the rest.

Object

What the terminal mutations return.

PaymentTerminal

No description.

[UserError!]!

No description.

Enum

Where a terminal stands.

ValueMeaning
PENDING_VERIFICATIONRegistered, or holding a credential its provider has not accepted — lastError says why, in the provider’s words. Carries no payment.
ACTIVEIts provider accepted its credential. With UNAVAILABLE, the only status that carries a payment.
UNAVAILABLEActive, and cooling down until coolingUntil: its provider failed to start a payment several times in a row, so payments try the shop’s other terminals first and this one after them. It is back in its place by itself when the cool-down ends, and may still be made primary, placed, checked or switched off as an active one.
DISABLEDSwitched off by the merchant.
REVOKEDThe provider revoked it. Needs the merchant’s attention, not a retry.
Input

How a receipt was judged.

MoneyInput

The amount actually credited, when it differs from what the buyer claimed.

String

No description.

ReceiptRejectionReason

Required on a rejection; the buyer is told it.

Boolean

No description.

Enum

Why a receipt was refused.

ValueMeaning
NOT_FOUNDNo transfer matching it could be found.
AMOUNT_MISMATCHA transfer was found, for a different amount.
ILLEGIBLEThe image is not a receipt, or cannot be read.
DUPLICATEThe same receipt was already used on another order.
WRONG_DESTINATIONThe transfer went somewhere that is not the merchant’s account.
OTHERNo description.
Object

How a receipt was checked.

ReceiptVerificationMethod!

No description.

Float

What an automated check found, when one ran.

Null when the check is manual, which is the norm today.

String

What the automated check matched against, when it matched something.

DateTime

No description.

Enum

How a receipt is checked.

ValueMeaning
MANUALA person looked at the photo. The norm, and the fraud-prone one.
AUTOMATEDMatched against the merchant’s own bank feed.
ASSISTEDAn automated check ran and was inconclusive; a person decided.
Object

One day’s comparison of the platform’s records against a provider’s.

ID!

No description.

String!

The day being reconciled, in the shop’s timezone.

String!

Which provider’s report this is against.

ReconciliationStatus!

No description.

Int!

No description.

Int!

No description.

Int!

No description.

Money!

What the platform thinks it took that day.

Money!

What the provider’s report says. The two agreeing is the point.

Money!

The gap. Zero on a clean run.

DiscrepancyConnection!

No description.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.

DateTime!

No description.

DateTime

No description.

String

Why the run itself failed — usually the provider’s report was not available.

Object

A page of reconciliation runs.

[ReconciliationRunEdge!]!

No description.

[ReconciliationRun!]!

No description.

PageInfo!

No description.

Object

One run, with its cursor.

String!

No description.

ReconciliationRun!

No description.

Enum

Where a reconciliation run got to.

ValueMeaning
PENDINGNo description.
RUNNINGNo description.
BALANCEDFinished with no discrepancies.
UNBALANCEDFinished with discrepancies outstanding.
RESOLVEDFinished; every discrepancy has been resolved.
FAILEDCould not run. The provider’s report was missing or unreadable.
Object

Somebody named to receive part of a payment.

ID!

Stable for as long as the beneficiary stays on the list. A splitBeneficiariesSet naming it by this id keeps it — the same id afterwards, and its شبا unless a new one is given — and only a write that leaves it out removes it.

On a SplitExecution the beneficiary is a copy made at request time, and its id names that copy rather than anybody on the standing list: sending it to splitBeneficiariesSet is NOT_FOUND.

String!

The شبا it settles to, masked.

Never returned whole, which is why a beneficiary kept by id keeps the شبا on file rather than being sent it again.

String!

No description.

SplitBeneficiaryRole!

What this beneficiary is — the merchant, Kaladan’s commission, a partner.

String

What the merchant called it, for a split they configured themselves.

SplitShare

What this beneficiary takes out of every sale.

Published so a standing list can be read back and written again without each share being stated from memory.

Null where no standing share applies: a MERCHANT takes the remainder, PLATFORM takes what the commission terms say, and on a SplitExecution the beneficiary is a copy made at request time, where SplitExecution.amount is what actually moved.

Input

A beneficiary the merchant wants on every split.

The list is replaced whole: one named by id is kept, one without is added, and one left out is removed.

ID

A beneficiary already on the list, by SplitBeneficiary.id. Kept rather than replaced: the same id afterwards, and its شبا on file unless iban gives a new one. Omit it for a new beneficiary.

NOT_FOUND for an id that is not one of this shop’s beneficiaries — removed since the list was read, or never on it — and INCONSISTENT for one id named twice in one write.

String

شبا — IR, two check digits, then 22 digits: 26 characters. Validated mod 97.

Required for a new beneficiary (REQUIRED). For one kept by id, omitted, null or blank keeps the شبا on file — the read publishes it masked, so nobody can send it back whole — and a value replaces it.

String!

No description.

String

No description.

Float

A fraction of each sale. Supply this or fixedAmount, not both.

MoneyInput

No description.

Enum

What a split beneficiary is.

ValueMeaning
MERCHANTThe merchant’s own share.
PLATFORMKaladan’s commission, in PLATFORM mode.
PARTNERSomebody the merchant added — a supplier, a partner, a marketplace seller.
Object

One beneficiary’s share of one transaction — تسهیم.

SplitBeneficiary!

Who received it.

Money!

No description.

SplitStatus!

No description.

DateTime

When Shaparak settled this share.

Object

What a beneficiary takes out of each sale — a fraction of it, or a flat amount.

One of the two is set and the other is null, which kind says without a client having to test for it. The same pair, in the same order, is what SplitBeneficiaryInput takes.

SplitShareKind!

Which of the two below carries the share.

Float

A fraction of what is left after the platform’s share. 0.1 is a tenth.

Null when kind is FIXED_AMOUNT. A fraction and not a percentage, as CommissionTerms.percent and BuyXGetY.getDiscountPercentage are.

Money

A flat amount out of every sale. Null when kind is RATIO.

Enum

How a beneficiary’s share is expressed.

ValueMeaning
RATIOA fraction of each sale — ratio carries it.
FIXED_AMOUNTA flat amount per sale — fixedAmount carries it.
Enum

Where one share of a split stands.

ValueMeaning
PENDINGNamed on the request; Shaparak has not settled yet.
SETTLEDNo description.
FAILEDThe provider rejected this beneficiary — usually a bad or closed شبا.
Object

One attempt to move money, and everything needed to find out what happened to it.

Richer than the OrderPayment that Order.payments lists: that is the fact, this is the record. A merchant looking at a payment that went wrong needs the authority token, the verification attempts, and the gateway’s own words.

ID!

No description.

Order

No description.

TransactionKind!

No description.

TransactionStatus!

No description.

PaymentMethodType!

No description.

Money!

No description.

PaymentTerminal

The terminal it went through. Null for cash and manual transfers.

String

No description.

String

The gateway’s own handle for this attempt — authority, token, refId.

What a verify or inquiry call is made with, and what the provider’s support desk asks for. Kept even on a failed attempt, because a failure that later turns out to have taken money is found by this.

String

The gateway’s reference number — شماره پیگیری.

String

The card network’s retrieval reference — شماره مرجع / RRN.

String

No description.

String

The issuing bank, derived from the card’s BIN.

[SplitExecution!]!

How the split was executed, when there was one.

Empty in OWN_GATEWAY mode and on any method that does not split.

Int!

How many times the platform has tried to verify or inquire.

Visible because a merchant chasing a stuck payment deserves to see that the platform is still trying, rather than being told nothing.

DateTime

No description.

String

The gateway’s own error, untranslated. It is what support will quote.

Transaction

The transaction this reverses, for a refund or a void.

Boolean!

Whether this was made in test mode.

DateTime!

No description.

DateTime

When the buyer came back from the gateway, if they did.

DateTime

When the platform confirmed it with the gateway. The only time that counts.

Object

A page of transactions.

[TransactionEdge!]!

No description.

[Transaction!]!

No description.

PageInfo!

No description.

Int!

How many match the filter, across every page — the same number on page one and on page five. Counted up to 10000: a larger result reads 10000, and a client showing it says “10000 or more”. Test rows are counted only where the list includes them.

Money!

What these transactions add up to, across every page.

Object

One transaction, with its cursor.

String!

No description.

Transaction!

No description.

Input

A filter on the transaction list.

[TransactionStatus!]

No description.

[TransactionKind!]

No description.

[PaymentMethodType!]

No description.

String

No description.

ID

No description.

DateTime

No description.

DateTime

No description.

Boolean

Transactions the reconciliation worker has not settled.

The queue that matters: UNRESOLVED, and anything stuck in VERIFYING or CALLBACK_RECEIVED past its window.

Boolean

No description.

Enum

What a transaction is doing.

ValueMeaning
SALEA charge, authorized and captured in one step. The Iranian default.
AUTHORIZATIONA hold without a capture. Rare here; few providers support it.
CAPTURETaking a previously authorized amount.
VOIDReleasing an authorization without taking it.
REFUNDGiving money back.
CASH_COLLECTIONCash handed to a courier, recorded when the courier settles.
MANUAL_TRANSFERA card-to-card transfer, recorded when its receipt is approved.
Object

What the transaction mutations return.

Transaction

No description.

Order

No description.

[UserError!]!

No description.

Enum

Where an attempt stands.

Two values matter most: SUCCEEDED, the only one that means paid, and UNRESOLVED, which is never a failure. Telling them apart is what this record is for.

ValueMeaning
INITIATEDCreated; the buyer has not been sent to the gateway yet.
REDIRECTEDThe buyer is at the gateway. Nothing is known.
CALLBACK_RECEIVEDThe buyer came back. The platform has not yet asked the gateway.
VERIFYINGA verify call is in flight.
SUCCEEDEDVerified with the gateway. The only status that means paid.
FAILEDThe gateway said no, or the buyer abandoned it.
CANCELLEDCancelled before anything moved.
UNRESOLVEDMoney is believed to have moved and the gateway has not confirmed which way — تراکنش نامشخص. The state a lost callback produces. The reconciliation worker owns it: it polls the gateway’s inquiry endpoint until it becomes SUCCEEDED or FAILED. An admin must never present this as failure. A merchant who refunds an unresolved transaction refunds money they may never have received, and a buyer told their payment failed pays twice.