Shop
Address
Section titled “Address”A postal address, shaped the way Iranian addresses are actually written.
firstName/lastName are the recipient, who is frequently not the buyer:
sending to a relative is ordinary here, and a checkout that assumes otherwise
puts the wrong name on the parcel.
ID!
A globally unique, opaque identifier. Never parse or construct one.
firstName
Section titled “firstName”String!
Recipient’s given name — نام.
lastName
Section titled “lastName”String!
Recipient’s family name — نام خانوادگی.
String!
Recipient’s mobile, 09xxxxxxxxx.
Required: it is how the carrier reaches the recipient, and how delivery SMS is sent. A landline is not a substitute.
alternatePhone
Section titled “alternatePhone”String
A second number, if the merchant asked for one.
company
Section titled “company”String
The company, when delivery is to a business.
province
Section titled “province”Province!
Province — استان.
City!
City — شهر.
district
Section titled “district”String
District or neighbourhood — محله/منطقه. Free text; couriers rely on it.
addressLine
Section titled “addressLine”String!
Street, alley, and everything before the building number — نشانی.
One field rather than several, because an Iranian address is written as a narrowing sequence of place names, not as a numbered street line.
plaque
Section titled “plaque”String
Building number — پلاک.
String
Unit or apartment — واحد.
String
Floor — طبقه.
postalCode
Section titled “postalCode”String
Ten-digit postal code — کد پستی. Validated for shape, not for existence.
latitude
Section titled “latitude”Float
Map pin latitude, when the buyer dropped one.
longitude
Section titled “longitude”Float
Map pin longitude, when the buyer dropped one.
formatted
Section titled “formatted”[String!]!
The address composed into display lines, in the order Iranian addresses are written — province and city first, unit last.
Composed from the values above and nothing else: no system text is added, so the result carries no language of its own.
| Argument | Type | Meaning |
|---|---|---|
withName | Boolean · default false | No description. |
withPhone | Boolean · default false | No description. |
AddressInput
Section titled “AddressInput”An address as a client supplies it.
firstName
Section titled “firstName”String!
The recipient’s given name.
lastName
Section titled “lastName”String!
The recipient’s family name.
String!
A telephone number the courier can reach. Required: an Iranian delivery without one does not get made.
alternatePhone
Section titled “alternatePhone”String
A second number, for when the first does not answer.
company
Section titled “company”String
A company name, for a workplace delivery.
provinceCode
Section titled “provinceCode”String!
The province’s code from Query.provinces, not its name.
cityCode
Section titled “cityCode”String!
The city’s code from Query.cities, not its name. Must sit in provinceCode.
district
Section titled “district”String
محله. Free text, and what a courier actually navigates by.
addressLine
Section titled “addressLine”String!
The street and any further detail — خیابان, کوچه.
Everything a Persian address needs that is not already its own field. The building number and unit are separate on purpose; folding them in here is what makes an address undeliverable.
plaque
Section titled “plaque”String
پلاک — the building number.
String
واحد — the flat or unit number.
String
طبقه — the floor.
postalCode
Section titled “postalCode”String
کد پستی. Ten digits, no dash.
latitude
Section titled “latitude”Float
A dropped pin, when the buyer set one.
longitude
Section titled “longitude”Float
A dropped pin, when the buyer set one.
ObjectThe images and colours that make a storefront look like this merchant.
Image
The primary logo, for a header.
squareLogo
Section titled “squareLogo”Image
A square logo, for avatars, favicons, and share cards.
favicon
Section titled “favicon”Image
The browser favicon.
coverImage
Section titled “coverImage”Image
A wide image for a hero or a share card.
slogan
Section titled “slogan”String
A short tagline.
colors
Section titled “colors”BrandColors
The merchant’s chosen colours.
A theme applies these over its own defaults rather than hard-coding any colour, which is what lets one theme serve two merchants.
Named by role rather than by shade, and deliberately few: they are the smallest set every theme can be expected to honour. A theme with a richer palette maps these onto it — the platform does not dictate a storefront’s design system, because a storefront has to look like the merchant, not like Kaladan.
BrandColors
Section titled “BrandColors”A merchant’s colour choices, named by role.
primary
Section titled “primary”String
Primary action and brand colour, as #rrggbb.
accent
Section titled “accent”String
Accent colour for value and emphasis.
background
Section titled “background”String
Page background.
foreground
Section titled “foreground”String
Body text.
CalendarSystem
Section titled “CalendarSystem”How dates should be drawn.
| Value | Meaning |
|---|---|
JALALI | Jalali/Shamsi — هجری شمسی. The default, and what an Iranian buyer expects. |
GREGORIAN | No description. |
HIJRI | Hijri/Qamari — هجری قمری. Presented alongside Jalali for religious dates. |
A city or town — شهر.
ID!
A globally unique, opaque identifier. Never parse or construct one.
String!
The stable code to send back in an AddressInput.
String!
The city’s name in the current locale.
province
Section titled “province”Province!
The province it belongs to.
Domain
Section titled “Domain”One host that serves this shop.
String!
The hostname, without scheme or path.
URL!
The origin, with scheme.
sslEnabled
Section titled “sslEnabled”Boolean!
Whether TLS is live on this host.
Certificate issuance for a custom domain is asynchronous and can lag the DNS
change by minutes, so a freshly connected domain answers false for a while.
LocaleDefinition
Section titled “LocaleDefinition”One locale a shop publishes.
locale
Section titled “locale”Locale!
The BCP 47 tag.
String!
The language’s name in the current locale — “انگلیسی”.
endonym
Section titled “endonym”String!
The language’s name in itself — “English”, “فارسی”. Never translated.
primary
Section titled “primary”Boolean!
Whether this is the shop’s default.
direction
Section titled “direction”TextDirection!
Which way the script runs.
On the locale rather than inferred from the tag, because inferring it means every client ships its own list of RTL languages and one of them is wrong.
Localization
Section titled “Localization”What @inContext may be set to, and what it currently is.
locale
Section titled “locale”LocaleDefinition!
The locale this operation resolved in — the one @inContext asked for, or the
shop’s default when it asked for nothing or for something unpublished.
Echoed rather than assumed: a client that asked for en and got fa-IR needs
to know before it renders a left-to-right layout.
availableLocales
Section titled “availableLocales”[LocaleDefinition!]!
Every locale this shop publishes.
PaymentMethodType
Section titled “PaymentMethodType”How a buyer pays.
| Value | Meaning |
|---|---|
ONLINE_GATEWAY | A Shaparak-connected gateway, reached by redirect — درگاه پرداخت. |
CASH_ON_DELIVERY | Cash collected on delivery — پرداخت در محل. |
CARD_TO_CARD | A transfer to the merchant’s card or SHEBA, with a receipt uploaded — کارت به کارت. |
WALLET | Store credit or a gift card held by the platform — کیف پول. |
INSTALLMENT | A buy-now-pay-later or instalment provider — اقساطی. |
PaymentOption
Section titled “PaymentOption”A way a buyer can pay.
Enough to render a badge and set an expectation; nothing here initiates a
payment. The payment step happens in hosted checkout, behind cart.checkoutUrl.
method
Section titled “method”PaymentMethodType!
Which mechanism.
String
The brand to show — زرینپال, اسنپپی. Merchant and provider data, not a
system string, so it is safe to render as-is.
Image
The provider’s mark.
surcharge
Section titled “surcharge”Money
What choosing this method adds to the total, or null when it adds nothing.
Two things land here, and a buyer sees them as one number: a merchant’s own
cash-on-delivery charge — ordinary here — and a payer-borne gateway or
facilitator fee where the merchant has chosen fee_type = payer rather than
absorbing it.
It sits on the option rather than in CartCost because it is not knowable
until a method is chosen, and the method is chosen in hosted checkout. A cart
page that wants to show “پرداخت در محل (+۱۵٬۰۰۰ تومان)” reads it from here.
unavailableReason
Section titled “unavailableReason”PaymentUnavailableReason
Why this option is unavailable right now, or null when it is available.
Surfaced rather than simply omitted so a theme can explain a missing option — “پرداخت در محل برای این استان فعال نیست” reads far better than an option that silently vanishes between the product page and the cart.
PaymentUnavailableReason
Section titled “PaymentUnavailableReason”Why a payment option cannot be used.
| Value | Meaning |
|---|---|
REGION_NOT_SUPPORTED | Not offered where this cart is being delivered. |
AMOUNT_OUT_OF_RANGE | The cart’s total is outside the provider’s limits. |
MERCHANDISE_EXCLUDED | Something in the cart is excluded from this method. |
PROVIDER_UNAVAILABLE | The provider is not answering. Transient — retry later. |
DISABLED_BY_MERCHANT | The merchant has switched it off. |
Province
Section titled “Province”An Iranian province — استان.
ID!
A globally unique, opaque identifier. Never parse or construct one.
String!
The stable code to send back in an AddressInput. Never renumbered.
String!
The province’s name in the current locale.
ObjectThe shop this token belongs to.
There is exactly one, and it is not addressed by id: the storefront token names it, and a token can never reach another shop. That is the tenancy boundary of this whole API, and it is enforced before a query is parsed.
ID!
A globally unique, opaque identifier. Never parse or construct one.
String!
The merchant’s own name for the shop, as it should appear in a header.
handle
Section titled “handle”Handle!
The shop’s stable handle within Kaladan. Not the domain.
description
Section titled “description”String
A sentence about the shop, for a meta description or an about block.
primaryDomain
Section titled “primaryDomain”Domain!
The domain to build canonical URLs on.
A shop reachable at both shop.kaladan.store and shop.ir has one primary
domain and everything else redirects to it. Emitting links against anything
else splits the shop’s SEO between two hosts.
domains
Section titled “domains”[Domain!]!
Every domain that resolves to this shop, primary included.
Brand!
Logos, colours, and the images a theme needs to look like this merchant.
contact
Section titled “contact”ShopContact!
How to reach the shop — and a legal requirement, not a courtesy.
socialLinks
Section titled “socialLinks”[SocialLink!]!
Social and messaging profiles the merchant has published.
policies
Section titled “policies”[ShopPolicy!]!
The merchant’s published policies.
Returned as a list rather than as named fields because which policies a shop must publish is set by regulation, and a list absorbs a new one without an API version.
currencyCode
Section titled “currencyCode”CurrencyCode!
The currency every Money in this API is denominated in.
moneyPresentation
Section titled “moneyPresentation”MoneyPresentation!
How to render an amount. Read it once and build one formatter.
timezone
Section titled “timezone”String!
The IANA timezone the merchant operates in — Asia/Tehran.
calendar
Section titled “calendar”CalendarSystem!
The calendar dates should be presented in.
A presentation instruction only. Every DateTime on the wire is Gregorian UTC
regardless of what this says; converting is the client’s last step before
drawing a string.
paymentOptions
Section titled “paymentOptions”[PaymentOption!]!
What a buyer will be offered at checkout.
Surfaced on the shop, and again on the cart, because the two answer different questions: this one lets a theme show trust badges on a product page long before there is a cart. The cart’s list is the authoritative one — it accounts for what is actually in the basket.
trustCredentials
Section titled “trustCredentials”[TrustCredential!]!
Trust seals the shop has been granted — نماد اعتماد الکترونیکی, ساماندهی.
Iranian buyers look for these, gateways require them, and Torob will not crawl a shop without one. A theme should render every credential returned.
capabilities
Section titled “capabilities”[ShopCapability!]!
What this shop’s plan and configuration have switched on.
A theme branches on these to hide a feature rather than render one that will fail — a wishlist button on a plan without customer accounts is worse than no button.
metafield
Section titled “metafield”Metafield
One of this shop’s metafields, or null when it is unset or not published to the storefront — the two are deliberately indistinguishable.
| Argument | Type | Meaning |
|---|---|---|
namespace | String | The owning app, or custom for a merchant’s own. Defaults to custom. |
key | String! | The metafield’s key within its namespace. |
metafields
Section titled “metafields”[Metafield]!
Several of this shop’s metafields at once.
The result is positional: one entry per identifier, in the order asked, null where there is nothing to return.
| Argument | Type | Meaning |
|---|---|---|
identifiers | [MetafieldIdentifier!]! | The metafields to fetch. The result has one entry per identifier. |
ShopCapability
Section titled “ShopCapability”Something a theme can rely on being present.
Each maps to a plan entitlement or a merchant setting. Absent from the list means absent from the shop.
| Value | Meaning |
|---|---|
CUSTOMER_ACCOUNTS | Buyers can hold accounts and sign in. |
PRODUCT_REVIEWS | Buyers can leave product reviews. |
MULTI_LOCALE | More than one locale is published. |
DISCOUNT_CODES | Discount codes can be entered in the cart. |
GIFT_CARDS | Gift cards can be redeemed. |
INVENTORY_VISIBILITY | Stock counts may be shown to buyers. |
OFFICIAL_INVOICE | A buyer may request an official invoice — فاکتور رسمی. |
DELIVERY_SCHEDULING | Delivery can be scheduled to a chosen window. |
PICKUP_IN_STORE | Some stock is collectable in person. |
BUY_BUTTON | The shop’s catalogue may be embedded on other sites through a buy button. Not to be confused with the shop’s showcase, its free page on kaladan.shop, which is the Hub API’s, not this one’s. |
ShopContact
Section titled “ShopContact”How to reach the merchant.
Iranian e-commerce regulation requires a real address and a working telephone number to be published; a theme is expected to render them, not hide them in a footer link.
String
A telephone number, formatted as the merchant entered it.
mobile
Section titled “mobile”String
A second number — a mobile, or support out of hours.
String
An email address.
address
Section titled “address”Address
The registered business address.
supportHours
Section titled “supportHours”String
Free text: opening hours, how long a reply takes.
ShopPolicy
Section titled “ShopPolicy”A policy document the merchant publishes.
ID!
A globally unique, opaque identifier. Never parse or construct one.
ShopPolicyKind!
Which policy this is.
String!
The merchant’s title for it.
contentHtml
Section titled “contentHtml”HTML!
The policy text, sanitized.
handle
Section titled “handle”Handle!
The policy’s slug on this storefront.
updatedAt
Section titled “updatedAt”DateTime!
When the merchant last changed the text.
Worth rendering. A buyer disputing a return is arguing about the policy as it stood on the day they bought, and a policy with no date attached cannot be reasoned about at all.
ShopPolicyKind
Section titled “ShopPolicyKind”The policies a shop can publish.
| Value | Meaning |
|---|---|
RETURN | Returns and the statutory withdrawal window — شرایط مرجوعی. |
PRIVACY | Privacy — حریم خصوصی. |
TERMS | Terms of use — قوانین و مقررات. |
SHIPPING | Shipping and delivery — شیوه ارسال. |
PAYMENT | Payment terms — شیوه پرداخت. |
OTHER | Anything else the merchant chose to publish. |
SocialLink
Section titled “SocialLink”A profile the merchant maintains somewhere else.
platform
Section titled “platform”SocialPlatform!
Which service.
URL!
The profile or channel URL.
handle
Section titled “handle”String
The handle, without a leading @, when the platform has one.
SocialPlatform
Section titled “SocialPlatform”Where a merchant can publish a profile.
Weighted toward what Iranian merchants actually use: Instagram and Telegram carry the majority of social commerce, and Eitaa and Rubika are the domestic messengers that keep working when the international ones do not.
| Value | Meaning |
|---|---|
INSTAGRAM | No description. |
TELEGRAM | No description. |
BALE | No description. |
WHATSAPP | No description. |
EITAA | No description. |
RUBIKA | No description. |
APARAT | No description. |
LINKEDIN | No description. |
X | No description. |
YOUTUBE | No description. |
PINTEREST | No description. |
WEBSITE | No description. |
TextDirection
Section titled “TextDirection”Which way a script runs.
| Value | Meaning |
|---|---|
RTL | Right to left — Persian, Arabic. |
LTR | No description. |
TrustCredential
Section titled “TrustCredential”A certification the shop holds.
embedHtml exists because these seals are issued as vendor-supplied markup that
must be rendered verbatim to verify — e-Namad’s badge is a script that reports
the domain it loaded on. It is sanitized by the platform against an allowlist
that permits exactly the issuers’ own scripts, and nothing else in this API is
allowed to contain a script tag.
TrustCredentialKind!
Which body issued it.
holder
Section titled “holder”TrustCredentialHolder!
Whose credential this is.
A merchant selling under Kaladan’s own payment arrangement may have no e-Namad of their own and display the platform’s instead — which is legitimate, and which a theme must not present as the merchant’s. These seals are issued to a named business and bound to a domain; labelling one wrongly is a misrepresentation, not a styling detail.
String
The certificate number the issuer assigned.
badgeImage
Section titled “badgeImage”Image
The seal image, when the issuer provides one as an image.
verifyUrl
Section titled “verifyUrl”URL
Where a buyer can verify the seal on the issuer’s own site.
embedHtml
Section titled “embedHtml”HTML
The issuer’s verbatim badge markup. Render it; do not rewrite it.
expiresAt
Section titled “expiresAt”DateTime
When the certificate lapses, or null when the issuer sets no expiry.
TrustCredentialHolder
Section titled “TrustCredentialHolder”Whose credential a trust seal is.
| Value | Meaning |
|---|---|
SHOP | The merchant’s own, issued to their business and their domain. |
PLATFORM | Kaladan’s, covering merchants selling under the platform’s arrangement. |
TrustCredentialKind
Section titled “TrustCredentialKind”Who issued a trust credential.
| Value | Meaning |
|---|---|
ENAMAD | نماد اعتماد الکترونیکی — the e-commerce trust seal. |
SAMANDEHI | ساماندهی — content registration with the Ministry of Culture. |
GUILD | A union or guild membership — اتحادیه. |
OTHER | No description. |