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

Common

Enum

The permission vocabulary an app requests.

The same enum values the Admin API declares, deliberately: what an app asks for, what a merchant approves, and what a staff role grants are one vocabulary, so a merchant reasoning about an app is reasoning about words they already know.

Duplicated here rather than shared because these are separate schemas served by separate processes, and checked mechanically for drift: every value here must be an Admin API value, and never the other way round.

Six of the Admin API’s words are not here, and no app can hold them:

  • WRITE_BILLING and WRITE_APPS: money between Kaladan and the merchant, and which apps a shop runs and what each may do, are the merchant’s own acts. Approving an install or a charge is a person’s, on a Kaladan page.
  • WRITE_STAFF and WRITE_PAYOUTS, never: an app inviting or removing people, or changing where the shop’s money is paid, is not an integration.
  • WRITE_SHOP_SETTINGS and WRITE_MARKETING, for now: the first reaches a mutation that hands out the storefront token in plain text, and the second records a buyer’s marketing consent with no evidence of it. Each will be added to this enum once that is no longer so.
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, so a merchant can authorise a checkout app of their own as Kaladan’s hosted checkout is authorised.
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_PAYMENTSNo description.
WRITE_PAYMENTSNo description.
READ_PAYOUTSNo description.
READ_CONTENTNo description.
WRITE_CONTENTNo description.
READ_THEMESNo description.
WRITE_THEMESNo description.
READ_CHANNELSNo description.
WRITE_CHANNELSNo description.
READ_MARKETINGNo description.
READ_METAOBJECTSNo description.
WRITE_METAOBJECTSNo description.
READ_FILESNo description.
WRITE_FILESNo description.
READ_TAXNo description.
WRITE_TAXNo description.
READ_ANALYTICSNo description.
READ_SHOP_SETTINGSNo description.
READ_STAFFNo description.
READ_APPSNo description.
READ_AUDIT_LOGNo description.
Enum

The currencies a Kaladan shop can price in.

ValueMeaning
IRRNo description.
Scalar

An instant, RFC 3339, always UTC.

Scalar

An exact decimal number, carried as a string.

Scalar

A URL-safe identifier: lowercase, digits, hyphens. Permanent once published.

Scalar

An arbitrary JSON value.

Used for extension configuration, whose members belong to the extension point rather than to this API.

Object

An amount in a currency. Rial canonical, as everywhere on this platform.

Decimal!

No description.

CurrencyCode!

No description.

Input

An amount as supplied.

Decimal!

No description.

Interface

An object with a globally unique, opaque id.

ID!

No description.

Object

Where one page sits in a collection. Cursor-based.

Boolean!

No description.

Boolean!

No description.

String

No description.

String

No description.

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.

UserErrorCode!

No description.

[String!]

No description.

JSON

No description.

String!

No description.

Enum

The failure catalogue.

One catalogue across Kaladan; this enum lists what this surface can return. The last three appear only here, because only here is there a review process to fail.

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.
CONFLICTNo description.
TAKENNo description.
IN_USENo description.
IDEMPOTENCY_CONFLICTAn idempotency key was replayed with different input. The first request’s answer stands; send a new key for a new request.
NOT_APPROVEDThe app is not approved for what it is asking to do. params.requiredScope names what it would need, or params.capability what its listing has not been granted.
VERSION_FROZENA version cannot be changed because it has been submitted or published. App versions are immutable once they leave draft: a merchant who approved a set of scopes must be able to trust that the version they approved is the one running.
SCOPE_ESCALATIONThe scopes an app is asking for exceed what its listing is approved to request. params.excessScopes names them.
Scalar

An opaque version token, for guarding a write against a concurrent one.

The same scalar the Admin API declares. It was String here, which meant the shared Versioned interface promised two different things on two surfaces — and ifVersion is exactly the argument a developer copies between them.

Interface

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

Version!

No description.