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

Apps

Object

Something a merchant installs.

ID!

No description.

Version!

No description.

Handle!

Permanent once published. It appears in every install and every audit line.

String!

No description.

Partner!

No description.

AppDistribution!

No description.

AppStatus!

No description.

AppVersion

The version merchants install today. Null before anything is published.

AppVersion

The version being worked on, if any.

AppVersionConnection!

No description.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.

AppOAuthConfig!

OAuth client configuration. The secret is never returned after creation.

AppWebhookSigning!

How the platform signs this app’s webhooks. The signing secret is never returned after creation or rotation.

AppListing

Where it is listed, when it is.

AppInstallStatistics!

How many shops have it, and how they are doing.

AppInstallationConnection!

No description.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.
status[InstallationStatus!]No description.

DateTime!

No description.

Object

A page of apps.

[AppEdge!]!

No description.

[App!]!

No description.

PageInfo!

No description.

Int!

No description.

Input

An app to register.

String!

No description.

Handle!

No description.

AppDistribution!

No description.

URL!

No description.

Object

What appCreate returns: the app, and both of its secrets, once.

App

No description.

String

The client secret — shown once and never again.

Null for a public client, which is never issued one. When the app was created and the secret could not be issued, this field raises an INTERNAL error at its own path and appSecretRotate issues it. userErrors stays empty, because the app was created, and a non-empty one would say it was not.

String

The webhook signing secret — shown once and never again. whsec_ and base64, as Standard Webhooks libraries expect it.

Null for a public client, which receives no webhooks. When the app was created and the secret could not be issued, this field raises an INTERNAL error at its own path and appSigningSecretRotate issues it, as for clientSecret.

[UserError!]!

No description.

Enum

How an app reaches merchants.

ValueMeaning
PUBLICListed in the Kaladan app store, installable by anybody.
CUSTOMBuilt for named shops and installable only by them. What an agency builds for one merchant, and the commonest kind. It skips review, and in exchange it cannot be listed.
FIRST_PARTYKaladan’s own. A partner cannot register one: appCreate refuses it with FORBIDDEN.
Object

One app, with its cursor.

String!

No description.

App!

No description.

Object

How an app is doing, in aggregate.

Int!

No description.

Int!

No description.

Int!

No description.

Int!

Installs still on a version older than the published one.

What a developer checks before removing anything: an app cannot deprecate a behaviour while a quarter of its shops still depend on it.

Object

One shop that has an app installed.

ID!

No description.

App!

No description.

InstalledShop!

The shop, as much of it as a partner may see.

AppVersion!

The version this shop is running. Not necessarily the newest.

InstallationStatus!

No description.

[AccessScope!]!

The scopes this shop actually granted, which may lag the current version.

Boolean!

Whether the installed version asks for more than was granted.

True after the developer publishes a version with new scopes and before the merchant re-approves. The app keeps working on its old grant; the new capability simply does not.

DateTime!

No description.

DateTime

No description.

DateTime

No description.

Object

A page of installations.

[AppInstallationEdge!]!

No description.

[AppInstallation!]!

No description.

PageInfo!

No description.

Int!

No description.

Object

One installation, with its cursor.

String!

No description.

AppInstallation!

No description.

Object

How an app appears in the store.

[LocalizedText!]!

Localized. Merchants read Persian; the store shows what the partner wrote.

[LocalizedText!]!

No description.

[LocalizedText!]!

No description.

[String!]!

No description.

URL

No description.

[URL!]!

No description.

URL

No description.

URL!

No description.

[LocalizedText!]!

Where a merchant is told the app will send their data, if anywhere.

[LocalizedText!]!

No description.

Input

How an app appears in the store.

[LocalizedTextInput!]!

No description.

[LocalizedTextInput!]!

No description.

[LocalizedTextInput!]!

No description.

[String!]!

No description.

URL

No description.

[URL!]

No description.

URL

No description.

URL!

No description.

[LocalizedTextInput!]!

No description.

[LocalizedTextInput!]!

No description.

Object

OAuth client configuration.

String!

The client id: client_ and 26 characters. What an authorization request and the token endpoint name, and what a session token’s aud holds. Permanent.

Boolean!

Whether a secret has been issued.

The secret itself is returned once, at creation or rotation, and never again. A developer who loses it rotates; nobody can recover it.

DateTime

No description.

Boolean!

Whether the app has no server, and so no secret.

Required for an app with no server — a CLI, a desktop tool — which cannot keep a secret and must not be issued one.

Every app uses PKCE (S256), a public client and a confidential one alike: an authorization request without a challenge is refused, and the token endpoint wants the verifier. A confidential client presents its secret as well. A code is then bound to the request that asked for it, so one leaked from a browser’s history cannot be redeemed by anybody else.

Object

What the app mutations return.

App

No description.

[UserError!]!

No description.

Object

What appSecretRotate returns.

App

No description.

String

The new secret — shown once and never again.

Rotating invalidates the old one immediately, so a developer should be ready to deploy before calling this.

[UserError!]!

No description.

Object

What appSigningSecretRotate returns.

App

No description.

String

The new webhook signing secret — shown once and never again.

The previous one keeps signing deliveries beside it until previousSecretRetiresAt, so a rotation drops nothing while you deploy.

DateTime

When the previous signing secret stops being added to deliveries. Null the first time.

[UserError!]!

No description.

Enum

Where an app stands.

ValueMeaning
DRAFTBeing built. Installable only on the partner’s development stores.
IN_REVIEWSubmitted for review.
PUBLISHEDLive.
UNLISTEDWithdrawn from the store. Existing installations keep working. Distinct from suspended: a developer who stops selling an app must not break the shops already running it.
SUSPENDEDStopped by Kaladan. Installations stop working and tokens are revoked. For an app that is abusing the platform or leaking merchant data. Blunt on purpose.
Object

What appVersionSubmit returns.

AppVersion

No description.

[SubmissionBlocker!]!

What must be true before review will even look at it.

Returned as a checklist rather than as a single rejection, so a developer fixes everything in one pass instead of discovering the next problem a week later.

[UserError!]!

No description.

Object

One immutable declaration of what an app is and what it needs.

Frozen when submitted. A merchant who approved a set of scopes can trust that the version they approved is the one running.

ID!

No description.

String!

Semver, chosen by the developer.

AppVersionStatus!

No description.

[AccessScope!]!

What the app asks the merchant to approve.

Boolean!

Whether the app can act without a staff member present.

Offline tokens survive a sign-out and are what a background job needs. They are also what a compromised app keeps, so an app that only ever acts on a click should not request one — and the review asks why when it does.

[URL!]!

Where the merchant may come back to after authorizing on Kaladan’s page, carrying a code. An authorization request names one of these exactly, or is refused.

[DeclaredWebhook!]!

The events the app subscribes to, declared rather than registered at runtime.

[AppExtension!]!

What the app adds to the admin, the storefront, or checkout.

URL!

The base URL the app is served from.

Boolean!

Whether the app renders inside the admin in an iframe.

String

What the reviewer said, when they said anything.

DateTime

No description.

DateTime

No description.

DateTime!

No description.

Object

A page of app versions.

[AppVersionEdge!]!

No description.

[AppVersion!]!

No description.

PageInfo!

No description.

Int!

No description.

Object

One version, with its cursor.

String!

No description.

AppVersion!

No description.

Input

A version to draft. Everything an app declares about itself.

String!

No description.

[AccessScope!]!

No description.

Boolean

No description.

[URL!]!

No description.

URL

No description.

Boolean

No description.

[DeclaredWebhookInput!]

No description.

[AppExtensionInput!]

No description.

Object

What the version mutations return.

AppVersion

No description.

[UserError!]!

No description.

Enum

Where an app version stands.

ValueMeaning
DRAFTEditable.
IN_REVIEWSubmitted. Frozen from here on.
APPROVEDNo description.
PUBLISHEDLive, and what new installs get.
REJECTEDNo description.
SUPERSEDEDSuperseded by a later published version. Installs on it keep running.
Object

How the platform signs an app’s webhooks.

The signing secret is not the client secret. The client secret proves the app to Kaladan, and nobody can read it back. The signing secret proves Kaladan to the app, so the platform holds it as well. It is returned once, when the app is created and each time it is rotated, and never again.

Signed as Standard Webhooks. The secret is whsec_ and base64, and a delivery carries webhook-id, webhook-timestamp and webhook-signature, so any Standard Webhooks library verifies it. The admin’s requests for an extension’s blocks are signed with the same secret (admin-extensions).

Boolean!

Whether a signing secret has been issued. Always false for a public client, which declares no webhooks.

DateTime

When the current signing secret was issued.

DateTime

When the previous signing secret stops being added to deliveries, while a rotation is still inside its day. Until then every delivery carries both signatures.

Object

A free shop for building against.

ID!

No description.

Handle!

No description.

String!

No description.

URL!

No description.

Boolean!

Every capability switched on, regardless of plan.

So a developer can build against features their own merchants will have, rather than discovering a plan gate after shipping.

Boolean!

Whether payments are in test mode. Always true, and not changeable.

A development store cannot take real money. The alternative is a developer accidentally charging somebody during a demo.

Boolean!

Seeded with products, orders and customers, so nothing starts empty.

DateTime!

No description.

DateTime

No description.

Input

A development store to create.

String!

No description.

Handle

No description.

Boolean

Whether to seed it with products, orders and customers.

Object

What the development-store mutations return.

DevelopmentStore

No description.

[UserError!]!

No description.

Enum

Where an installation stands.

ValueMeaning
ACTIVENo description.
UNINSTALLEDUninstalled. The token is revoked and the app owes data deletion. The record survives so a partner can see churn and so a reinstall is recognisable as one.
SHOP_SUSPENDEDThe shop is suspended, so the app cannot act. Not the app’s fault.
Object

A shop with an app installed, as much of it as a partner may see.

Deliberately thin. A partner is entitled to know which shops run their app and whether those installs are healthy; they are not entitled to a directory of Kaladan’s merchants with their trading volumes attached.

ID!

No description.

Handle!

No description.

String!

No description.

String!

No description.

String!

The shop’s plan, so an app can support the plans it is used on.

Object

One string in one locale.

String!

No description.

String!

No description.

Input

One string in one locale, as supplied.

String!

No description.

String!

No description.

Object

A code that was sent, and what may be done with it.

ID!

No description.

String!

Masked, so a client can say where the code went without disclosing it.

DateTime!

No description.

Int!

How many wrong guesses are allowed before the challenge burns.

DateTime!

When another code may be requested. Rate limiting, stated rather than guessed.

Enum

Why a one-time code is being sent.

ValueMeaning
SIGN_INSigning in, or creating an organization by signing in for the first time.
CONFIRM_ACTIONConfirming something already authenticated.
Object

A developer’s organization.

ID!

No description.

Handle!

No description.

String!

No description.

String

Where Kaladan reaches them about a review or an incident.

String

No description.

PartnerVerificationState!

Whether the organization has been verified.

An unverified partner may build and install apps on their own development stores, and may not list anything publicly. Verification is what stands between the app store and anyone.

AppConnection!

No description.

ArgumentTypeMeaning
firstIntNo description.
afterStringNo description.

[PartnerMember!]!

No description.

[PartnerSession!]!

The signed-in developer’s own devices.

Sessions are a person’s, not an organization’s: this lists the caller’s, and never a colleague’s.

[DevelopmentStore!]!

Free, watermarked shops for building and testing against.

DateTime!

No description.

Object

Somebody who may act for a partner organization.

ID!

No description.

String!

No description.

String!

No description.

String

No description.

PartnerRole!

No description.

DateTime

No description.

Object

An organization as a picker shows it: enough to choose one, and nothing about what is inside.

ID!

No description.

Handle!

No description.

String!

No description.

PartnerRole!

The signed-in developer’s role there.

Object

What partnerOtpRequest returns.

OtpChallenge

Present whether or not an organization exists. The two are indistinguishable.

[UserError!]!

No description.

Object

What partnerOtpVerify returns.

PartnerSessionTokens

The account session: who the developer is. It reaches partnerOrganizations and partnerSessionCreate, and nothing that acts for an organization.

PartnerOrganization

The organization organizationTokens opens, present exactly when they are.

PartnerSessionTokens

That organization’s session, when there is exactly one to open: the one this verification created, or the only one the developer belongs to. Absent with several, where the picker chooses.

Boolean

Whether this verification created the organization.

What sends a developer to “name your organization and apply for verification” rather than to a dashboard with nothing in it.

[UserError!]!

No description.

Object

What partnerUpdate returns.

Partner

No description.

[UserError!]!

No description.

Enum

What a partner member may do.

ValueMeaning
OWNEREverything, including billing and adding members.
DEVELOPERBuild, submit, and manage apps. Not billing.
ANALYSTRead-only.
Object

A device the signed-in developer is signed in on.

A person’s, not an organization’s: an organization has several people in it, and none of them sees another’s devices.

ID!

No description.

Boolean!

No description.

String

Derived from the user agent, which lies. A hint for recognition, not identity.

String

No description.

String

No description.

DateTime!

No description.

DateTime!

No description.

Object

What partnerSessionCreate and partnerSessionRefresh return: one organization’s session.

PartnerOrganization

The organization this session opens, so a client can render it without a re-read. Absent on a refresh, where the client already holds it.

PartnerSessionTokens

Send as Authorization: Bearer for everything that acts for this organization. Short-lived; keep it in memory.

[UserError!]!

EXPIRED or NOT_FOUND on a refresh. Treat both the same: back to the picker.

Object

What the sign-out and revoke mutations return.

Boolean!

True for a token that was already invalid. Signing out twice is not an error.

[PartnerSession!]!

No description.

[UserError!]!

No description.

Object

A signed-in partner session: what to send, and what to renew it with.

String!

Send as Authorization: Bearer. Short-lived. Keep it in memory.

DateTime!

No description.

String!

Single-use. Presenting a spent one revokes the session as stolen.

DateTime!

No description.

Object

What partnerTokenRefresh returns: the account session, renewed.

PartnerSessionTokens

No description.

[UserError!]!

EXPIRED or NOT_FOUND. Treat both the same: clear state and sign in.

Input

What a partner may change about their organization.

String

No description.

String

No description.

String

No description.

Enum

Where a partner’s verification stands.

ValueMeaning
UNVERIFIEDNo description.
PENDINGNo description.
VERIFIEDNo description.
REJECTEDRefused, or withdrawn after the fact.
Object

One thing standing between an app and review.

SubmissionBlockerCode!

No description.

String

Which field or extension it concerns.

String!

No description.

Enum

What can stand between an app and review.

ValueMeaning
PARTNER_UNVERIFIEDThe partner organization is not verified.
LISTING_INCOMPLETEThe listing is incomplete.
COMPLIANCE_WEBHOOKS_MISSINGA mandatory compliance webhook is not declared. customers/data_request, customers/redact and shop/redact are required of every listed app, and their endpoints must answer before approval — an app that cannot honour an erasure request must not hold merchant data at all.
WEBHOOK_ENDPOINT_UNREACHABLEA declared webhook endpoint did not answer, or failed signature validation.
SCOPE_NOT_JUSTIFIEDA scope is requested that the app’s described function does not need.
DATA_DISCLOSURE_MISSINGNo privacy policy, or no disclosure of where merchant data goes.
INSECURE_REDIRECTThe OAuth redirect is not HTTPS, or is a wildcard.
EXTENSION_INVALIDAn extension does not validate against its own contract.
PRICING_UNDECLAREDNo pricing is described, on an app that charges.