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

Shop

Object

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.

String!

Recipient’s given name — نام.

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.

String

A second number, if the merchant asked for one.

String

The company, when delivery is to a business.

Province!

Province — استان.

City!

City — شهر.

String

District or neighbourhood — محله/منطقه. Free text; couriers rely on it.

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.

String

Building number — پلاک.

String

Unit or apartment — واحد.

String

Floor — طبقه.

String

Ten-digit postal code — کد پستی. Validated for shape, not for existence.

Float

Map pin latitude, when the buyer dropped one.

Float

Map pin longitude, when the buyer dropped one.

[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.

ArgumentTypeMeaning
withNameBoolean · default falseNo description.
withPhoneBoolean · default falseNo description.
Input

An address as a client supplies it.

String!

The recipient’s given name.

String!

The recipient’s family name.

String!

A telephone number the courier can reach. Required: an Iranian delivery without one does not get made.

String

A second number, for when the first does not answer.

String

A company name, for a workplace delivery.

String!

The province’s code from Query.provinces, not its name.

String!

The city’s code from Query.cities, not its name. Must sit in provinceCode.

String

محله. Free text, and what a courier actually navigates by.

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.

String

پلاک — the building number.

String

واحد — the flat or unit number.

String

طبقه — the floor.

String

کد پستی. Ten digits, no dash.

Float

A dropped pin, when the buyer set one.

Float

A dropped pin, when the buyer set one.

Object

The images and colours that make a storefront look like this merchant.

Image

The primary logo, for a header.

Image

A square logo, for avatars, favicons, and share cards.

Image

The browser favicon.

Image

A wide image for a hero or a share card.

String

A short tagline.

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.

Object

A merchant’s colour choices, named by role.

String

Primary action and brand colour, as #rrggbb.

String

Accent colour for value and emphasis.

String

Page background.

String

Body text.

Enum

How dates should be drawn.

ValueMeaning
JALALIJalali/Shamsi — هجری شمسی. The default, and what an Iranian buyer expects.
GREGORIANNo description.
HIJRIHijri/Qamari — هجری قمری. Presented alongside Jalali for religious dates.
Object

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!

The province it belongs to.

Object

One host that serves this shop.

String!

The hostname, without scheme or path.

URL!

The origin, with scheme.

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.

Object

One locale a shop publishes.

Locale!

The BCP 47 tag.

String!

The language’s name in the current locale — “انگلیسی”.

String!

The language’s name in itself — “English”, “فارسی”. Never translated.

Boolean!

Whether this is the shop’s default.

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.

Object

What @inContext may be set to, and what it currently is.

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.

[LocaleDefinition!]!

Every locale this shop publishes.

Enum

How a buyer pays.

ValueMeaning
ONLINE_GATEWAYA Shaparak-connected gateway, reached by redirect — درگاه پرداخت.
CASH_ON_DELIVERYCash collected on delivery — پرداخت در محل.
CARD_TO_CARDA transfer to the merchant’s card or SHEBA, with a receipt uploaded — کارت به کارت.
WALLETStore credit or a gift card held by the platform — کیف پول.
INSTALLMENTA buy-now-pay-later or instalment provider — اقساطی.
Object

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.

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.

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.

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.

Enum

Why a payment option cannot be used.

ValueMeaning
REGION_NOT_SUPPORTEDNot offered where this cart is being delivered.
AMOUNT_OUT_OF_RANGEThe cart’s total is outside the provider’s limits.
MERCHANDISE_EXCLUDEDSomething in the cart is excluded from this method.
PROVIDER_UNAVAILABLEThe provider is not answering. Transient — retry later.
DISABLED_BY_MERCHANTThe merchant has switched it off.
Object

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.

Object

The 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!

The shop’s stable handle within Kaladan. Not the domain.

String

A sentence about the shop, for a meta description or an about block.

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.

[Domain!]!

Every domain that resolves to this shop, primary included.

Brand!

Logos, colours, and the images a theme needs to look like this merchant.

ShopContact!

How to reach the shop — and a legal requirement, not a courtesy.

[SocialLink!]!

Social and messaging profiles the merchant has published.

[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!

The currency every Money in this API is denominated in.

MoneyPresentation!

How to render an amount. Read it once and build one formatter.

String!

The IANA timezone the merchant operates in — Asia/Tehran.

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.

[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.

[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.

[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

One of this shop’s metafields, or null when it is unset or not published to the storefront — the two are deliberately indistinguishable.

ArgumentTypeMeaning
namespaceStringThe owning app, or custom for a merchant’s own. Defaults to custom.
keyString!The metafield’s key within its namespace.

[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.

ArgumentTypeMeaning
identifiers[MetafieldIdentifier!]!The metafields to fetch. The result has one entry per identifier.
Enum

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.

ValueMeaning
CUSTOMER_ACCOUNTSBuyers can hold accounts and sign in.
PRODUCT_REVIEWSBuyers can leave product reviews.
MULTI_LOCALEMore than one locale is published.
DISCOUNT_CODESDiscount codes can be entered in the cart.
GIFT_CARDSGift cards can be redeemed.
INVENTORY_VISIBILITYStock counts may be shown to buyers.
OFFICIAL_INVOICEA buyer may request an official invoice — فاکتور رسمی.
DELIVERY_SCHEDULINGDelivery can be scheduled to a chosen window.
PICKUP_IN_STORESome stock is collectable in person.
BUY_BUTTONThe 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.
Object

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.

String

A second number — a mobile, or support out of hours.

String

An email address.

Address

The registered business address.

String

Free text: opening hours, how long a reply takes.

Object

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.

HTML!

The policy text, sanitized.

Handle!

The policy’s slug on this storefront.

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.

Enum

The policies a shop can publish.

ValueMeaning
RETURNReturns and the statutory withdrawal window — شرایط مرجوعی.
PRIVACYPrivacy — حریم خصوصی.
TERMSTerms of use — قوانین و مقررات.
SHIPPINGShipping and delivery — شیوه ارسال.
PAYMENTPayment terms — شیوه پرداخت.
OTHERAnything else the merchant chose to publish.
Object

A profile the merchant maintains somewhere else.

SocialPlatform!

Which service.

URL!

The profile or channel URL.

String

The handle, without a leading @, when the platform has one.

Enum

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.

ValueMeaning
INSTAGRAMNo description.
TELEGRAMNo description.
BALENo description.
WHATSAPPNo description.
EITAANo description.
RUBIKANo description.
APARATNo description.
LINKEDINNo description.
XNo description.
YOUTUBENo description.
PINTERESTNo description.
WEBSITENo description.
Enum

Which way a script runs.

ValueMeaning
RTLRight to left — Persian, Arabic.
LTRNo description.
Object

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.

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.

Image

The seal image, when the issuer provides one as an image.

URL

Where a buyer can verify the seal on the issuer’s own site.

HTML

The issuer’s verbatim badge markup. Render it; do not rewrite it.

DateTime

When the certificate lapses, or null when the issuer sets no expiry.

Enum

Whose credential a trust seal is.

ValueMeaning
SHOPThe merchant’s own, issued to their business and their domain.
PLATFORMKaladan’s, covering merchants selling under the platform’s arrangement.
Enum

Who issued a trust credential.

ValueMeaning
ENAMADنماد اعتماد الکترونیکی — the e-commerce trust seal.
SAMANDEHIساماندهی — content registration with the Ministry of Culture.
GUILDA union or guild membership — اتحادیه.
OTHERNo description.