Reference

Objects and payloads

Every object the platform returns — person, business, subscription, webhook, delivery, application, plan, client, capability — with a sample and a field table.

Each object below appears in more than one response, always with the same field names and the same types. Match on the field, not on position, and ignore fields you do not recognise: adding a field is never a breaking change. Removing or renaming one is.

How to read this page

  • string | null means the key is always present and the value may be null. A missing key does not happen.
  • Every timestamp is ISO 8601 in UTC, e.g. 2026-11-08T09:14:22.418Z.
  • Identifiers are either numeric (12), opaque strings (0d6c1f8a-…) or stable slugs (LEDGERLY). The type column says which.
  • Samples are one real row with tenant data removed — amounts, dates and ids are illustrative, the shape is not.

The success envelope

Every 2xx answer under /appcenter/v3 is { success: true, data }, and data is an object holding exactly one named payload key — user, subscriptions, webhooks, plan. Nothing is returned bare, so a reader never has to guess whether the body is the object or a wrapper around it.

shape
{
  "success": true,
  "data": {
    "subscriptions": [ … ]
  }
}

The failure envelope, and the codes that fill it, are on [Errors, retries and idempotency](/docs/server/errors).

Person

The platform's fixed user projection. It is what GET /app/users/:userUuid returns as user, and what every row of GET /app/users contains. First-party services that proxy a user search copy it through unchanged, so a person looks the same everywhere.

user
{
  "useruuid": "4f8a1c72-9d3b-4e10-8a55-6d2f9c0b7e31",
  "email": "ama@ledgerly.com",
  "firstname": "Ama",
  "lastname": "Mensah",
  "profileimage": "https://cdn.versified.com.gh/avatars/4f8a1c72.png",
  "createddate": "2025-02-11T10:04:51.000Z"
}
useruuid
Typestring
NotesStable identity for the person across every application. Store this; never key on email.
email
Typestring
NotesVerified by the identity provider at sign-up. It can change, useruuid cannot.
firstname
Typestring | null
NotesAs the person entered it. Not guaranteed present.
lastname
Typestring | null
NotesAs the person entered it. Not guaranteed present.
profileimage
Typestring | null
NotesAbsolute URL, or null when nobody uploaded a picture. Safe to render directly.
createddate
Typestring | null
NotesWhen the person first authenticated on the platform.

It is a projection, not the user row

The projection is a column-level allow-list on purpose. There is no password hash, no failed-login counter, no internal flag — and a new sensitive column cannot leak by default. If you need something else about a person, it belongs in your application, keyed by useruuid.

Business

The public profile of the account owner: what a receipt header or an invoice footer would print. It is business on the person read and the entire body of GET /app/businesses/:accountUuid.

business
{
  "name": "Ledgerly Ltd",
  "email": "billing@ledgerly.com",
  "phone": "+233 24 000 0000",
  "address": "12 Independence Ave, Accra",
  "profileImage": "https://cdn.versified.com.gh/logos/ledgerly.png"
}

The whole object is null — not an empty object — when the account has no business profile yet.

name
Typestring | null
NotesTrading name the owner entered.
email
Typestring | null
NotesContact email for the business, not the person's sign-in address.
phone
Typestring | null
NotesFree text. Numbers are not normalised to E.164.
address
Typestring | null
NotesOne line, as typed. No street/city/postcode split.
profileImage
Typestring | null
NotesLogo URL. For a base64 data URL instead — receipts, PDF footers — call GET /app/businesses/:accountUuid/logo.

Subscription

Plan identity, scoped to your application. App Center tells you what was bought and when it ends; what that plan allows is your decision, computed in your own code. The same object appears in GET /app/subscriptions/:accountUuid and in the person read.

subscription
{
  "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
}
id
Typenumber
NotesThe subscription row. Stable across renewals of the same subscription.
planCode
Typestring | null
NotesThe plan's code. null only for rows sold before the plan catalogue existed.
planName
Typestring | null
NotesDisplay name at read time. Follows an admin rename.
accessTier
Typestring | null
Notesbasic, pro, premium or enterprise. The only field App Center expects you to map to limits.
interval
Typestring | null
Notesmonthly or annual.
legacyPlan
Typestring
NotesThe tier captured at purchase. It keeps its value when a plan is re-tiered, so read accessTier for the current one.
status
Typestring
Notesactive while the end date is ahead, expired once it has passed. Derived, never stored.
startDate
Typestring
NotesISO 8601. When this period began.
endDate
Typestring
NotesISO 8601. When access stops.
active
Typeboolean
Notesstatus === "active", precomputed. Branch on this.
daysRemaining
Typenumber
NotesWhole days until endDate, floored at 0. Not a plan limit — a convenience for a badge.

One subscription row per application

A person subscribing to Retill and to your application has two rows. Your read is filtered by your application id at the query, so you never see another application's plan, price or dates.

Webhook registration

One receiver. Returned by every webhook management call — create, list, read, update.

webhook
{
  "id": 27,
  "url": "https://ledgerly.com/hooks/appcenter",
  "description": "Production receiver",
  "events": ["user.updated", "subscription.created"],
  "active": true,
  "version": 3,
  "consecutiveFailures": 0,
  "lastDeliveryAt": "2026-11-08T09:20:03.114Z",
  "lastSuccessAt": "2026-11-08T09:20:03.114Z",
  "lastFailureAt": null,
  "createdAt": "2026-10-02T11:31:00.000Z",
  "updatedAt": "2026-10-21T15:02:44.502Z"
}
id
Typenumber
NotesUse it in the path of every webhook call.
url
Typestring
NotesAbsolute HTTPS receiver. Unique per application — two webhooks cannot share a URL.
description
Typestring | null
NotesYour own label, up to 200 characters.
events
Typestring[]
NotesThe subscribed event names, or ["*"] for everything. ping is never listed.
active
Typeboolean
NotesA paused webhook keeps its history and stops receiving.
version
Typenumber
NotesOptimistic lock. Send it with PATCH and DELETE.
consecutiveFailures
Typenumber
NotesResets to 0 on the next successful delivery. Useful for alerting on a wedged receiver.
lastDeliveryAt
Typestring | null
NotesAny attempt, successful or not.
lastSuccessAt
Typestring | null
NotesThe last 2xx.
lastFailureAt
Typestring | null
NotesThe last non-2xx, timeout or connection error.
createdAt
Typestring
NotesISO 8601.
updatedAt
Typestring
NotesISO 8601. Moves on any write, including a rotation.

Webhook delivery

One attempt chain for one event to one webhook. Appears in the delivery log and in the answer to a redelivery.

delivery
{
  "id": "9c5b1f0e-2a4d-4c66-9d3e-77b1a2f64c08",
  "webhookId": 27,
  "event": "user.updated",
  "status": "delivered",
  "attempts": 1,
  "responseStatus": 200,
  "responseBody": "{\"ok\":true}",
  "error": null,
  "deliveredAt": "2026-11-08T09:20:03.114Z",
  "createdAt": "2026-11-08T09:20:02.001Z"
}
id
Typestring
NotesUUID. Also sent to your receiver as X-AppCenter-Delivery, which is the key you deduplicate on.
webhookId
Typenumber
NotesThe registration the event was sent to.
event
Typestring
NotesThe event name, e.g. subscription.created.
status
Typestring
Notespending while retries remain, delivered on the first 2xx, exhausted after the last attempt.
attempts
Typenumber
NotesHow many times the receiver was called, including the first.
responseStatus
Typenumber | null
NotesThe HTTP status your receiver answered. null if it never answered.
responseBody
Typestring | null
NotesThe first 2,048 bytes of your body, stored verbatim. Enough for an error message, not a data channel.
error
Typestring | null
NotesTransport failure — DNS, TLS, timeout — when there was no HTTP status.
deliveredAt
Typestring | null
NotesSet only when a 2xx arrived.
createdAt
Typestring
NotesWhen the event was emitted, not when it was first attempted.

Event payload

The body App Center POSTs to your receiver. It is the same envelope for every event; only data changes. The delivery token's body_sha256 claim covers the raw bytes, so verify against those rather than a re-serialised object.

user.updated
{
  "id": "3f7c2b90-0e51-4a88-b1c4-2d9e6f0a7b13",
  "event": "user.updated",
  "occurredAt": "2026-11-08T09:20:02.001Z",
  "app": { "id": 42, "shortCode": "LEDGERLY" },
  "data": {
    "user": { "useruuid": "4f8a1c72-…", "email": "ama@ledgerly.com" }
  }
}
id
Typestring
NotesDelivery UUID. Identical on every retry of the same event.
event
Typestring
NotesOne of the ten event names, or ping.
occurredAt
Typestring
NotesWhen the platform committed the change — not when the delivery was attempted.
app
Typeobject
Notes{ id, shortCode } of the sending application, so a shared receiver can route.
data
Typeobject
NotesEvent-specific. The exact keys per event are on the event catalogue.

Application

The catalog record an operator edits, as returned by GET /apps/:appId. version is what every PATCH must carry. clients is populated only for an admin holding the OAuth-client privilege; otherwise it is an empty array and clientDetailsVisible is false.

GET /apps/:appId
{
  "success": true,
  "data": {
    "app": {
      "id": 42,
      "name": "Ledgerly",
      "shortCode": "LEDGERLY",
      "status": "published",
      "listed": true,
      "version": 7,
      "previousStatus": "draft",
      "description": "Bookkeeping that closes itself.",
      "shortDescription": "Automated bookkeeping for small shops.",
      "tagline": "Bookkeeping that closes itself",
      "image": null,
      "price": 45,
      "basic": 0,
      "pro": 45,
      "premium": 90,
      "presentation": { "displayOrder": 3, "webUrl": "https://app.ledgerly.com", … },
      "createddate": "2026-01-14T08:12:00.000Z",
      "updateddate": "2026-11-02T16:40:12.004Z",
      "archivedAt": null,
      "archivedByEmail": null,
      "updatedByEmail": "ops@versified.com.gh",
      "isArchived": false,
      "isPublished": true,
      "clientCount": 2,
      "activeClientCount": 2
    },
    "clients": [],
    "clientDetailsVisible": false
  }
}
id
Typenumber
NotesNumeric id used in every admin path and in app.id on events.
shortCode
Typestring
NotesStable upper-case code. Metadata only — it grants no API access, and first-party services treat it as immutable.
status
Typestring
Notesdraft, published or archived.
listed
Typeboolean
Notesfalse keeps a published application out of GET /catalog/apps while subscribers keep seeing it.
version
Typenumber
NotesOptimistic lock. A stale value is 409 VERSION_CONFLICT.
previousStatus
Typestring | null
NotesWhat restore returns the listing to.
description
Typestring | null
NotesFull listing copy, up to 5,000 characters.
shortDescription
Typestring | null
NotesCatalog tile summary.
tagline
Typestring | null
NotesOne line for cards and search.
image
Typestring | null
NotesLegacy single image URL. Uploaded imagery lives in presentation.
price, basic, pro, premium
Typenumber
NotesLegacy pricing in major units (cedis), kept for older clients. Plans are the source of truth.
presentation
Typeobject | null
NotesCategory, imagery, launch URLs — see Presentation below.
createddate
Typestring
NotesISO 8601. Lower-case field name, unlike every other date on the platform.
updateddate
Typestring
NotesISO 8601.
archivedAt
Typestring | null
NotesSet by archive, cleared by restore.
archivedByEmail
Typestring | null
NotesWho archived it.
updatedByEmail
Typestring | null
NotesWho last wrote.
isArchived
Typeboolean
NotesConvenience flags computed from status.
isPublished
Typeboolean
NotesConvenience flags computed from status.
clientCount
Typenumber
NotesRegistered OAuth clients, active or not.
activeClientCount
Typenumber
NotesClients that can still authenticate.
clients
Typeobject[]
NotesClient records, or [] without the privilege.
clientDetailsVisible
Typeboolean
Notesfalse means client data was withheld, not absent.

Plan

A priced SKU. The admin surface returns the stored record; the public catalog (GET /catalog/apps) returns the public subset — no accessTier, because a tier is an internal entitlement, not marketing copy.

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"
}
id
Typenumber
NotesPlan row id, used in PATCH and archive paths.
appId
Typenumber
NotesThe owning application.
code
Typestring
NotesUnique per application, ^[a-z0-9][a-z0-9_-]*$. Immutable once written.
name
Typestring
NotesPlan card title.
description
Typestring | null
NotesUp to 2,000 characters.
features
Typestring[]
NotesBullet points. [] rather than null when empty.
interval
Typestring
Notesmonthly or annual.
amountMinor
Typenumber | null
NotesMinor units — 4500 is GH₵ 45.00. null for a plan with no price; such a plan cannot be active.
currency
Typestring
NotesAlways GHS.
accessTier
Typestring
Notesbasic, pro, premium or enterprise. Absent from the public catalog object.
status
Typestring
Notesdraft, active or archived. Only active can be bought.
previousStatus
Typestring | null
NotesWhat restore returns the plan to.
displayOrder
Typenumber
NotesSort position on the pricing grid.
featured
Typeboolean
NotesHighlight flag.
version
Typenumber
NotesOptimistic lock for PATCH and the archive/restore verbs.
legacyType
Typestring | null
NotesCompatibility identity assigned only by the one-time backfill. null for anything created through the API.
createdAt
Typestring
NotesISO 8601.
updatedAt
Typestring
NotesISO 8601.

OAuth client

The registration that actually talks to the identity provider. Grants, response types, scopes and the token auth method are derived from the profile — you choose the profile, not the metadata.

client
{
  "clientId": "ledgerly-web",
  "appId": 42,
  "appName": "Ledgerly",
  "profile": "confidential_web",
  "profileLabel": "Confidential web",
  "profileSource": "stored",
  "name": "Ledgerly web",
  "redirectUris": ["https://app.ledgerly.com/api/auth/callback"],
  "postLogoutRedirectUris": ["https://app.ledgerly.com"],
  "grantTypes": ["authorization_code", "refresh_token"],
  "responseTypes": ["code"],
  "tokenEndpointAuthMethod": "client_secret_basic",
  "scopes": ["openid", "email", "profile", "offline_access", "appcenter"],
  "resources": ["urn:versified:api:appcenter"],
  "trusted": false,
  "logoutScope": "client",
  "active": true,
  "version": 1,
  "hasSecret": true,
  "secretUpdatedAt": "2026-11-08T09:31:02.004Z",
  "secretUpdatedByEmail": "ops@versified.com.gh",
  "createdByEmail": "ops@versified.com.gh",
  "updatedByEmail": null,
  "createdAt": "2026-11-08T09:31:02.004Z",
  "updatedAt": "2026-11-08T09:31:02.004Z",
  "needsAssignment": false,
  "editable": true,
  "isProtected": false
}

The plaintext secret is not part of this object. It is a sibling key on the create and rotate responses, present once and never readable again.

clientId
Typestring
NotesThe client_id your app sends. Immutable.
appId
Typenumber | null
NotesThe owning application. null only for a legacy client awaiting assignment.
appName
Typestring | null
NotesThat application's display name.
profile
Typestring
Notespublic_pkce, confidential_web or confidential_service. Immutable.
profileLabel
Typestring
NotesHuman label for the profile, for admin screens.
profileSource
Typestring
Notesstored for rows created here, inferred for legacy rows.
name
Typestring
NotesYour own label, up to 100 characters.
redirectUris
Typestring[]
NotesExact-match callbacks. Up to 10. Empty for a service client.
postLogoutRedirectUris
Typestring[]
NotesWhere RP-initiated logout may return to.
grantTypes
Typestring[]
NotesDerived from the profile. You cannot widen it.
responseTypes
Typestring[]
NotesAlways ["code"] — no implicit or hybrid flow exists.
tokenEndpointAuthMethod
Typestring
Notesclient_secret_basic or none.
scopes
Typestring[]
NotesOIDC scopes plus one per assigned resource.
resources
Typestring[]
NotesThe audience allow-list, at most three.
trusted
Typeboolean
NotesSkips the consent screen. First-party clients are trusted; a third-party client must leave this false.
logoutScope
Typeclient | session
NotesWhat RP-initiated logout does: client (the default) revokes only this client's grant and keeps the shared Versified session, session ends the session for every app.
active
Typeboolean
Notesfalse refuses new authorizations and token requests without deleting the row.
version
Typenumber
NotesOptimistic lock for PATCH.
hasSecret
Typeboolean
NotesWhether a secret exists — never the secret itself.
secretUpdatedAt
Typestring | null
NotesWhen it was last issued or rotated.
secretUpdatedByEmail
Typestring | null
NotesWho rotated it. The audit trail names the actor.
createdByEmail
Typestring | null
NotesWho registered it.
updatedByEmail
Typestring | null
NotesWho last wrote. null until the first edit.
createdAt
Typestring | null
NotesISO 8601.
updatedAt
Typestring | null
NotesISO 8601.
needsAssignment
Typeboolean
NotesA legacy client with no application — it still authenticates but is read-only here.
editable
Typeboolean
NotesFalse when the record cannot be written through this surface.
isProtected
Typeboolean
NotesTrue for a first-party client whose identity must not be changed.

Capability

A declaration: which of your endpoints answers a platform contract, and how the last conformance call went. The contract itself — version, kind, scope, standard path — travels with the capability, not with the declaration.

capability
{
  "capability": "assigned-apps",
  "enabled": true,
  "endpointUrl": "https://api.ledgerly.com/appcenter/assigned-apps",
  "timeoutMs": 5000,
  "serviceResource": "urn:versified:api:ledgerly",
  "serviceScope": "ledgerly:service",
  "serviceAudienceSupported": false,
  "contractVersion": "2",
  "kind": "query",
  "userScoped": true,
  "standardPath": "/appcenter/assigned-apps",
  "version": 2,
  "lastCheckedAt": "2026-11-07T14:22:10.512Z",
  "lastCheckStatus": "ok",
  "lastCheckHttpStatus": 200,
  "lastCheckDurationMs": 184,
  "lastCheckMessage": null,
  "lastCheckedByEmail": "ops@versified.com.gh",
  "updatedAt": "2026-10-30T09:05:44.001Z"
}
capability
Typestring
NotesOne of assigned-apps, account-deletion, membership-leave.
enabled
Typeboolean
NotesA disabled declaration keeps its URL but is skipped when App Center fans out.
endpointUrl
Typestring | null
NotesThe URL App Center POSTs or GETs. null until declared.
timeoutMs
Typenumber
NotesHow long App Center waits before recording a timeout. 1,000–15,000 ms, default 5,000. Commands get a much longer budget.
serviceResource
Typestring
NotesThe audience of the service token App Center mints. Defaults to urn:versified:api:<slug>; a value you configure must be one the platform's identity provider serves.
serviceScope
Typestring
NotesThe scope on that token. Defaults to <slug>:service and must be one of the chosen resource's scopes.
serviceAudienceSupported
Typeboolean
Notestrue only when the platform's identity provider issues that exact resource/scope pair. A third-party audience is usually false — validate the token yourself.
contractVersion
Typestring
NotesRevision of the request/response contract App Center speaks.
kind
Typestring
Notesquery (fanned out GET), command (addressed POST) or both.
userScoped
Typeboolean
NotesThe call names one person in ?userUuid=.
standardPath
Typestring
NotesThe conventional path. Informative — the registered endpointUrl is what gets called.
version
Typenumber
NotesIncrements on every declaration write.
lastCheckedAt
Typestring | null
NotesWhen the last conformance test ran.
lastCheckStatus
Typestring | null
Notesok or error.
lastCheckHttpStatus
Typenumber | null
NotesWhat your endpoint answered.
lastCheckDurationMs
Typenumber | null
NotesHow long it took.
lastCheckMessage
Typestring | null
NotesThe failure reason, spelled out so an operator can fix it without logs.
lastCheckedByEmail
Typestring | null
NotesWho ran the test.
updatedAt
Typestring | null
NotesISO 8601.

Presentation

How the listing looks. Images are stored inline as base64 so the catalogue owns its own media and never depends on a third-party URL staying reachable — which means a read of this object is much larger than the rest of the record.

presentation
{
  "category": "Finance & accounting",
  "tags": ["bookkeeping", "invoices"],
  "logo": { "data": "iVBORw0KGgoAAAANSUhEUg…", "mime": "image/png" },
  "cover": { "data": "/9j/4AAQSkZJRg…", "mime": "image/jpeg" },
  "monogram": "LG",
  "screenshots": [
    { "data": "iVBORw0KGgo…", "mime": "image/png", "alt": "Dashboard" }
  ],
  "webUrl": "https://app.ledgerly.com/launch",
  "iosUrl": null,
  "androidUrl": null,
  "displayOrder": 3
}
category
Typestring | null
NotesOne of the eight fixed categories. Free text is refused by the validator.
tags
Typestring[]
NotesCatalog search keywords.
logo, cover
Typeobject | null
Notes{ data, mime }. data is raw base64 with no `data:` prefix — build the URL from mime.
monogram
Typestring | null
NotesUp to five characters, used when no logo is uploaded.
screenshots
Typeobject[]
Notes{ data, mime, alt }. alt is the screen-reader text and is required, not optional.
webUrl
Typestring | null
NotesWhere launch redirects. Required before publishing.
iosUrl
Typestring | null
NotesApp Store link, if the product ships one.
androidUrl
Typestring | null
NotesPlay Store link, if the product ships one.
displayOrder
Typenumber
NotesCatalog ordering, ascending.

Launch parameters are the application's, not the catalogue's

presentation no longer carries a launch mode or a featured flag. What App Center appends to webUrl is declared by the receiving application in its assigned-apps capability answer (launchParams), and the featured row is gone — the listing sorts by displayOrder alone.

Where the rest lives

Something here out of date or unclear?

The platform team answers integration questions directly.

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