Application API
The four reads your backend can make: the application, a person, a business profile and a subscription.
Base URL: https://apps-api.versified.com.gh/appcenter/v3/app. Every route needs appcenter:service, and no route takes an application id — the client on the token decides which application is being served.
GET /me- ReturnsThe application this client is bound to, plus its client id
GET /users/:userUuid- ReturnsOne person, their business profile, and their subscriptions to your application
GET /users?email=|emails=|uuids=- ReturnsExactly one selector.
emailis a substring search;emailsanduuidsare exact batches of up to 100 GET /businesses/:accountUuid- ReturnsThe public business profile for an account owner
GET /businesses/:accountUuid/logo- ReturnsThe logo as a base64 data URL, for receipts and rendered reports
GET /subscriptions/:accountUuid- ReturnsPlan identity for your application only — code, tier, interval, dates, status
One envelope, both directions
A 2xx answer is { success: true, data }; a failure is { success: false, error: { code, message } }. Branch on error.code, never on message. The credential failures (401 UNAUTHENTICATED, 403 service_token_required, 403 app_not_bound) and 429 RATE_LIMITED are the same on every route and are documented once on Errors.
The application
Call this once at boot. It answers with the application the token's client is bound to, which turns a misconfigured client_secret or a forgotten assignment into one obvious log line.
/meappcenter:serviceSelf-description: which application this credential serves, and which client sent it.
Headers
- Authorization
Bearer <access_token>- Accept
application/json
{
"success": true,
"data": {
"application": {
"id": 3,
"shortCode": "VPOS",
"name": "Retill",
"status": "published"
},
"clientId": "retill-backend"
}
}clientId is the client that minted the token — it always equals the client_id you sent.
A person
/users/:userUuidappcenter:serviceOne person, the business profile they own, and their subscriptions to your application only.
Parameters
userUuidstring · pathrequired- The App Center user uuid — the same value as the access token's
sub.
{
"success": true,
"data": {
"user": {
"useruuid": "0d5a…",
"email": "ama@example.com",
"firstname": "Ama",
"lastname": "Mensah",
"profileimage": "https://cdn.versified.com.gh/a/0d5a….jpg",
"createddate": "2025-03-14T09:21:07.000Z"
},
"business": {
"name": "Ama's Mart",
"email": "hello@amasmart.gh",
"phone": "+233 24 000 0000",
"address": "12 Oxford Street, Osu, Accra",
"profileImage": "https://cdn.versified.com.gh/b/7f31….png"
},
"subscriptions": [
{
"id": 412,
"planCode": "pro-monthly",
"planName": "Pro",
"accessTier": "pro",
"interval": "monthly",
"legacyPlan": "PRO",
"status": "active",
"startDate": "2026-11-08T00:00:00.000Z",
"endDate": "2026-12-08T00:00:00.000Z",
"active": true,
"daysRemaining": 30
}
]
}
}business is a sibling of user, not nested inside it, and is null when the account owns no business.
{
"success": false,
"error": {
"code": "NOT_FOUND",
"message": "User does not exist"
}
}Failures to handle
- 404
NOT_FOUND - No user row carries that
useruuid— a deleted account, or a uuid from another platform. - 422
VALIDATION_FAILED useruuidis empty. The body lists the offendingpath.
subscriptionsis filtered byappIdat the query, so an application never sees another application's plan.- The six
userfields are the platform's whole answer about a person: no id, no credential, no role.
One fixed shape
The user row is intentionally rigid. If you proxy it to your own clients, copy it through unchanged — do not re-map, rename or filter fields. Every application on the platform reads the same shape, and drift breaks the shared contract.
Searching and batching
/usersappcenter:serviceFind people by email fragment, or resolve an exact batch by email or uuid. Exactly one selector per request.
Query parameters
emailstring- Case-sensitive
LIKE %…%search for operator-facing pickers. Never use it to resolve a person from a claim. emailsstring · comma list ≤ 100- Exact, case-insensitive batch. Duplicates are removed before the query.
uuidsstring · comma list ≤ 100- Exact batch by
useruuid. The reconciliation path after a missed webhook. limitinteger 1–50 · default 20- Applies to
emailonly. Batches return at most the 100 ids you sent.
{
"success": true,
"data": {
"users": [
{
"useruuid": "0d5a…",
"email": "ama@example.com",
"firstname": "Ama",
"lastname": "Mensah",
"profileimage": "https://cdn.versified.com.gh/a/0d5a….jpg",
"createddate": "2025-03-14T09:21:07.000Z"
}
]
}
}No match is 200 with an empty array — never a 404.
{
"success": false,
"error": {
"code": "VALIDATION_FAILED",
"message": "Validation failed",
"fields": [
{
"path": "email",
"message": "Provide exactly one of email, emails or uuids"
}
]
}
}Failures to handle
- 422
VALIDATION_FAILED - Zero or two selectors were sent, a batch exceeded 100 values, or an address is not an email.
- Chunk anything larger than 100 values; there is no paging cursor on this route.
- Send the comma list URL-encoded:
?uuids=a%2Cb.
A business
/businesses/:accountUuidappcenter:serviceThe public face of an account — name, contact details and imagery — for receipts and rendered reports.
Parameters
accountUuidstring · pathrequired- The account owner's user uuid, not a business id of your own.
{
"success": true,
"data": {
"business": {
"name": "Ama's Mart",
"email": "hello@amasmart.gh",
"phone": "+233 24 000 0000",
"address": "12 Oxford Street, Osu, Accra",
"profileImage": "https://cdn.versified.com.gh/b/7f31….png"
}
}
}business is null — still 200 — when the account owns no business yet.
Failures to handle
- 404
NOT_FOUND Account not found— no user carries that uuid.
/businesses/:accountUuid/logoappcenter:serviceThe same logo, inlined as a base64 data URL so a PDF or a thermal receipt needs no second fetch.
{
"success": true,
"data": {
"businessLogoDataUrl": "data:image/png;base64,iVBORw0KGgo…"
}
}null when the business has no logo, or when the image could not be fetched.
Failures to handle
- 404
NOT_FOUND Account not found— no user carries that uuid.
- The fetch happens on App Center's side, so a large logo still answers once. Cache the result; it only changes on
business.updated.
A subscription
/subscriptions/:accountUuidappcenter:servicePlan identity for your application only. An empty list is a valid answer, not an error.
Parameters
accountUuidstring · pathrequired- The account owner's user uuid.
{
"success": true,
"data": {
"subscriptions": [
{
"id": 412,
"planCode": "pro-monthly",
"planName": "Pro",
"accessTier": "pro",
"interval": "monthly",
"legacyPlan": "PRO",
"status": "active",
"startDate": "2026-11-08T00:00:00.000Z",
"endDate": "2026-12-08T00:00:00.000Z",
"active": true,
"daysRemaining": 30
}
]
}
}Ordered by endDate descending, so subscriptions[0] is the most recent.
{
"success": true,
"data": {
"subscriptions": []
}
}Also what an unknown accountUuid returns: this route never 404s.
accessTieris lowercase —basic,pro,premium,enterprise— and isnullon a pre-catalogue subscription.statusis computed at read time:pendingbeforestartDate,expiredafterendDate. Useactivewhen you want one boolean.legacyPlancarries the pre-catalogue tier label unchanged;planCodeandplanNamearenullon those rows.daysRemainingis0once the subscription is inactive. It counts whole days toendDate, rounded up.- No field here is a limit. Ceilings live in your product — see Owning your plan limits.
Subscriptions are identity, not policy
GET /subscriptions/:accountUuid tells you which plan and whether it is active. It never tells you how many shops, users or seats that allows. Those numbers are yours.
Something here out of date or unclear?
The platform team answers integration questions directly.
