Plans and platform
AppStoreListing
Section titled “AppStoreListing”An app in the Kaladan app store.
handle
Section titled “handle”String!
No description.
String!
No description.
publisherName
Section titled “publisherName”String!
No description.
tagline
Section titled “tagline”String
No description.
description
Section titled “description”String
No description.
iconUrl
Section titled “iconUrl”URL
No description.
screenshotUrls
Section titled “screenshotUrls”[URL!]!
No description.
categories
Section titled “categories”[String!]!
No description.
requestedScopes
Section titled “requestedScopes”[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.
pricingSummary
Section titled “pricingSummary”String
What the developer says it costs, in their own words.
dataHandlingDisclosure
Section titled “dataHandlingDisclosure”String
Where the developer says merchant data goes, if anywhere.
installCount
Section titled “installCount”Int!
No description.
ratingAverage
Section titled “ratingAverage”Float
No description.
isInstalled
Section titled “isInstalled”Boolean!
No description.
installable
Section titled “installable”Boolean!
Whether this shop’s plan permits installing it.
BillingInterval
Section titled “BillingInterval”How long a term is.
| Value | Meaning |
|---|---|
MONTHLY | No description. |
ANNUAL | Annual, 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. |
DowngradeBlocker
Section titled “DowngradeBlocker”Why a shop cannot move down to a plan.
DowngradeBlockerCode!
No description.
String
No description.
allowed
Section titled “allowed”Int
What the target plan allows, and what the shop currently has.
current
Section titled “current”Int
No description.
DowngradeBlockerCode
Section titled “DowngradeBlockerCode”What can stop a downgrade.
| Value | Meaning |
|---|---|
QUOTA_EXCEEDED | More of something than the target plan allows — staff, locations, products. |
CAPABILITY_IN_USE | A capability in use that the target plan does not include. |
APP_INSTALLED | An installed app the target plan does not permit. |
NotificationPayload
Section titled “NotificationPayload”What the notification mutations return.
notification
Section titled “notification”PlatformNotification
No description.
unreadCount
Section titled “unreadCount”Int!
How many remain unread, for a badge that updates without refetching.
userErrors
Section titled “userErrors”[UserError!]!
No description.
NotificationSeverity
Section titled “NotificationSeverity”How much a notification matters.
| Value | Meaning |
|---|---|
INFO | Worth knowing. A new feature, a theme update. |
WARNING | Will become a problem. A renewal due, a certificate expiring. |
CRITICAL | Is a problem now. An unfiled invoice past its deadline, a failed payout, a terminal that stopped verifying. |
Onboarding
Section titled “Onboarding”What a shop can and cannot yet do, and why.
progress
Section titled “progress”Int!
0–100. What a progress bar renders.
[OnboardingStep!]!
No description.
canSell
Section titled “canSell”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.
canAcceptOnlinePayment
Section titled “canAcceptOnlinePayment”Boolean!
Requires a verified terminal, which usually requires e-Namad.
canAppearOnTorob
Section titled “canAppearOnTorob”Boolean!
Requires e-Namad. Torob will not crawl a shop without one.
canIssueOfficialInvoice
Section titled “canIssueOfficialInvoice”Boolean!
Requires a Moadian memory-unit id and a valid certificate.
OnboardingPayload
Section titled “OnboardingPayload”What the onboarding mutations return.
onboarding
Section titled “onboarding”Onboarding
No description.
userErrors
Section titled “userErrors”[UserError!]!
No description.
OnboardingStep
Section titled “OnboardingStep”One thing a merchant has done, or has not.
OnboardingStepKey!
No description.
status
Section titled “status”OnboardingStepStatus!
No description.
blockedBy
Section titled “blockedBy”[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.
actionPath
Section titled “actionPath”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.
OnboardingStepKey
Section titled “OnboardingStepKey”What a shop still has to set up.
| Value | Meaning |
|---|---|
ADD_FIRST_PRODUCT | No description. |
SET_SHIPPING_ZONE | No description. |
CONFIGURE_PAYMENT_METHOD | Enough to sell on cash-on-delivery or card-to-card alone. |
CHOOSE_THEME | No description. |
COMPLETE_CONTACT_DETAILS | Name, address and a working telephone number. A legal requirement here. |
COMPLETE_BUSINESS_PROFILE | No description. |
APPLY_FOR_ENAMAD | Gates online gateways and Torob both. |
CONNECT_PAYMENT_TERMINAL | No description. |
CONNECT_CUSTOM_DOMAIN | No description. |
CONFIGURE_MOADIAN | Without it, official invoices accrue as an obligation that cannot be met. |
PUBLISH_POLICIES | The 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_ORDER | Done by the shop’s first test order, placed with test mode on. |
OnboardingStepStatus
Section titled “OnboardingStepStatus”Where one setup step stands.
| Value | Meaning |
|---|---|
AVAILABLE | Not started, and nothing is stopping it. |
BLOCKED | Something earlier has to happen first. See blockedBy. |
PENDING | Started and awaiting somebody else — an e-Namad application, a Shahkar match. |
DONE | No description. |
SKIPPED | Explicitly skipped by the merchant. Kept, so it stops being nagged about. |
One plan a shop can be on.
handle
Section titled “handle”String!
No description.
String!
No description.
description
Section titled “description”String
No description.
prices
Section titled “prices”[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.
capabilities
Section titled “capabilities”[ShopCapability!]!
What it switches on. The same values Shop.capabilities reports.
quotas
Section titled “quotas”[PlanQuota!]!
The limits it carries, keyed by meter. Absent means uncapped.
isCurrent
Section titled “isCurrent”Boolean!
Whether this is the shop’s current plan.
downgradeBlockers
Section titled “downgradeBlockers”[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.
PlanPrice
Section titled “PlanPrice”A plan’s price for one billing interval.
interval
Section titled “interval”BillingInterval!
No description.
amount
Section titled “amount”Money!
No description.
monthlyEquivalent
Section titled “monthlyEquivalent”Money
What the same term would cost monthly, for showing the saving.
PlanQuota
Section titled “PlanQuota”One limit a plan carries.
String!
No description.
Int!
No description.
currentUsage
Section titled “currentUsage”Int!
What the shop is using now, so a merchant can see whether they would fit.
PlatformElectronicInvoice
Section titled “PlatformElectronicInvoice”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.
status
Section titled “status”PlatformElectronicInvoiceStatus!
No description.
String
شماره منحصر به فرد مالیاتی — the tax id سامانه مودیان assigned when it accepted the filing. Null until then.
invoiceType
Section titled “invoiceType”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.
issuedAt
Section titled “issuedAt”DateTime!
The date of the sale it states: when the invoice was paid.
PlatformElectronicInvoiceStatus
Section titled “PlatformElectronicInvoiceStatus”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.
| Value | Meaning |
|---|---|
ISSUING | Being filed: drafted, sent, or waiting on the authority’s answer. |
ISSUED | Accepted by سامانه مودیان. taxId is set. |
CANCELLED | Withdrawn after acceptance, by a cancellation filing. |
PlatformInvoice
Section titled “PlatformInvoice”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.
number
Section titled “number”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.
amount
Section titled “amount”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.
vatRate
Section titled “vatRate”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.
vatAmount
Section titled “vatAmount”Money!
VAT on amount, rounded down to a whole rial. Zero on an invoice that charged
none.
totalAmount
Section titled “totalAmount”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.
status
Section titled “status”PlatformInvoiceStatus!
No description.
planName
Section titled “planName”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.
periodStart
Section titled “periodStart”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.
periodEnd
Section titled “periodEnd”DateTime!
No description.
issuedAt
Section titled “issuedAt”DateTime!
No description.
DateTime!
No description.
paidAt
Section titled “paidAt”DateTime
No description.
documentUrl
Section titled “documentUrl”URL
A PDF, once issued.
paymentUrl
Section titled “paymentUrl”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.
electronicInvoice
Section titled “electronicInvoice”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.
PlatformInvoiceConnection
Section titled “PlatformInvoiceConnection”A page of platform invoices.
[PlatformInvoiceEdge!]!
No description.
[PlatformInvoice!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”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.
PlatformInvoiceEdge
Section titled “PlatformInvoiceEdge”One platform invoice, with its cursor.
cursor
Section titled “cursor”String!
No description.
PlatformInvoice!
No description.
PlatformInvoiceKind
Section titled “PlatformInvoiceKind”What a platform invoice buys.
| Value | Meaning |
|---|---|
PLAN_RENEWAL | The plan’s next term. |
PLAN_CHANGE | A move to another plan, net of the credit for what was left of the term. |
APP_CHARGE | An app’s charge: its first period, or the whole of a one-time charge. |
APP_CHARGE_RENEWAL | An app charge’s next period. Left unpaid when the period ends it makes that charge past due, and nothing else. |
SMS_CREDIT | Prepaid SMS credit. Paying it grants the credit and nothing else; left unpaid it lapses, and grants nothing. |
THEME | A 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. |
PlatformInvoiceLine
Section titled “PlatformInvoiceLine”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.
planName
Section titled “planName”String
The plan’s name, copied, on a plan line.
appName
Section titled “appName”String
The app’s and the charge’s names, copied, on an app charge’s line.
chargeName
Section titled “chargeName”String
No description.
appChargeId
Section titled “appChargeId”ID
The charge it bills, on an app charge’s line: an InstalledAppCharge’s id.
smsSegments
Section titled “smsSegments”Int
How many SMS segments it buys, on an SMS credit line.
smsRatePerSegment
Section titled “smsRatePerSegment”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.
themeName
Section titled “themeName”String
The theme’s name as the store showed it, copied, on a theme line.
themeHandle
Section titled “themeHandle”String
The theme’s handle, on a theme line.
interval
Section titled “interval”BillingInterval
The term or period’s length. Null on a one-time charge.
periodStart
Section titled “periodStart”DateTime
What it covers. Null on a one-time charge.
periodEnd
Section titled “periodEnd”DateTime
No description.
amount
Section titled “amount”Money!
The line’s net, before VAT, after its credit.
credit
Section titled “credit”Money!
What came off the price before VAT: a plan change’s credit. Zero otherwise.
vatAmount
Section titled “vatAmount”Money!
VAT on amount, rounded down to a whole rial.
totalAmount
Section titled “totalAmount”Money!
amount plus vatAmount.
PlatformInvoiceLineKind
Section titled “PlatformInvoiceLineKind”What one line of a platform invoice bills.
| Value | Meaning |
|---|---|
PLAN | A term of the shop’s plan. |
APP_CHARGE | A period of an app’s charge, or a one-time charge. |
SMS_CREDIT | A purchase of SMS credit: smsSegments at smsRatePerSegment. |
THEME | A theme bought from the theme store: themeName. |
PlatformInvoicePayPayload
Section titled “PlatformInvoicePayPayload”What platformInvoicePay returns.
paymentUrl
Section titled “paymentUrl”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.
invoice
Section titled “invoice”PlatformInvoice
The invoice, as it stands. Unpaid until the payment verifies.
userErrors
Section titled “userErrors”[UserError!]!
No description.
PlatformInvoiceStatus
Section titled “PlatformInvoiceStatus”Where a platform invoice stands.
| Value | Meaning |
|---|---|
OPEN | Issued and unpaid, before its due date. |
PAID | No description. |
OVERDUE | Past due. The shop keeps selling through its grace period. |
VOID | Written off, or superseded by a plan change. |
PlatformNotification
Section titled “PlatformNotification”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.
params
Section titled “params”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.
severity
Section titled “severity”NotificationSeverity!
No description.
actionPath
Section titled “actionPath”String
Where in the admin to act on it.
expiresAt
Section titled “expiresAt”DateTime
When it stops being relevant, for a notification about a deadline.
readAt
Section titled “readAt”DateTime
No description.
createdAt
Section titled “createdAt”DateTime!
No description.
PlatformNotificationConnection
Section titled “PlatformNotificationConnection”A page of notifications.
[PlatformNotificationEdge!]!
No description.
[PlatformNotification!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”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.
unreadCount
Section titled “unreadCount”Int!
No description.
PlatformNotificationEdge
Section titled “PlatformNotificationEdge”One notification, with its cursor.
cursor
Section titled “cursor”String!
No description.
PlatformNotification!
No description.
SubscriptionChangePayload
Section titled “SubscriptionChangePayload”What subscriptionChange returns.
paymentUrl
Section titled “paymentUrl”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.
invoice
Section titled “invoice”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.
userErrors
Section titled “userErrors”[UserError!]!
No description.
SubscriptionQuote
Section titled “SubscriptionQuote”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.
targetPlan
Section titled “targetPlan”Plan!
No description.
interval
Section titled “interval”BillingInterval!
No description.
amount
Section titled “amount”Money!
The plan’s full price for the term, before VAT.
creditApplied
Section titled “creditApplied”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.
netAmount
Section titled “netAmount”Money!
What the change costs before VAT: the price less the credit.
Not what is charged — that is totalAmount, with the VAT on top.
vatRate
Section titled “vatRate”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.
vatAmount
Section titled “vatAmount”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.
totalAmount
Section titled “totalAmount”Money!
What they actually pay now: netAmount plus vatAmount.
Zero when the change costs nothing, and then nothing is raised and nothing is charged.
newPeriodEnd
Section titled “newPeriodEnd”DateTime!
When the new term would end.
capabilitiesLost
Section titled “capabilitiesLost”[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.
blockers
Section titled “blockers”[DowngradeBlocker!]!
No description.
ThemeAcquisition
Section titled “ThemeAcquisition”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.
status
Section titled “status”ThemeAcquisitionStatus!
No description.
Money
What it was bought at, before VAT: the listing’s price when it was bought. Null on a free theme.
ownedAt
Section titled “ownedAt”DateTime
When it became the shop’s. Null while it waits for payment.
createdAt
Section titled “createdAt”DateTime!
No description.
ThemeAcquisitionStatus
Section titled “ThemeAcquisitionStatus”Where a shop’s acquisition of a theme stands.
| Value | Meaning |
|---|---|
FREE | Taken free. The shop owns it. |
AWAITING_PAYMENT | Bought, and its invoice is not yet paid. The theme can’t be installed yet. Left unpaid, the invoice lapses and the purchase with it. |
PAID | Bought and paid for. The shop owns it. |
ThemeStoreListing
Section titled “ThemeStoreListing”A theme in the Kaladan theme store.
handle
Section titled “handle”String!
No description.
String!
No description.
publisherName
Section titled “publisherName”String!
No description.
description
Section titled “description”String
No description.
previewImageUrl
Section titled “previewImageUrl”URL
No description.
demoUrl
Section titled “demoUrl”URL
A live preview of the theme on a demo shop.
Money
Free, or a one-off price. Themes are not subscriptions.
capabilities
Section titled “capabilities”[String!]!
No description.
installCount
Section titled “installCount”Int!
No description.
ratingAverage
Section titled “ratingAverage”Float
No description.
isInstalled
Section titled “isInstalled”Boolean!
Whether this shop has it installed: a storefront theme of this handle is among its themes, at any version.
isOwned
Section titled “isOwned”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.
acquisition
Section titled “acquisition”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.