Catalog & commerce

Plans, pricing and subscriptions

How a plan is priced, what a subscription record contains, and why App Center refuses to know your limits.

A plan is a priced SKU of your application. App Center stores its identity — code, interval, amount, status — and nothing about what it allows. That split is deliberate: you can change what a plan includes without an App Center release, and App Center never needs to understand your product.

Fields

name
RulesText
NotesShown on the plan card, e.g. Pro monthly.
amountMinor
RulesInteger
NotesMinor units — 4500 is GH₵ 45.00. Never a float.
interval
Rulesmonthly · annual
NotesThe billing period.
accessTier
Rulesbasic · pro · premium · enterprise
NotesThe entitlement tier the plan maps to. Always lower case — PRO is not a tier.
status
Rulesactive · archived
NotesOnly active plans can be bought.

Create a plan

POST/appcenter/v3/admin/apps/{appId}/plansAdmin bearer token with Manage applications

Add a priced SKU to an application and get the stored record back. The body is strict: an unknown field is refused, not ignored.

Headers

Content-Type
application/json

Parameters

codestringrequired
1–64 characters matching ^[a-z0-9][a-z0-9_-]*$. Unique within the application and effectively immutable — subscriptions and quotes refer to it.
namestringrequired
1–100 characters, shown on the plan card, e.g. Starter monthly.
accessTierstringrequired
basic, pro, premium or enterprise — lower case.
amountMinorinteger | null
Minor units, 0–100000000. Defaults to null. A plan may be stored without a price, but it cannot be active without one.
intervalstring
monthly or annual. Defaults to monthly.
statusstring
draft or active. Defaults to draft. active with no price is a 422.
currency"GHS"
The only accepted value. Defaults to GHS.
descriptionstring | null
Up to 2,000 characters of plan copy.
featuresstring[]
Up to 50 bullet points, 300 characters each. Defaults to [].
displayOrderinteger
Sort position on the pricing grid. Defaults to 0.
featuredboolean
Highlights the plan in the catalog. Defaults to false.
Request
POST /appcenter/v3/admin/apps/42/plans HTTP/1.1
Authorization: Bearer $APPCENTER_ADMIN_TOKEN
Content-Type: application/json

{
  "code": "starter-monthly",
  "name": "Starter monthly",
  "accessTier": "basic",
  "amountMinor": 4500,
  "interval": "monthly",
  "status": "draft",
  "description": "One shop, unlimited invoices.",
  "features": ["Unlimited invoices", "Two bank feeds", "Email support"]
}
200 OK — the stored plan
{
  "success": true,
  "data": {
    "plan": {
      "id": 118,
      "appId": 42,
      "code": "starter-monthly",
      "name": "Starter monthly",
      "description": "One shop, unlimited invoices.",
      "features": [
        "Unlimited invoices",
        "Two bank feeds",
        "Email support"
      ],
      "interval": "monthly",
      "amountMinor": 4500,
      "currency": "GHS",
      "accessTier": "basic",
      "status": "draft",
      "previousStatus": null,
      "displayOrder": 0,
      "featured": false,
      "version": 1,
      "legacyType": null,
      "createdAt": "2026-11-08T09:14:22.418Z",
      "updatedAt": "2026-11-08T09:14:22.418Z"
    }
  },
  "message": "Pricing plan saved"
}

version starts at 1 and increments on every write — send it back with PATCH. legacyType is compatibility metadata, null for anything created through this endpoint.

409 CONFLICT
{
  "success": false,
  "error": {
    "code": "CONFLICT",
    "message": "This plan code already exists for the application"
  }
}

Failures to handle

409CONFLICT
The code is already used by another plan, or the application is archived.
404NOT_FOUND
No application with that id.
422VALIDATION_FAILED
A required field is missing, an amount is out of range, or status: active arrived with no price. The body carries error.fields[] of { path, message }.
  • GET /apps/:appId/plans answers { success: true, data: { plans: [] } } — the same records, ordered by displayOrder then id. There is no pagination: an application has tens of plans, not thousands.
  • PATCH /apps/:appId/plans/:planId merges and requires version; a stale one is 409 VERSION_CONFLICT. POST …/archive and …/restore take { version } and nothing else.
  • Archiving a plan is how a SKU is retired: the row and its history survive, and existing subscribers are unaffected.

Editing a price does not reprice a checkout

A purchase captures a quote at the moment it starts. An admin price change cannot alter an in-progress checkout or an already-paid subscription.

What a subscription looks like

Your backend reads subscriptions with a service token. The projection is flat, typed and identical on every call — there is no plan sub-object to unwrap.

GET/appcenter/v3/app/subscriptions/{accountUuid}Service token — client_credentials, scope appcenter:service

Every subscription the account holds to your application, newest first. Read-only.

Request
GET /appcenter/v3/app/subscriptions/0d6c1f8a-3c4e-4f2b-9a51-7b0e2d8c4a11 HTTP/1.1
Authorization: Bearer $APPCENTER_SERVICE_TOKEN
Accept: application/json
200 OK — one active subscription
{
  "success": true,
  "data": {
    "subscriptions": [
      {
        "id": 8712,
        "planCode": "pro-monthly",
        "planName": "Pro monthly",
        "accessTier": "pro",
        "interval": "monthly",
        "legacyPlan": "pro",
        "status": "active",
        "startDate": "2026-04-01T00:00:00.000Z",
        "endDate": "2026-12-01T00:00:00.000Z",
        "active": true,
        "daysRemaining": 23
      }
    ]
  }
}

active is status === "active". daysRemaining is a whole-day count and drops to 0 once the end date has passed.

200 OK — never bought
{
  "success": true,
  "data": {
    "subscriptions": []
  }
}

An account unknown to App Center answers the same thing. That is not an error — it is the honest answer to no subscription here.

Failures to handle

401—
No bearer token, or the access token has expired.
403service_token_required
The token is a person's, not a client_credentials service token.
403app_not_bound
The service client is inactive or not attached to an application.
  • status is derived from endDate, never stored: active while the end date is in the future, expired once it has passed. Branch on active when you only need a yes or no.
  • legacyPlan is the tier captured at purchase — one of basic, pro, premium, enterprise. It keeps that value when a plan is re-tiered, so read accessTier for what the account is on today.
  • planCode, planName, accessTier and interval are null on rows sold before the plan catalogue existed. legacyPlan is the fallback for exactly those rows.
  • The full field list for every object your backend receives is on Objects.

Own the limits

App Center answers *what did this account buy*. Your backend answers *what does that allow*. The mapping belongs in one table in your repository, edited without a platform release. A working example is in Owning your plan limits.

An empty list is not an error

An account with no subscription to your application gets 200 and []. Whether that means trial, read-only or blocked is entirely your decision.

Subscription events

  • subscription.created — paid for the first time
  • subscription.renewed — the period rolled over
  • subscription.plan_changed — an admin moved the account to another plan
  • subscription.cancelled — an admin cancelled it
  • subscription.expired — the expiry job passed the end date

Subscribe to these rather than polling. See the event catalogue for payloads.

Something here out of date or unclear?

The platform team answers integration questions directly.

support@versified.com.gh
32 pages in this documentation