Common
AccessScope
Section titled “AccessScope”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_BILLINGandWRITE_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_STAFFandWRITE_PAYOUTS, never: an app inviting or removing people, or changing where the shop’s money is paid, is not an integration.WRITE_SHOP_SETTINGSandWRITE_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.
| Value | Meaning |
|---|---|
READ_PRODUCTS | No description. |
WRITE_PRODUCTS | No description. |
READ_INVENTORY | No description. |
WRITE_INVENTORY | No description. |
READ_LOCATIONS | No description. |
WRITE_LOCATIONS | No description. |
READ_SHIPPING | No description. |
WRITE_SHIPPING | No description. |
READ_ORDERS | No description. |
WRITE_ORDERS | No description. |
READ_DRAFT_ORDERS | No description. |
WRITE_DRAFT_ORDERS | No description. |
READ_CHECKOUTS | The Checkout API, so a merchant can authorise a checkout app of their own as Kaladan’s hosted checkout is authorised. |
WRITE_CHECKOUTS | No description. |
READ_FULFILLMENTS | No description. |
WRITE_FULFILLMENTS | No description. |
READ_CUSTOMERS | No description. |
WRITE_CUSTOMERS | No description. |
READ_DISCOUNTS | No description. |
WRITE_DISCOUNTS | No description. |
READ_PRICE_LISTS | No description. |
WRITE_PRICE_LISTS | No description. |
READ_PAYMENTS | No description. |
WRITE_PAYMENTS | No description. |
READ_PAYOUTS | No description. |
READ_CONTENT | No description. |
WRITE_CONTENT | No description. |
READ_THEMES | No description. |
WRITE_THEMES | No description. |
READ_CHANNELS | No description. |
WRITE_CHANNELS | No description. |
READ_MARKETING | No description. |
READ_METAOBJECTS | No description. |
WRITE_METAOBJECTS | No description. |
READ_FILES | No description. |
WRITE_FILES | No description. |
READ_TAX | No description. |
WRITE_TAX | No description. |
READ_ANALYTICS | No description. |
READ_SHOP_SETTINGS | No description. |
READ_STAFF | No description. |
READ_APPS | No description. |
READ_AUDIT_LOG | No description. |
CurrencyCode
Section titled “CurrencyCode”The currencies a Kaladan shop can price in.
| Value | Meaning |
|---|---|
IRR | No description. |
DateTime
Section titled “DateTime”An instant, RFC 3339, always UTC.
Decimal
Section titled “Decimal”An exact decimal number, carried as a string.
Handle
Section titled “Handle”A URL-safe identifier: lowercase, digits, hyphens. Permanent once published.
ScalarAn arbitrary JSON value.
Used for extension configuration, whose members belong to the extension point rather than to this API.
ObjectAn amount in a currency. Rial canonical, as everywhere on this platform.
amount
Section titled “amount”Decimal!
No description.
currencyCode
Section titled “currencyCode”CurrencyCode!
No description.
MoneyInput
Section titled “MoneyInput”An amount as supplied.
amount
Section titled “amount”Decimal!
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.
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.
ScalarAn absolute URL, including scheme.
UserError
Section titled “UserError”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.
params
Section titled “params”JSON
No description.
message
Section titled “message”String!
No description.
UserErrorCode
Section titled “UserErrorCode”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.
| Value | Meaning |
|---|---|
REQUIRED | No description. |
MIN_LENGTH | No description. |
MAX_LENGTH | No description. |
PATTERN | No description. |
OUT_OF_RANGE | No description. |
ENUM | No description. |
LIST_SIZE | No description. |
INVALID | No description. |
INCONSISTENT | No description. |
NOT_FOUND | No description. |
FORBIDDEN | No description. |
EXPIRED | No description. |
INVALID_STATE | No description. |
RATE_LIMITED | No description. |
CONFLICT | No description. |
TAKEN | No description. |
IN_USE | No description. |
IDEMPOTENCY_CONFLICT | An idempotency key was replayed with different input. The first request’s answer stands; send a new key for a new request. |
NOT_APPROVED | The 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_FROZEN | A 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_ESCALATION | The scopes an app is asking for exceed what its listing is approved to request. params.excessScopes names them. |
Version
Section titled “Version”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.
Versioned
Section titled “Versioned”An object whose changes can be guarded against a concurrent write.
version
Section titled “version”Version!
No description.