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

Plans and platform

Object

An app in the Kaladan app store.

String!

No description.

String!

No description.

String!

No description.

String

No description.

String

No description.

URL

No description.

[URL!]!

No description.

[String!]!

No description.

[AccessScope!]!

What it will ask to read and write.

Shown before installing, not at the approval step. A merchant deciding between two apps should be able to see that one wants their customer list and the other does not.

String

What the developer says it costs, in their own words.

String

Where the developer says merchant data goes, if anywhere.

Int!

No description.

Float

No description.

Boolean!

No description.

Boolean!

Whether this shop’s plan permits installing it.

Enum

How long a term is.

ValueMeaning
MONTHLYNo description.
ANNUALAnnual, and what merchants here actually buy. Recurring card-on-file barely exists, so every term ends in an explicit payment. Twelve of those a year is twelve chances to lapse.
Object

Why a shop cannot move down to a plan.

DowngradeBlockerCode!

No description.

String

No description.

Int

What the target plan allows, and what the shop currently has.

Int

No description.

Enum

What can stop a downgrade.

ValueMeaning
QUOTA_EXCEEDEDMore of something than the target plan allows — staff, locations, products.
CAPABILITY_IN_USEA capability in use that the target plan does not include.
APP_INSTALLEDAn installed app the target plan does not permit.
Object

What the notification mutations return.

PlatformNotification

No description.

Int!

How many remain unread, for a badge that updates without refetching.

[UserError!]!

No description.

Enum

How much a notification matters.

ValueMeaning
INFOWorth knowing. A new feature, a theme update.
WARNINGWill become a problem. A renewal due, a certificate expiring.
CRITICALIs a problem now. An unfiled invoice past its deadline, a failed payout, a terminal that stopped verifying.
Object

What a shop can and cannot yet do, and why.

Int!

0–100. What a progress bar renders.

[OnboardingStep!]!

No description.

Boolean!

The four questions a merchant actually asks, answered directly.

Derived from the steps, because a merchant reading a checklist should not have to work out which items are the load-bearing ones.

Boolean!

Requires a verified terminal, which usually requires e-Namad.

Boolean!

Requires e-Namad. Torob will not crawl a shop without one.

Boolean!

Requires a Moadian memory-unit id and a valid certificate.

Object

What the onboarding mutations return.

Onboarding

No description.

[UserError!]!

No description.

Object

One thing a merchant has done, or has not.

OnboardingStepKey!

No description.

OnboardingStepStatus!

No description.

[OnboardingStepKey!]!

Steps that must be done first.

The reason this is a graph and not a list: applying for e-Namad before there is a published address and a working storefront is an application that gets rejected.

String

Where in the admin to go and do it — /settings/payments.

A path rather than a URL, so it works in the web admin and the mobile app alike.

DateTime

When it becomes urgent, for a step that has a deadline.

Only Moadian has one today, and it is the step merchants discover late.

Enum

What a shop still has to set up.

ValueMeaning
ADD_FIRST_PRODUCTNo description.
SET_SHIPPING_ZONENo description.
CONFIGURE_PAYMENT_METHODEnough to sell on cash-on-delivery or card-to-card alone.
CHOOSE_THEMENo description.
COMPLETE_CONTACT_DETAILSName, address and a working telephone number. A legal requirement here.
COMPLETE_BUSINESS_PROFILENo description.
APPLY_FOR_ENAMADGates online gateways and Torob both.
CONNECT_PAYMENT_TERMINALNo description.
CONNECT_CUSTOM_DOMAINNo description.
CONFIGURE_MOADIANWithout it, official invoices accrue as an obligation that cannot be met.
PUBLISH_POLICIESThe shop’s four policies — returns, shipping, privacy and terms, each a page with its Page.policyKind — all published. e-Namad’s reviewers read them. Done once the last is published, and open again when one is unpublished or deleted.
PLACE_TEST_ORDERDone by the shop’s first test order, placed with test mode on.
Enum

Where one setup step stands.

ValueMeaning
AVAILABLENot started, and nothing is stopping it.
BLOCKEDSomething earlier has to happen first. See blockedBy.
PENDINGStarted and awaiting somebody else — an e-Namad application, a Shahkar match.
DONENo description.
SKIPPEDExplicitly skipped by the merchant. Kept, so it stops being nagged about.
Object

One plan a shop can be on.

String!

No description.

String!

No description.

String

No description.

[PlanPrice!]!

What it costs, per interval.

Prepaid: there is no card on file on Iranian rails, so a plan is bought for a term and renewed by an explicit payment. ANNUAL is what merchants actually buy, for the same reason.

[ShopCapability!]!

What it switches on. The same values Shop.capabilities reports.

[PlanQuota!]!

The limits it carries, keyed by meter. Absent means uncapped.

Boolean!

Whether this is the shop’s current plan.

[DowngradeBlocker!]!

Whether the shop could move to it right now, and what stops them if not.

A merchant on a plan with four staff members cannot drop to one that allows two without removing somebody, and finding that out after paying is the worst possible moment.

Object

A plan’s price for one billing interval.

BillingInterval!

No description.

Money!

No description.

Money

What the same term would cost monthly, for showing the saving.

Object

One limit a plan carries.

String!

No description.

Int!

No description.

Int!

What the shop is using now, so a merchant can see whether they would fit.

Object

The electronic invoice Kaladan filed for one of its own invoices to the merchant.

Where it stands and the number the authority gave it — which a merchant’s accountant asks for to claim the VAT paid — and nothing of the filing itself.

PlatformElectronicInvoiceStatus!

No description.

String

شماره منحصر به فرد مالیاتی — the tax id سامانه مودیان assigned when it accepted the filing. Null until then.

MoadianInvoiceType!

نوع ۱ when the shop’s business profile names it — a company by its شناسه ملی or economic code, a person by their economic code — so the shop can claim the VAT it paid; نوع ۲, naming nobody, when it does not.

Decided when the filing is built, from the profile as it stood then.

DateTime!

The date of the sale it states: when the invoice was paid.

Enum

Where Kaladan’s electronic invoice for one of its invoices stands.

Three states, because the rest are Kaladan’s own business with the authority. A filing the authority refused is ISSUING until Kaladan corrects it: the merchant has nothing to do about it, and is not shown the refusal.

ValueMeaning
ISSUINGBeing filed: drafted, sent, or waiting on the authority’s answer.
ISSUEDAccepted by سامانه مودیان. taxId is set.
CANCELLEDWithdrawn after acceptance, by a cancellation filing.
Object

Kaladan’s invoice to the merchant: for the shop’s plan, or for an app’s charge.

Prices are before VAT. An invoice states the net — the price less any credit for a replaced term — the VAT on it at the rate in force when it was issued, and the total, which is what paying it charges.

ID!

No description.

String!

No description.

PlatformInvoiceKind!

What it buys: a term of the plan, a period of an app’s charge, SMS credit, or a theme.

[PlatformInvoiceLine!]!

What it bills, one line each, in order. Never empty.

Money!

The net: the plan’s price for the term, less any credit for the unused part of a replaced one, before VAT.

Not what is charged — that is totalAmount.

Float

The VAT rate the invoice charged, as a fraction: 0.1 for ten per cent.

Copied from the rate in force when the invoice was issued, and never changed afterwards — not by a new fiscal year’s rate, and not by paying late. Null on an invoice issued before Kaladan charged VAT, which charged none.

Money!

VAT on amount, rounded down to a whole rial. Zero on an invoice that charged none.

Money!

What the invoice charges: amount plus vatAmount.

What platformInvoicePay charges, and the only amount that settles the invoice: a payment of the net alone leaves it open.

PlatformInvoiceStatus!

No description.

String!

The name of what it bills: the plan’s, copied when the invoice was issued, or on an app charge’s invoice the app’s, as the merchant was shown it, and on a theme’s invoice the theme’s, as the store showed it. Empty on an SMS credit invoice, whose line says how many segments at what rate: the platform composes no name for it. lines says what exactly.

DateTime!

What it covers: the plan’s term, or the app charge’s period. A one-time charge buys no period, and neither does SMS credit or a theme, so on its invoice both ends are when the invoice was issued.

DateTime!

No description.

DateTime!

No description.

DateTime!

No description.

DateTime

No description.

URL

A PDF, once issued.

URL · Deprecated

The bank’s page for a payment of it already under way, or null.

Reading it starts nothing. It answers only while an attempt started by platformInvoicePay (or by the mutation that raised the invoice) waits at the bank for the payer: that attempt’s page, the same URL every time. Null when no attempt is waiting — none started yet, the last one refused or lapsed — once paid or void, and while a payment already made is still being confirmed, because paying again then is paying twice.

To send a merchant to pay, call platformInvoicePay.

PlatformElectronicInvoice

The electronic invoice Kaladan files for it with سامانه مودیان, with Kaladan as the seller and the shop as the buyer.

Kaladan’s tax record, not the shop’s: it is in none of the shop’s own moadianInvoices, and the shop files nothing for it. A paid invoice that charged VAT owes one; null until its filing is made, which follows payment within minutes, and on an invoice that charged no VAT.

Read from the tax filer. Null rather than an error when it does not answer, so an invoice page never fails for a filing the merchant has nothing to do about.

Object

A page of platform invoices.

[PlatformInvoiceEdge!]!

No description.

[PlatformInvoice!]!

No description.

PageInfo!

No description.

Int

How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.

Object

One platform invoice, with its cursor.

String!

No description.

PlatformInvoice!

No description.

Enum

What a platform invoice buys.

ValueMeaning
PLAN_RENEWALThe plan’s next term.
PLAN_CHANGEA move to another plan, net of the credit for what was left of the term.
APP_CHARGEAn app’s charge: its first period, or the whole of a one-time charge.
APP_CHARGE_RENEWALAn app charge’s next period. Left unpaid when the period ends it makes that charge past due, and nothing else.
SMS_CREDITPrepaid SMS credit. Paying it grants the credit and nothing else; left unpaid it lapses, and grants nothing.
THEMEA theme bought from the theme store. Paying it makes the theme the shop’s and does nothing else; left unpaid it lapses, and the purchase with it.
Object

One thing an invoice bills: a term of the plan, a period of an app’s charge, SMS credit, or a theme. What the electronic invoice Kaladan files states, line for line.

PlatformInvoiceLineKind!

No description.

String

The plan’s name, copied, on a plan line.

String

The app’s and the charge’s names, copied, on an app charge’s line.

String

No description.

ID

The charge it bills, on an app charge’s line: an InstalledAppCharge’s id.

Int

How many SMS segments it buys, on an SMS credit line.

Money

The rate per segment the credit was bought at, on an SMS credit line: copied when the purchase was made, so a later change of rate never reprices it.

String

The theme’s name as the store showed it, copied, on a theme line.

String

The theme’s handle, on a theme line.

BillingInterval

The term or period’s length. Null on a one-time charge.

DateTime

What it covers. Null on a one-time charge.

DateTime

No description.

Money!

The line’s net, before VAT, after its credit.

Money!

What came off the price before VAT: a plan change’s credit. Zero otherwise.

Money!

VAT on amount, rounded down to a whole rial.

Money!

amount plus vatAmount.

Enum

What one line of a platform invoice bills.

ValueMeaning
PLANA term of the shop’s plan.
APP_CHARGEA period of an app’s charge, or a one-time charge.
SMS_CREDITA purchase of SMS credit: smsSegments at smsRatePerSegment.
THEMEA theme bought from the theme store: themeName.
Object

What platformInvoicePay returns.

URL

Where to pay: the bank’s own page, through Kaladan’s terminal, and back to the invoice’s page in this admin when it is done. Null with a userError.

PlatformInvoice

The invoice, as it stands. Unpaid until the payment verifies.

[UserError!]!

No description.

Enum

Where a platform invoice stands.

ValueMeaning
OPENIssued and unpaid, before its due date.
PAIDNo description.
OVERDUEPast due. The shop keeps selling through its grace period.
VOIDWritten off, or superseded by a plan change.
Object

Something the platform is telling this merchant.

ID!

No description.

String!

What it is about. Map it to your own template and interpolate params.

moadian.deadline_approaching, certificate.expiring, subscription.renewal_due, payout.failed, terminal.verification_lost.

JSON

The values the template needs — {"daysRemaining": 12, "count": 34}.

Typed as JSON because the members belong to the code, which is exactly the case free-form JSON is for.

NotificationSeverity!

No description.

String

Where in the admin to act on it.

DateTime

When it stops being relevant, for a notification about a deadline.

DateTime

No description.

DateTime!

No description.

Object

A page of notifications.

[PlatformNotificationEdge!]!

No description.

[PlatformNotification!]!

No description.

PageInfo!

No description.

Int

How many match across every page — when this page is the whole result. Null otherwise: the service behind this list does not count, and a number made up here would be a wrong one that looks right.

Int!

No description.

Object

One notification, with its cursor.

String!

No description.

PlatformNotification!

No description.

Object

What subscriptionChange returns.

URL

Where to pay. The change takes effect when the payment verifies, not now.

Prepaid rails mean there is no “charge them and confirm” — there is the bank’s own page, a gateway, and the same verify-and-reconcile path every other payment on this platform takes. The page platformInvoicePay answers for the invoice — the same attempt, so paying through either is one payment — and null when the change cost nothing.

PlatformInvoice

The invoice raised for it.

Shop

The shop, unchanged until payment verifies.

Returned so a client can re-render without guessing that nothing moved yet.

[UserError!]!

No description.

Object

What changing plan would cost, before committing to it.

Prices are before VAT, and the merchant pays the VAT on top. The credit for the unused term comes off the price first, and VAT is charged on what is left: netAmount plus vatAmount is totalAmount, which is what paying charges.

Plan!

No description.

BillingInterval!

No description.

Money!

The plan’s full price for the term, before VAT.

Money!

Credit for the unused part of the current term, applied against it.

A merchant upgrading four months into an annual term has already paid for the eight months left, and should not pay for them twice; a platform that makes them is a platform they leave.

Money!

What the change costs before VAT: the price less the credit.

Not what is charged — that is totalAmount, with the VAT on top.

Float!

The VAT rate the change would be charged at, as a fraction: 0.1 for ten per cent.

The rate in force now, which Iran sets each fiscal year from 1 Farvardin. The invoice copies it when it is raised, so a quote read across a change of rate can differ from the invoice it leads to.

Money!

VAT on netAmount, rounded down to a whole rial.

Down rather than to the nearest, so the merchant is never charged a fraction of a rial more than the rate gives. Zero when the change costs nothing.

Money!

What they actually pay now: netAmount plus vatAmount.

Zero when the change costs nothing, and then nothing is raised and nothing is charged.

DateTime!

When the new term would end.

[ShopCapability!]!

What they would lose. Empty on an upgrade.

Named rather than merely counted, because “you will lose 2 capabilities” is not something anybody can act on.

[DowngradeBlocker!]!

No description.

Object

How a shop came to own a theme, or is coming to.

A free theme is taken, with no payment and no invoice (themeAcquire). A paid one is bought (themePurchase): Kaladan raises an invoice with VAT on top, and the theme is the shop’s once that invoice is paid — never before, and never twice.

ThemeAcquisitionStatus!

No description.

Money

What it was bought at, before VAT: the listing’s price when it was bought. Null on a free theme.

DateTime

When it became the shop’s. Null while it waits for payment.

DateTime!

No description.

Enum

Where a shop’s acquisition of a theme stands.

ValueMeaning
FREETaken free. The shop owns it.
AWAITING_PAYMENTBought, and its invoice is not yet paid. The theme can’t be installed yet. Left unpaid, the invoice lapses and the purchase with it.
PAIDBought and paid for. The shop owns it.
Object

A theme in the Kaladan theme store.

String!

No description.

String!

No description.

String!

No description.

String

No description.

URL

No description.

URL

A live preview of the theme on a demo shop.

Money

Free, or a one-off price. Themes are not subscriptions.

[String!]!

No description.

Int!

No description.

Float

No description.

Boolean!

Whether this shop has it installed: a storefront theme of this handle is among its themes, at any version.

Boolean!

Whether this shop may install it: taken free, or bought and paid for. A purchase covers every version of the theme, so upgrading costs nothing more.

ThemeAcquisition

This shop’s acquisition of it, when there is one: taken free, paid for, or bought and waiting for its invoice to be paid. Null when the shop has none, or when a purchase lapsed unpaid and nothing has replaced it.