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

Common

Object

A postal address in the buyer’s address book.

firstName/lastName are the recipient, who is frequently not the buyer. Sending to a relative is ordinary here, which is why an address book holds several names rather than one repeated.

ID!

No description.

String

A name the buyer gave this address — “خانه”, “محل کار”.

String!

Recipient’s given name — نام.

String!

Recipient’s family name — نام خانوادگی.

String!

Recipient’s mobile, 09xxxxxxxxx. How the courier reaches them.

String

A second number, when the buyer gave one.

String

The company, when delivery is to a business.

Province!

Province — استان.

City!

City — شهر.

String

District or neighbourhood — محله/منطقه.

String!

Street, alley, and everything before the building number — نشانی.

String

Building number — پلاک.

String

Unit or apartment — واحد.

String

Floor — طبقه.

String

Ten-digit postal code — کد پستی.

Float

Map pin latitude, when the buyer dropped one.

Float

Map pin longitude, when the buyer dropped one.

Boolean!

Whether this is the address checkout preselects.

[String!]!

The address composed into display lines, in the order Iranian addresses are written — province and city first, unit last.

Composed from the buyer’s own values only; no system text is added.

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

DateTime!

No description.

DateTime!

No description.

Object

A page of addresses.

[AddressEdge!]!

No description.

[Address!]!

No description.

PageInfo!

No description.

Int!

No description.

Object

One address, with its cursor.

String!

No description.

Address!

No description.

Input

An address as the buyer supplies it.

String

No description.

String!

No description.

String!

No description.

String!

No description.

String

No description.

String

No description.

String!

The province’s code, not its name.

String!

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

String

No description.

String!

No description.

String

No description.

String

No description.

String

No description.

String

No description.

Float

No description.

Float

No description.

Object

A key/value pair carried on an order.

String!

No description.

String

No description.

Object

A city or town — شهر.

ID!

No description.

String!

The stable code.

String!

The city’s name in the current locale.

Province!

No description.

Enum

The currencies a Kaladan shop can price in.

ValueMeaning
IRRIranian rial.
Scalar

An instant, RFC 3339, always UTC.

Never a Jalali date. The shop’s calendar is a presentation instruction and the conversion is the client’s last step before drawing a string.

Scalar

An exact decimal number, carried as a string. Money is never a float.

Scalar

A URL-safe identifier a merchant chooses and can change.

Interface

An object that can carry custom data.

Metafield

One metafield, or null when it is unset or not published.

ArgumentTypeMeaning
namespaceStringNo description.
keyString!No description.

[Metafield]!

Several at once. Positional: one entry per identifier, in the order asked, null where there is nothing to return.

ArgumentTypeMeaning
identifiers[MetafieldIdentifier!]!No description.
Object

An image held by the platform.

URL!

A URL for the image, transformed as asked.

Applied by the CDN and cached, so asking for the exact size you will render is cheaper than asking for the original.

ArgumentTypeMeaning
transformImageTransformNo description.

String

Alternative text, when the merchant wrote any.

String

A thumbhash: about thirty bytes of base64 that decode to a blurred stand-in.

Render it immediately, swap in the real image when it arrives.

String

The image’s dominant colour as #rrggbb, for a placeholder background.

Enum

Which part of an image survives a crop.

ValueMeaning
CENTERNo description.
TOPNo description.
BOTTOMNo description.
LEFTNo description.
RIGHTNo description.
Enum

An encoding an image can be served as.

ValueMeaning
WEBPNo description.
AVIFNo description.
JPGNo description.
PNGNo description.
Input

How to transform an image before serving it.

Int

No description.

Int

No description.

ImageCropRegion

No description.

Int

Multiply the requested size for a high-density display. 1, 2, or 3.

ImageFormat

Defaults to the best the requesting client accepts.

Int

Encoder quality, 1–100.

Scalar

An arbitrary JSON value.

Used only where the members genuinely depend on runtime data — a validation rule’s arguments, and nothing else on this surface.

Scalar

A BCP 47 language tag: fa-IR, en.

Object

A single piece of custom data attached to an object.

ID!

No description.

String!

No description.

String!

No description.

String!

The value’s type: single_line_text_field, number_integer, json, product_reference, and so on. Always read value through it.

String!

The value, always as a string, encoded per type.

For a reference type this is the target’s id — resolve it through the Storefront API.

DateTime!

No description.

Input

Names one metafield.

String

The owning app’s handle, or custom for the merchant’s own. Defaults to custom.

String!

No description.

Object

An amount in a currency.

Decimal!

The amount, in the currency’s canonical unit — rial, undivided.

Read into a decimal type, never a float. Divide for display; do not hard-code ten.

CurrencyCode!

No description.

Interface

An object with a globally unique, opaque id.

ID!

No description.

Object

Where one page sits in a collection. Cursor-based, never offset-based.

Boolean!

No description.

Boolean!

No description.

String

No description.

String

No description.

Object

An Iranian province — استان.

ID!

No description.

String!

The stable code. Never renumbered.

String!

The province’s name in the current locale.

Scalar

An absolute URL, including scheme.

Object

One reason a mutation declined.

code and params are the contract. message is English, for a developer reading logs; rendering it to a buyer ships an English sentence into a Persian account page.

UserErrorCode!

The rule that failed.

[String!]

The path to the offending value, as input-field segments.

Null when the failure is about the operation rather than one value.

JSON

The arguments of the rule that failed, keyed by constraint name.

{"maxLength": 80}, {"attemptsRemaining": 2}, {"retryAfterSeconds": 45}.

String!

English, for the developer. Never shown to a buyer, never parsed.

Enum

The failure catalogue.

One catalogue across every Kaladan surface — a code means the same thing here as in the Storefront API and in an RFC 7807 Violation. This enum lists only what this surface can return, so a generated client gets a precise switch. The three at the end appear nowhere else, because only here is there a credential to get wrong.

ValueMeaning
REQUIREDA required value was absent.
MIN_LENGTHA string was shorter than params.minLength.
MAX_LENGTHA string was longer than params.maxLength.
PATTERNA string did not match params.pattern.
OUT_OF_RANGEA value was outside params.minimum/params.maximum.
ENUMA value was not one of params.enum.
LIST_SIZEA list had fewer than params.minItems or more than params.maxItems.
INVALIDA value was syntactically wrong for its type — a malformed mobile number.
INCONSISTENTTwo values that must agree did not — a city outside its province.
NOT_FOUNDThe referenced object does not exist, or does not belong to this buyer.
FORBIDDENThe object exists but this token may not change it.
EXPIREDThe challenge, token, or request has expired.
INVALID_STATEThe operation cannot run in the object’s current state.
RATE_LIMITEDToo many attempts in too short a window; params.retryAfterSeconds says how long to wait.
IDEMPOTENCY_CONFLICTThe same idempotency key was replayed with different arguments.
OTP_INCORRECTThe code was wrong. params.attemptsRemaining says how many tries are left before the challenge is burned.
OTP_CONSUMEDThe challenge has been abandoned: too many wrong codes, or it was already used. Start a new one rather than retrying this.
NOT_VERIFIEDA verification this operation depends on has not happened — an unverified national identifier on an invoice profile, an unverified email.