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

Common

Enum

The permission vocabulary, shared by staff roles and app tokens.

Write implies read for the same resource — WRITE_PRODUCTS alone satisfies a field requiring READ_PRODUCTS. Nothing implies anything across resources.

The vocabulary is complete ahead of the operations that use it, deliberately: a scope added later would leave every app already installed unable to use the new feature until its merchant approved it again.

ValueMeaning
READ_PRODUCTSNo description.
WRITE_PRODUCTSNo description.
READ_INVENTORYNo description.
WRITE_INVENTORYNo description.
READ_LOCATIONSNo description.
WRITE_LOCATIONSNo description.
READ_SHIPPINGNo description.
WRITE_SHIPPINGNo description.
READ_ORDERSNo description.
WRITE_ORDERSNo description.
READ_DRAFT_ORDERSNo description.
WRITE_DRAFT_ORDERSNo description.
READ_CHECKOUTSThe Checkout API: reading a checkout, and starting, filling and completing one. No Admin API field asks for either. They are here so that a merchant’s own checkout can be authorised exactly as Kaladan’s hosted checkout is — the same two words, with nothing the platform holds that a merchant cannot.
WRITE_CHECKOUTSNo description.
READ_FULFILLMENTSNo description.
WRITE_FULFILLMENTSNo description.
READ_CUSTOMERSNo description.
WRITE_CUSTOMERSNo description.
READ_DISCOUNTSNo description.
WRITE_DISCOUNTSNo description.
READ_PRICE_LISTSNo description.
WRITE_PRICE_LISTSNo description.
READ_PAYMENTSReading a transaction, a gateway configuration, or a card-to-card receipt. Separate from READ_PAYOUTS because seeing that an order was paid and seeing what the merchant nets after the platform’s split are different disclosures.
WRITE_PAYMENTSNo description.
READ_PAYOUTSSettlement records, split beneficiaries, and what the merchant actually receives.
WRITE_PAYOUTSNo description.
READ_CONTENTNo description.
WRITE_CONTENTNo description.
READ_THEMESNo description.
WRITE_THEMESNo description.
READ_CHANNELSNo description.
WRITE_CHANNELSNo description.
READ_MARKETINGNo description.
WRITE_MARKETINGNo description.
READ_METAOBJECTSNo description.
WRITE_METAOBJECTSNo description.
READ_FILESNo description.
WRITE_FILESNo description.
READ_TAXTax settings and سامانه مودیان invoices.
WRITE_TAXNo description.
READ_ANALYTICSNo description.
READ_SHOP_SETTINGSNo description.
WRITE_SHOP_SETTINGSNo description.
WRITE_BILLINGChanging the shop’s plan, and paying Kaladan. The one scope the Partner API’s enum does not contain, so no app can request it — there is no value for it to name. Money between Kaladan and the merchant is not the merchant’s commerce, and nothing installed should be able to move a shop onto a more expensive plan. This asymmetry is why the two enums are checked as Partner subset-of Admin rather than as equal.
READ_STAFFStaff, roles, and invitations. The scope that grants scopes.
WRITE_STAFFNo description.
READ_APPSNo description.
WRITE_APPSNo description.
READ_AUDIT_LOGThe audit log. Read-only and separately scoped, because the record of who did what is exactly what somebody covering their tracks would want.
Object

A key/value pair on an order, a line, or a draft.

String!

No description.

String

No description.

Input

A key/value pair as supplied.

String!

No description.

String

No description.

Object

Who took an action.

AuditActorKind!

No description.

ID

The staff member’s or app’s id. Null for the platform.

String!

A name for display — the staff member’s, or the app’s.

String

The operator behind an impersonated session, when there was one.

Impersonation is recorded as the merchant’s own action and names the operator, because a merchant reading their audit log must be able to see that support did this rather than one of their staff.

Enum

What kind of actor took an action.

ValueMeaning
STAFFNo description.
APPNo description.
OPERATORKaladan’s own staff, acting through support tooling.
SYSTEMThe platform itself — a scheduled job, a reconciliation worker.
Object

One privileged action, and who took it.

Read-only from every surface, including this one. An audit log a caller can write is not an audit log.

It exists for three readers who each need it for different reasons: a merchant asking which staff member discounted an order, support asking what an app changed before a shop broke, and the platform asking what an impersonating operator did.

ID!

No description.

String!

product.updated, staff.role_changed, payout.settings_changed.

AuditActor!

Who: a staff member, an app, or the platform itself.

Node

What was acted on. Null when the subject has since been deleted.

String!

No description.

ID!

No description.

JSON

What changed, field by field: {"price": {"from": "1200000", "to": "990000"}}.

Values are redacted where they would disclose more than the event does — a national identifier appears as changed, not as its old and new values.

String

The IP the action came from, where there was one.

String

The request id, tying this to the logs and the trace that produced it.

DateTime!

No description.

Enum

The currencies a Kaladan shop can price in.

ValueMeaning
IRRIranian rial.
Scalar

An instant, RFC 3339, always UTC. Jalali is presentation; see the API conventions.

Scalar

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

Object

A packed size, for carrier rating and for display.

Float!

No description.

Float!

No description.

Float!

No description.

LengthUnit!

No description.

Input

A packed size as supplied.

Float!

No description.

Float!

No description.

Float!

No description.

LengthUnit!

No description.

Object

A video hosted somewhere else and embedded — Aparat, YouTube.

ID!

No description.

String

No description.

MediaContentType!

No description.

Int!

No description.

Image

No description.

MediaStatus!

No description.

String

No description.

URL!

No description.

ExternalVideoHost!

No description.

Enum

Where an external video lives.

ValueMeaning
APARATIran’s own video platform, and the one that resolves during an international outage.
YOUTUBENo description.
VIMEONo description.
Object

A file in the shop’s library: one uploaded there, or one uploaded for a product’s gallery, a post or the shop’s brand.

Always public. A private file — an import spreadsheet, an export, a buyer’s receipt — is never a File here, by files or by node: it is reached through what owns it, under that owner’s scope, by a short-lived address (Job.resultUrl). So every url here serves the file to anybody holding it, which is what public means.

ID!

No description.

String!

What the merchant called it: the name given when it was made or renamed, else the name of the file uploaded. Empty when neither said.

String

What the file shows, in words, for somebody who cannot see it — what a screen reader says for a picture. Null when nobody wrote one.

The file’s own. A product’s photo is described in its gallery (productMediaUpdate), which is what a storefront reads for it.

String!

MIME type as declared at upload; never re-derived from the bytes.

Int!

Measured by the object store after upload, not taken from the client.

URL!

Where the file is served, to anybody with the address. Long-lived, and the address a gallery composes for the same file.

URL

An image’s address, transformed as asked — a thumbnail for a list. Applied by the CDN and cached, as Image.url is. Null for a file that is not an image.

ArgumentTypeMeaning
transformImageTransformNo description.

[FileUse!]!

What uses the file, as far as the platform can follow: a product whose gallery still holds the file and a post that still shows it, each asked about the files uploaded for it, and the shop’s logo, square logo, favicon or cover, asked about every file because a brand image may be any Image. A product’s photo that is also the cover is used twice. Empty when none does, and then fileDelete takes it.

Not followed: the file’s address pasted into a page’s, an article’s or a product’s text, a theme setting, a custom field naming the file, an article’s image. Nothing records those, so a file used by none of these may still be shown somewhere.

DateTime!

No description.

Input

A staged upload to make a library file of.

ID!

The reservation the bytes were put to.

String

What to call it. Unset takes the filename it was staged with. At most 255 characters, or MAX_LENGTH.

String

What it shows, for somebody who cannot see it. At most 512 characters.

Object

What fileCreate returns.

[File!]!

The files made, in the order their uploads were given.

[UserError!]!

Why an upload was not made a file, each pointed at its position in input.

Object

What fileDelete returns.

ID

No description.

[UserError!]!

No description.

Input

Which files a list returns.

[FileKind!]

Files of these kinds. Unset is every kind; an empty list is none.

Enum

What a file is, by the content type it was uploaded as.

ValueMeaning
IMAGEA picture: image/*.
VIDEOA video: video/*.
DOCUMENTA document — a PDF, a spreadsheet, text: application/* and text/*.
Object

What fileUpdate returns.

File

No description.

[UserError!]!

No description.

Input

What to change about a file. Unset or null leaves a field as it is.

String

A new name. Empty clears it. At most 255 characters, or MAX_LENGTH.

String

A new description. Empty clears it. At most 512 characters.

Object

One thing that uses a file.

FileUseKind!

No description.

Product

The product whose gallery holds the file, for PRODUCT_MEDIA.

Post

The post that shows the file, for POST.

Enum

What uses a file.

ValueMeaning
PRODUCT_MEDIAA photo in a product’s gallery.
POSTA photo in a post.
SHOP_BRANDThe shop’s logo, square logo, favicon or cover image.
Scalar

HTML sanitized by the platform: a closed tag set, no scripts, no handlers.

Scalar

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

Interface

An object that can carry custom data.

Metafield

No description.

ArgumentTypeMeaning
namespaceStringNo description.
keyString!No description.

[Metafield]!

Positional: one entry per identifier, null where there is nothing.

ArgumentTypeMeaning
identifiers[MetafieldIdentifier!]!No description.
Object

An image the platform holds, with transformation at read time.

ID!

No description.

String

No description.

MediaContentType!

No description.

Int!

No description.

Image

No description.

MediaStatus!

No description.

String

No description.

URL!

A URL for the image, transformed as asked. Applied by the CDN and cached.

ArgumentTypeMeaning
transformImageTransformNo description.

Int

No description.

Int

No description.

String

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

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

No description.

ImageFormat

No description.

Int

No description.

Scalar

An arbitrary JSON value, used only where the members depend on runtime data.

Object

Long-running work the platform is doing on the merchant’s behalf.

ID!

No description.

JobKind!

No description.

JobStatus!

No description.

Int

0–100 where the work can be counted, null where it cannot.

Int!

Rows, products, or invoices processed so far.

Int

The total, once known. Null while the input is still being read.

AccessScope

What the caller must hold to download this job’s result.

Derived from kind, and the reason Query.jobs can be unscoped without leaking: a CUSTOMER_IMPORT names READ_CUSTOMERS, an ORDER_EXPORT names READ_ORDERS. Null for a job whose output discloses nothing — MEDIA_PROCESSING.

Surfaced rather than left implicit because the check is dynamic and a static @scope on resultUrl cannot express it. A rule the schema states can be tested against; one it only implies gets built on a guess.

URL

Where to download the result — an export, or an import’s per-row error report.

Short-lived. Null until status is COMPLETED, and null for jobs that produce nothing to download.

Also null when the caller does not hold requiredScope. The file is the data: an order export read by a token holding no scopes is every buyer’s name, address and telephone number leaving through a URL. The job’s own row remains readable — progress and status disclose nothing — so an app can watch work it started finish without being able to read what it produced.

[JobError!]!

Row-level failures, capped. A partially successful import is the normal case, not an exception: one bad price in a thousand-row spreadsheet should not reject the spreadsheet.

Int

How long to wait before asking again, in seconds.

Null once the job is finished. A client polling a ten-minute import every second is a client the cost budget will stop, and this is how it learns to wait instead — the same job an HTTP Retry-After would have done.

DateTime!

No description.

DateTime

No description.

DateTime

No description.

Object

One row that could not be processed.

Int

Row number in the source, when the source has rows.

String

The identifier the row named, for finding it in the merchant’s own file.

UserErrorCode!

No description.

[String!]

No description.

JSON

No description.

String!

No description.

Enum

What a job is doing.

ValueMeaning
PRODUCT_IMPORTNo description.
PRODUCT_EXPORTNo description.
INVENTORY_IMPORTNo description.
CUSTOMER_IMPORTNo description.
ORDER_EXPORTNo description.
PRICE_UPDATENo description.
FEED_GENERATIONNo description.
MOADIAN_SUBMISSIONNo description.
MEDIA_PROCESSINGNo description.
REPORT_EXPORTA report written to a file by reportExportStart: every row of its whole period. Its file needs READ_ANALYTICS.
REPORT_SENDA saved report sent now by savedReportSendNow, to its own recipients. It produces no file: resultUrl is always null.
Enum

Where a job has got to.

ValueMeaning
QUEUEDNo description.
RUNNINGNo description.
COMPLETEDFinished. errors may still be non-empty — see JobError.
FAILEDCould not run at all. Nothing was applied.
CANCELLEDNo description.
Enum

Units a dimension can be given in.

ValueMeaning
MILLIMETERNo description.
CENTIMETERNo description.
METERNo description.
Scalar

A BCP 47 language tag.

Interface

Anything that can appear in a product gallery.

The same interface the Storefront API declares, so an app moving between the two does not meet two different models of one idea. What this one adds is status and errorMessage: the storefront only ever serves media that is ready, and an admin has to render the minute before that.

ID!

No description.

String

Alternative text. Persian, and the merchant’s own.

MediaContentType!

What kind of media this is, so a gallery can branch before selecting.

Int!

Order within its product’s gallery.

Image

A still to show before the media itself loads or plays.

MediaStatus!

Where processing has got to.

An upload is usable at READY. An admin that renders a PROCESSING item as broken is an admin that flickers on every save.

String

Why processing failed, when it did.

Enum

What kind of media an object is.

ValueMeaning
IMAGENo description.
VIDEONo description.
EXTERNAL_VIDEONo description.
MODEL_3DNo description.
Enum

Where media processing has got to.

ValueMeaning
UPLOADINGNo description.
PROCESSINGNo description.
READYNo description.
FAILEDNo description.
Object

One value attached to one object.

ID!

No description.

String!

No description.

String!

No description.

String!

No description.

String!

Always a string, encoded per type.

MetafieldDefinition

No description.

Node

The object a reference type points at, resolved. Null otherwise.

DateTime!

No description.

Object

The shape of a metafield, and who may see it.

ID!

No description.

String!

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

String!

No description.

String!

What the merchant sees in the admin.

String

No description.

MetafieldOwnerType!

No description.

String!

single_line_text_field, number_integer, json, product_reference, list.product_reference, and the rest. Fixed once created: changing it would reinterpret every value already stored.

JSON

Validation applied on write, keyed by rule — {"max": 100}.

Boolean!

Whether the storefront APIs may read values of this definition.

False by default. Turning it on publishes every value already written under it, so it is an act with a blast radius rather than a setting.

Int!

How many values exist. Worth knowing before deleting the definition.

DateTime!

No description.

DateTime!

No description.

Input

A metafield definition as supplied.

String

No description.

String!

No description.

String!

No description.

String

No description.

MetafieldOwnerType!

No description.

String!

No description.

JSON

No description.

Boolean

No description.

Input

Names one metafield.

String

No description.

String!

No description.

Input

A metafield value as supplied. Setting value to null deletes it.

String

No description.

String!

No description.

String

No description.

String

No description.

Enum

What kind of object a metafield can hang on.

ValueMeaning
PRODUCTNo description.
PRODUCT_VARIANTNo description.
COLLECTIONNo description.
CUSTOMERNo description.
ORDERNo description.
DRAFT_ORDERNo description.
LOCATIONNo description.
SHOPNo description.
PAGENo description.
ARTICLENo description.
BLOGNo description.
Object

A 3D model shown in a viewer.

ID!

No description.

String

No description.

MediaContentType!

No description.

Int!

No description.

Image

No description.

MediaStatus!

No description.

String

No description.

[Model3dSource!]!

No description.

Object

One encoding of a 3D model.

URL!

No description.

String!

No description.

String!

No description.

Int!

No description.

Object

An amount in a currency. Canonical unit is the rial; the toman is display.

Decimal!

No description.

CurrencyCode!

No description.

Input

An amount as supplied. The currency is the shop’s and is not accepted here.

Decimal!

No description.

Object

A span of amounts. min and max are equal when they are.

Money!

No description.

Money!

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

A reserved slot awaiting its bytes.

ID!

Echo this back to whatever mutation attaches the file.

URL!

PUT the bytes here. Presigned and short-lived.

String!

The method to use. PUT.

[Attribute!]!

Any headers the store requires on the PUT.

DateTime!

No description.

Input

What a client wants to upload.

String!

What the file is called. It becomes the file’s name when nothing names it otherwise. At most 255 characters, or MAX_LENGTH.

String!

No description.

Int!

Bytes. Checked against the plan’s storage before a slot is reserved: NOT_ENTITLED with params.meter storage_bytes when it would not fit.

String

Optional SHA-256, hex. Recorded with the file when supplied.

Scalar

An absolute URL, including scheme.

Object

One reason a mutation declined.

Same taxonomy as every Kaladan surface: code and params are the contract, message is English for a developer reading logs. An admin UI renders from the code; it does not print the message.

UserErrorCode!

No description.

[String!]

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

JSON

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

String!

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

Enum

The failure catalogue.

One catalogue across Kaladan; this enum lists what this surface can return. The last five appear only here, because only here is there a merchant’s own state to be wrong about.

ValueMeaning
REQUIREDNo description.
MIN_LENGTHNo description.
MAX_LENGTHNo description.
PATTERNNo description.
OUT_OF_RANGENo description.
ENUMNo description.
LIST_SIZENo description.
INVALIDNo description.
INCONSISTENTNo description.
NOT_FOUNDNo description.
FORBIDDENNo description.
EXPIREDNo description.
INVALID_STATENo description.
RATE_LIMITEDNo description.
IDEMPOTENCY_CONFLICTNo description.
INSUFFICIENT_STOCKRequested quantity exceeds what is on hand. params.requested and params.available carry the numbers, so a client can offer what is left rather than a dead end. The same code, with the same params, as the Storefront API returns at the cart.
CONFLICTifVersion did not match. Somebody else changed the resource since you read it. Re-read, show the merchant what differs, and let them decide.
TAKENThe value is already taken by another resource — a handle, an SKU, a domain. params.conflictingId names it where naming it is safe.
NOT_ENTITLEDAllowed by the schema, refused by the plan. params.capability says which entitlement is missing, so the UI can offer an upgrade rather than an error. A plan limit reached carries params.meter — products, staff_seats, sales_channels, storage_bytes — with params.limit, what the plan allows, and params.used, what the shop holds now, counted exactly by whatever refused. For a count, used is at least limit, and above it for a shop holding more than its plan allows — an override that raised a limit ran out, say: it keeps everything it has and cannot add more until it is under the limit again. Storage is bytes, and adds params.requested, the size asked for: used + requested exceeds limit, and used alone may not — a file can be too big for what is left. There used counts uploads in flight too. Nothing existing is ever touched. Offer the upgrade; the same numbers are on ShopSubscription.usage.
IN_USEThe resource cannot be deleted while something depends on it. params.dependents counts them. fileDelete names them as well, in params.usedBy: the global id of each product and post that uses the file, and the shop’s for its brand.
SCOPE_ESCALATIONThe caller tried to hand out an access broader than their own — inviting a staff member to, or changing a role toward, scopes the actor does not hold. params.scopes names the excess, so the UI can say which grant to drop rather than refusing the whole form.
Scalar

An opaque token proving what a resource looked like when it was read.

Send it back on an update to get optimistic concurrency; see @scope’s neighbours below and ConflictError.

Interface

An object whose changes can be guarded against a concurrent write.

Two staff members editing one product is ordinary, and GraphQL has no If-Match. So the resource carries a version, and an update may pass it back as ifVersion. A stale one is a CONFLICT user error rather than a silent overwrite of somebody’s work.

Passing ifVersion is optional. Omitting it means last-write-wins, which is the right answer for a background job reconciling stock and the wrong answer for a person typing into a form.

Version!

Changes on every write. Opaque — do not parse, compare, or order it.

Object

A video hosted by the platform.

ID!

No description.

String

No description.

MediaContentType!

No description.

Int!

No description.

Image

No description.

MediaStatus!

No description.

String

No description.

[VideoSource!]!

One entry per encoding and resolution produced.

Int

Duration in milliseconds, or null while still processing.

Object

One encoding of a video.

URL!

No description.

String!

No description.

String!

No description.

Int!

No description.

Int!

No description.

Object

A weight, with the unit it was measured in.

Float!

No description.

WeightUnit!

No description.

Input

A weight as supplied.

Float!

No description.

WeightUnit!

No description.

Enum

Units a weight can be given in.

ValueMeaning
GRAMNo description.
KILOGRAMNo description.