Common
Address
Section titled “Address”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 — “خانه”, “محل کار”.
firstName
Section titled “firstName”String!
Recipient’s given name — نام.
lastName
Section titled “lastName”String!
Recipient’s family name — نام خانوادگی.
String!
Recipient’s mobile, 09xxxxxxxxx. How the courier reaches them.
alternatePhone
Section titled “alternatePhone”String
A second number, when the buyer gave 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 — محله/منطقه.
addressLine
Section titled “addressLine”String!
Street, alley, and everything before the building number — نشانی.
plaque
Section titled “plaque”String
Building number — پلاک.
String
Unit or apartment — واحد.
String
Floor — طبقه.
postalCode
Section titled “postalCode”String
Ten-digit postal code — کد پستی.
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.
isDefault
Section titled “isDefault”Boolean!
Whether this is the address checkout preselects.
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 buyer’s own values only; no system text is added.
| Argument | Type | Meaning |
|---|---|---|
withName | Boolean · default false | No description. |
withPhone | Boolean · default false | No description. |
createdAt
Section titled “createdAt”DateTime!
No description.
updatedAt
Section titled “updatedAt”DateTime!
No description.
AddressConnection
Section titled “AddressConnection”A page of addresses.
[AddressEdge!]!
No description.
[Address!]!
No description.
pageInfo
Section titled “pageInfo”PageInfo!
No description.
totalCount
Section titled “totalCount”Int!
No description.
AddressEdge
Section titled “AddressEdge”One address, with its cursor.
cursor
Section titled “cursor”String!
No description.
Address!
No description.
AddressInput
Section titled “AddressInput”An address as the buyer supplies it.
String
No description.
firstName
Section titled “firstName”String!
No description.
lastName
Section titled “lastName”String!
No description.
String!
No description.
alternatePhone
Section titled “alternatePhone”String
No description.
company
Section titled “company”String
No description.
provinceCode
Section titled “provinceCode”String!
The province’s code, not its name.
cityCode
Section titled “cityCode”String!
The city’s code, not its name. Must sit in provinceCode.
district
Section titled “district”String
No description.
addressLine
Section titled “addressLine”String!
No description.
plaque
Section titled “plaque”String
No description.
String
No description.
String
No description.
postalCode
Section titled “postalCode”String
No description.
latitude
Section titled “latitude”Float
No description.
longitude
Section titled “longitude”Float
No description.
Attribute
Section titled “Attribute”A key/value pair carried on an order.
String!
No description.
String
No description.
ObjectA city or town — شهر.
ID!
No description.
String!
The stable code.
String!
The city’s name in the current locale.
province
Section titled “province”Province!
No description.
CurrencyCode
Section titled “CurrencyCode”The currencies a Kaladan shop can price in.
| Value | Meaning |
|---|---|
IRR | Iranian rial. |
DateTime
Section titled “DateTime”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.
Decimal
Section titled “Decimal”An exact decimal number, carried as a string. Money is never a float.
Handle
Section titled “Handle”A URL-safe identifier a merchant chooses and can change.
HasMetafields
Section titled “HasMetafields”An object that can carry custom data.
metafield
Section titled “metafield”Metafield
One metafield, or null when it is unset or not published.
| Argument | Type | Meaning |
|---|---|---|
namespace | String | No description. |
key | String! | No description. |
metafields
Section titled “metafields”[Metafield]!
Several at once. Positional: one entry per identifier, in the order asked, null where there is nothing to return.
| Argument | Type | Meaning |
|---|---|---|
identifiers | [MetafieldIdentifier!]! | No description. |
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.
| Argument | Type | Meaning |
|---|---|---|
transform | ImageTransform | No description. |
String
Alternative text, when the merchant wrote any.
thumbhash
Section titled “thumbhash”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.
dominantColor
Section titled “dominantColor”String
The image’s dominant colour as #rrggbb, for a placeholder background.
ImageCropRegion
Section titled “ImageCropRegion”Which part of an image survives a crop.
| Value | Meaning |
|---|---|
CENTER | No description. |
TOP | No description. |
BOTTOM | No description. |
LEFT | No description. |
RIGHT | No description. |
ImageFormat
Section titled “ImageFormat”An encoding an image can be served as.
| Value | Meaning |
|---|---|
WEBP | No description. |
AVIF | No description. |
JPG | No description. |
PNG | No description. |
ImageTransform
Section titled “ImageTransform”How to transform an image before serving it.
maxWidth
Section titled “maxWidth”Int
No description.
maxHeight
Section titled “maxHeight”Int
No description.
ImageCropRegion
No description.
Int
Multiply the requested size for a high-density display. 1, 2, or 3.
format
Section titled “format”ImageFormat
Defaults to the best the requesting client accepts.
quality
Section titled “quality”Int
Encoder quality, 1–100.
ScalarAn arbitrary JSON value.
Used only where the members genuinely depend on runtime data — a validation rule’s arguments, and nothing else on this surface.
Locale
Section titled “Locale”A BCP 47 language tag: fa-IR, en.
Metafield
Section titled “Metafield”A single piece of custom data attached to an object.
ID!
No description.
namespace
Section titled “namespace”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.
updatedAt
Section titled “updatedAt”DateTime!
No description.
MetafieldIdentifier
Section titled “MetafieldIdentifier”Names one metafield.
namespace
Section titled “namespace”String
The owning app’s handle, or custom for the merchant’s own. Defaults to custom.
String!
No description.
ObjectAn amount in a currency.
amount
Section titled “amount”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
Section titled “currencyCode”CurrencyCode!
No description.
InterfaceAn object with a globally unique, opaque id.
ID!
No description.
PageInfo
Section titled “PageInfo”Where one page sits in a collection. Cursor-based, never offset-based.
hasNextPage
Section titled “hasNextPage”Boolean!
No description.
hasPreviousPage
Section titled “hasPreviousPage”Boolean!
No description.
startCursor
Section titled “startCursor”String
No description.
endCursor
Section titled “endCursor”String
No description.
Province
Section titled “Province”An Iranian province — استان.
ID!
No description.
String!
The stable code. Never renumbered.
String!
The province’s name in the current locale.
ScalarAn absolute URL, including scheme.
UserError
Section titled “UserError”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.
params
Section titled “params”JSON
The arguments of the rule that failed, keyed by constraint name.
{"maxLength": 80}, {"attemptsRemaining": 2}, {"retryAfterSeconds": 45}.
message
Section titled “message”String!
English, for the developer. Never shown to a buyer, never parsed.
UserErrorCode
Section titled “UserErrorCode”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.
| Value | Meaning |
|---|---|
REQUIRED | A required value was absent. |
MIN_LENGTH | A string was shorter than params.minLength. |
MAX_LENGTH | A string was longer than params.maxLength. |
PATTERN | A string did not match params.pattern. |
OUT_OF_RANGE | A value was outside params.minimum/params.maximum. |
ENUM | A value was not one of params.enum. |
LIST_SIZE | A list had fewer than params.minItems or more than params.maxItems. |
INVALID | A value was syntactically wrong for its type — a malformed mobile number. |
INCONSISTENT | Two values that must agree did not — a city outside its province. |
NOT_FOUND | The referenced object does not exist, or does not belong to this buyer. |
FORBIDDEN | The object exists but this token may not change it. |
EXPIRED | The challenge, token, or request has expired. |
INVALID_STATE | The operation cannot run in the object’s current state. |
RATE_LIMITED | Too many attempts in too short a window; params.retryAfterSeconds says how long to wait. |
IDEMPOTENCY_CONFLICT | The same idempotency key was replayed with different arguments. |
OTP_INCORRECT | The code was wrong. params.attemptsRemaining says how many tries are left before the challenge is burned. |
OTP_CONSUMED | The challenge has been abandoned: too many wrong codes, or it was already used. Start a new one rather than retrying this. |
NOT_VERIFIED | A verification this operation depends on has not happened — an unverified national identifier on an invoice profile, an unverified email. |