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 | nullmeans the key is always present and the value may benull. 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.
{
"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.
{
"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- Type
string - NotesStable identity for the person across every application. Store this; never key on email.
email- Type
string - NotesVerified by the identity provider at sign-up. It can change,
useruuidcannot. firstname- Type
string | null - NotesAs the person entered it. Not guaranteed present.
lastname- Type
string | null - NotesAs the person entered it. Not guaranteed present.
profileimage- Type
string | null - NotesAbsolute URL, or
nullwhen nobody uploaded a picture. Safe to render directly. createddate- Type
string | 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.
{
"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- Type
string | null - NotesTrading name the owner entered.
email- Type
string | null - NotesContact email for the business, not the person's sign-in address.
phone- Type
string | null - NotesFree text. Numbers are not normalised to E.164.
address- Type
string | null - NotesOne line, as typed. No street/city/postcode split.
profileImage- Type
string | 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.
{
"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- Type
number - NotesThe subscription row. Stable across renewals of the same subscription.
planCode- Type
string | null - NotesThe plan's
code.nullonly for rows sold before the plan catalogue existed. planName- Type
string | null - NotesDisplay name at read time. Follows an admin rename.
accessTier- Type
string | null - Notes
basic,pro,premiumorenterprise. The only field App Center expects you to map to limits. interval- Type
string | null - Notes
monthlyorannual. legacyPlan- Type
string - NotesThe tier captured at purchase. It keeps its value when a plan is re-tiered, so read
accessTierfor the current one. status- Type
string - Notes
activewhile the end date is ahead,expiredonce it has passed. Derived, never stored. startDate- Type
string - NotesISO 8601. When this period began.
endDate- Type
string - NotesISO 8601. When access stops.
active- Type
boolean - Notes
status === "active", precomputed. Branch on this. daysRemaining- Type
number - NotesWhole days until
endDate, floored at0. 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.
{
"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- Type
number - NotesUse it in the path of every webhook call.
url- Type
string - NotesAbsolute HTTPS receiver. Unique per application — two webhooks cannot share a URL.
description- Type
string | null - NotesYour own label, up to 200 characters.
events- Type
string[] - NotesThe subscribed event names, or
["*"]for everything.pingis never listed. active- Type
boolean - NotesA paused webhook keeps its history and stops receiving.
version- Type
number - NotesOptimistic lock. Send it with
PATCHandDELETE. consecutiveFailures- Type
number - NotesResets to
0on the next successful delivery. Useful for alerting on a wedged receiver. lastDeliveryAt- Type
string | null - NotesAny attempt, successful or not.
lastSuccessAt- Type
string | null - NotesThe last
2xx. lastFailureAt- Type
string | null - NotesThe last non-
2xx, timeout or connection error. createdAt- Type
string - NotesISO 8601.
updatedAt- Type
string - 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.
{
"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- Type
string - NotesUUID. Also sent to your receiver as
X-AppCenter-Delivery, which is the key you deduplicate on. webhookId- Type
number - NotesThe registration the event was sent to.
event- Type
string - NotesThe event name, e.g.
subscription.created. status- Type
string - Notes
pendingwhile retries remain,deliveredon the first2xx,exhaustedafter the last attempt. attempts- Type
number - NotesHow many times the receiver was called, including the first.
responseStatus- Type
number | null - NotesThe HTTP status your receiver answered.
nullif it never answered. responseBody- Type
string | null - NotesThe first 2,048 bytes of your body, stored verbatim. Enough for an error message, not a data channel.
error- Type
string | null - NotesTransport failure — DNS, TLS, timeout — when there was no HTTP status.
deliveredAt- Type
string | null - NotesSet only when a
2xxarrived. createdAt- Type
string - 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.
{
"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- Type
string - NotesDelivery UUID. Identical on every retry of the same event.
event- Type
string - NotesOne of the ten event names, or
ping. occurredAt- Type
string - NotesWhen the platform committed the change — not when the delivery was attempted.
app- Type
object - Notes
{ id, shortCode }of the sending application, so a shared receiver can route.
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.
{
"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- Type
number - NotesNumeric id used in every admin path and in
app.idon events. shortCode- Type
string - NotesStable upper-case code. Metadata only — it grants no API access, and first-party services treat it as immutable.
status- Type
string - Notes
draft,publishedorarchived. listed- Type
boolean - Notes
falsekeeps a published application out ofGET /catalog/appswhile subscribers keep seeing it. version- Type
number - NotesOptimistic lock. A stale value is
409 VERSION_CONFLICT. previousStatus- Type
string | null - NotesWhat
restorereturns the listing to. description- Type
string | null - NotesFull listing copy, up to 5,000 characters.
shortDescription- Type
string | null - NotesCatalog tile summary.
tagline- Type
string | null - NotesOne line for cards and search.
image- Type
string | null - NotesLegacy single image URL. Uploaded imagery lives in
presentation. price,basic,pro,premium- Type
number - NotesLegacy pricing in major units (cedis), kept for older clients. Plans are the source of truth.
presentation- Type
object | null - NotesCategory, imagery, launch URLs — see Presentation below.
createddate- Type
string - NotesISO 8601. Lower-case field name, unlike every other date on the platform.
updateddate- Type
string - NotesISO 8601.
archivedAt- Type
string | null - NotesSet by
archive, cleared byrestore. archivedByEmail- Type
string | null - NotesWho archived it.
updatedByEmail- Type
string | null - NotesWho last wrote.
isArchived- Type
boolean - NotesConvenience flags computed from
status. isPublished- Type
boolean - NotesConvenience flags computed from
status. clientCount- Type
number - NotesRegistered OAuth clients, active or not.
activeClientCount- Type
number - NotesClients that can still authenticate.
clients- Type
object[] - NotesClient records, or
[]without the privilege. clientDetailsVisible- Type
boolean - Notes
falsemeans 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.
{
"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- Type
number - NotesPlan row id, used in
PATCHand archive paths. appId- Type
number - NotesThe owning application.
code- Type
string - NotesUnique per application,
^[a-z0-9][a-z0-9_-]*$. Immutable once written. name- Type
string - NotesPlan card title.
description- Type
string | null - NotesUp to 2,000 characters.
features- Type
string[] - NotesBullet points.
[]rather thannullwhen empty. interval- Type
string - Notes
monthlyorannual. amountMinor- Type
number | null - NotesMinor units —
4500is GH₵ 45.00.nullfor a plan with no price; such a plan cannot beactive. currency- Type
string - NotesAlways
GHS. accessTier- Type
string - Notes
basic,pro,premiumorenterprise. Absent from the public catalog object. status- Type
string - Notes
draft,activeorarchived. Onlyactivecan be bought. previousStatus- Type
string | null - NotesWhat
restorereturns the plan to. displayOrder- Type
number - NotesSort position on the pricing grid.
featured- Type
boolean - NotesHighlight flag.
version- Type
number - NotesOptimistic lock for
PATCHand the archive/restore verbs. legacyType- Type
string | null - NotesCompatibility identity assigned only by the one-time backfill.
nullfor anything created through the API. createdAt- Type
string - NotesISO 8601.
updatedAt- Type
string - 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.
{
"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- Type
string - NotesThe
client_idyour app sends. Immutable. appId- Type
number | null - NotesThe owning application.
nullonly for a legacy client awaiting assignment. appName- Type
string | null - NotesThat application's display name.
profile- Type
string - Notes
public_pkce,confidential_weborconfidential_service. Immutable. profileLabel- Type
string - NotesHuman label for the profile, for admin screens.
profileSource- Type
string - Notes
storedfor rows created here,inferredfor legacy rows. name- Type
string - NotesYour own label, up to 100 characters.
redirectUris- Type
string[] - NotesExact-match callbacks. Up to 10. Empty for a service client.
postLogoutRedirectUris- Type
string[] - NotesWhere RP-initiated logout may return to.
grantTypes- Type
string[] - NotesDerived from the profile. You cannot widen it.
responseTypes- Type
string[] - NotesAlways
["code"]— no implicit or hybrid flow exists. tokenEndpointAuthMethod- Type
string - Notes
client_secret_basicornone. scopes- Type
string[] - NotesOIDC scopes plus one per assigned resource.
resources- Type
string[] - NotesThe audience allow-list, at most three.
trusted- Type
boolean - NotesSkips the consent screen. First-party clients are trusted; a third-party client must leave this
false. logoutScope- Type
client|session - NotesWhat RP-initiated logout does:
client(the default) revokes only this client's grant and keeps the shared Versified session,sessionends the session for every app. active- Type
boolean - Notes
falserefuses new authorizations and token requests without deleting the row. version- Type
number - NotesOptimistic lock for
PATCH. hasSecret- Type
boolean - NotesWhether a secret exists — never the secret itself.
secretUpdatedAt- Type
string | null - NotesWhen it was last issued or rotated.
secretUpdatedByEmail- Type
string | null - NotesWho rotated it. The audit trail names the actor.
createdByEmail- Type
string | null - NotesWho registered it.
updatedByEmail- Type
string | null - NotesWho last wrote.
nulluntil the first edit. createdAt- Type
string | null - NotesISO 8601.
updatedAt- Type
string | null - NotesISO 8601.
needsAssignment- Type
boolean - NotesA legacy client with no application — it still authenticates but is read-only here.
editable- Type
boolean - NotesFalse when the record cannot be written through this surface.
isProtected- Type
boolean - 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": "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- Type
string - NotesOne of
assigned-apps,account-deletion,membership-leave. enabled- Type
boolean - NotesA disabled declaration keeps its URL but is skipped when App Center fans out.
endpointUrl- Type
string | null - NotesThe URL App Center POSTs or GETs.
nulluntil declared. timeoutMs- Type
number - NotesHow long App Center waits before recording a timeout. 1,000–15,000 ms, default 5,000. Commands get a much longer budget.
serviceResource- Type
string - 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- Type
string - NotesThe scope on that token. Defaults to
<slug>:serviceand must be one of the chosen resource's scopes. serviceAudienceSupported- Type
boolean - Notes
trueonly when the platform's identity provider issues that exact resource/scope pair. A third-party audience is usuallyfalse— validate the token yourself. contractVersion- Type
string - NotesRevision of the request/response contract App Center speaks.
kind- Type
string - Notes
query(fanned out GET),command(addressed POST) orboth. userScoped- Type
boolean - NotesThe call names one person in
?userUuid=. standardPath- Type
string - NotesThe conventional path. Informative — the registered
endpointUrlis what gets called. version- Type
number - NotesIncrements on every declaration write.
lastCheckedAt- Type
string | null - NotesWhen the last conformance test ran.
lastCheckStatus- Type
string | null - Notes
okorerror. lastCheckHttpStatus- Type
number | null - NotesWhat your endpoint answered.
lastCheckDurationMs- Type
number | null - NotesHow long it took.
lastCheckMessage- Type
string | null - NotesThe failure reason, spelled out so an operator can fix it without logs.
lastCheckedByEmail- Type
string | null - NotesWho ran the test.
updatedAt- Type
string | 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.
{
"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- Type
string | null - NotesOne of the eight fixed categories. Free text is refused by the validator.
tags- Type
string[] - NotesCatalog search keywords.
logo,cover- Type
object | null - Notes
{ data, mime }.datais raw base64 with no `data:` prefix — build the URL frommime. monogram- Type
string | null - NotesUp to five characters, used when no logo is uploaded.
screenshots- Type
object[] - Notes
{ data, mime, alt }.altis the screen-reader text and is required, not optional. webUrl- Type
string | null - NotesWhere launch redirects. Required before publishing.
iosUrl- Type
string | null - NotesApp Store link, if the product ships one.
androidUrl- Type
string | null - NotesPlay Store link, if the product ships one.
displayOrder- Type
number - 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.
