Skip to main content
← All documentationContents ↓

API Reference: App Store (Purchases & Entitlements)

Verify Apple App Store and Google Play purchases, list a constituent's entitlements, and issue secure download URLs for purchased content.

Overview

The App Store API supports mobile apps that sell content through Apple's App Store or Google Play. After a user completes an in-app purchase, your mobile client posts the platform-issued transaction to Simply360, which verifies it with Apple/Google and records the purchase as an entitlement. From then on, Simply360 is the source of truth for what the user owns — you query entitlements to gate access to content, and you generate signed download URLs for files the user has purchased.

Use this API alongside the Constituent Authentication flow — the access token from constituent auth is what authorizes the purchase and entitlement endpoints. An app may separately publish an anonymous title catalog for pre-sign-in discovery; that endpoint never grants access or accepts purchase evidence. A separate set of admin endpoints lets Team Admins manage the App Store app configuration and review purchases.

Endpoints

MethodPathPurpose
GET/v1/app-store/public-catalogList safe released-title metadata for an app that explicitly publishes an anonymous digital-library storefront.
POST/v1/app-store/purchases/verifyVerify a platform transaction and record the purchase.
GET/v1/app-store/purchases/google-context/{appStoreAppSimplyId}Get the authenticated constituent's safe Play obfuscated-account binding before launching a Google purchase.
GET/v1/app-store/entitlementsList the current constituent's entitlements for a specific app.
GET/v1/app-store/entitlements/{contentSimplyId}Check a single piece of content for entitlement (boolean + purchase metadata).
GET/v1/app-store/content/{contentSimplyId}/downloadGet an installation-bound protected-content download for an entitled constituent.

Discover Titles Before Sign-In

GET /v1/app-store/public-catalog requires the public teamConstituentMobileAppSimplyId and appStoreAppSimplyId query values and accepts bounded offset/limit pagination. It is available only when the exact LIVE branded app and its exact published runtime explicitly opt in with an anonymous Digital Library block and matching Content Library target.

The response is limited to released title, creator, description, safe cover File reference and short-lived cover URL, native product ID, access mode, media flags, accessibility summary, and publication date. It contains no Reader, entitlement, purchase, protected-package, File-version, encryption, or artifact evidence. Display prices still come from StoreKit or Play Billing rather than this API. A mobile client can use a selected public title to begin its verification journey, but must establish the app-scoped constituent session before opening the provider purchase sheet or posting purchase evidence.

curl -s "https://api.simply360.app/v1/app-store/public-catalog?teamConstituentMobileAppSimplyId=APPM-1234-ABCD&appStoreAppSimplyId=APPS-1234-ABCD&offset=0&limit=50"

Verify a Purchase

After your mobile client receives a purchase confirmation, post the transaction details. appStoreAppSimplyId and platform (apple or google) are always required. Apple requires transactionId. Google requires purchaseToken and productId; the purchase token is the provider identity, not the Google order ID. The Play Billing adapter must also set the server-issued constituent binding as Play's obfuscated account ID when it launches the purchase. Re-verifying an already-recorded purchase is idempotent and completes acknowledgment only after the durable entitlement exists.

TypeScript SDK

const verification = await s360.appStore.verifyPurchase({
  appStoreAppSimplyId: 'APPS-1234-ABCD',
  platform: 'apple', // or 'google'
  transactionId: 'transaction-id-from-platform', // Apple only
  purchaseToken: 'platform-purchase-token', // Google only; never use orderId
  productId: 'product-id-as-configured-in-store', // Google only
});

// verification.data.isEntitled tells you whether the user can access the content right now.
// verification.data.purchaseSimplyId, .productId, and .status describe the recorded purchase.

Google RTDN deployment configuration

Google Play RTDN is a server-to-server integration, not a client API. Each deployed backend must configure GOOGLE_PUBSUB_WEBHOOK_AUDIENCE, GOOGLE_PUBSUB_WEBHOOK_SERVICE_ACCOUNT_EMAIL, and GOOGLE_PUBSUB_WEBHOOK_SUBSCRIPTION together before creating its Cloud Pub/Sub authenticated push subscription. The audience, push service-account email, and fully qualified subscription resource must exactly match the configured subscription. The webhook fails closed when any value is absent or does not match.

cURL

curl -s -X POST "https://api.simply360.app/v1/app-store/purchases/verify" \
  -H "Authorization: Bearer $CONSTITUENT_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "appStoreAppSimplyId": "APPS-1234-ABCD",
    "platform": "apple",
    "transactionId": "1000000123456789"
  }'

List Entitlements

Returns every active entitlement for the authenticated constituent on a given app (the appStoreAppSimplyId query parameter is required). Useful for hydrating a mobile app's "what do I own" screen. Each entitlement includes public purchaseSimplyId and contentSimplyId values, plus productId, status, and expiresAt. Internal numeric record IDs are never returned.

const result = await s360.appStore.getEntitlements({
  appStoreAppSimplyId: 'APPS-1234-ABCD',
});

for (const entitlement of result.data.entitlements) {
  console.log(`${entitlement.productId}: ${entitlement.status}, expires ${entitlement.expiresAt ?? 'never'}`);
}
curl -s "https://api.simply360.app/v1/app-store/entitlements?appStoreAppSimplyId=APPS-1234-ABCD" \
  -H "Authorization: Bearer $CONSTITUENT_ACCESS_TOKEN"

Check Entitlement for One Item

When you only need to gate a single piece of content, this returns a focused boolean plus the most recent qualifying purchase:

const check = await s360.appStore.checkEntitlement('CONT-1234-ABCD', {
  appStoreAppSimplyId: 'APPA-1234-ABCD',
});
if (check.data.isEntitled) {
  // Render the content / show the download button
}
curl -s "https://api.simply360.app/v1/app-store/entitlements/CONT-1234-ABCD?appStoreAppSimplyId=APPA-1234-ABCD" \
  -H "Authorization: Bearer $CONSTITUENT_ACCESS_TOKEN"

Download Purchased Content

Generates an exact-evidence protected package plus an installation-bound key envelope. The path contentSimplyId and query appStoreAppSimplyId and deviceSimplyId are all required public Simply IDs. The constituent session must be scoped to the exact branded app, the device must be an authenticated native IOS or ANDROID installation registered to that constituent with a valid RSA-OAEP-256 content key, and the constituent must hold an active entitlement for the current configured File version. WEB_PREVIEW cannot register a content key or receive this download. The server validates canonical RSA SPKI evidence and a 2048-bit minimum, but v1 does not hardware-attest or otherwise guarantee that the private key is non-exportable. Requests that fail any binding return a bounded 400, 403, or 404 error without keys or source-object evidence.

downloadUrl expires after 15 minutes (expiresIn: 900) and is a bearer capability. It can include provider storage coordinates and an opaque random artifact path, so treat the whole URL as secret: do not log it, persist it in analytics, navigate to it with a referrer, email it, or share it. Send every entry in requiredHeaders exactly when fetching; for an unversioned object this includes if-match, which binds the request to the exact artifact ETag. The response contains no raw content key, internal numeric ID, source object coordinate, or device public key.

const download = await s360.appStore.downloadContent('CONT-1234-ABCD', {
  appStoreAppSimplyId: 'APPS-1234-ABCD',
  deviceSimplyId: 'DEVC-1234-ABCD',
});

// Treat downloadUrl as a short-lived secret bearer capability.
// Fetch it with every requiredHeaders entry, then verify protectedPackage evidence.
// contentKeyEnvelope is wrapped to the registered installation key.
curl -s "https://api.simply360.app/v1/app-store/content/CONT-1234-ABCD/download?appStoreAppSimplyId=APPS-1234-ABCD&deviceSimplyId=DEVC-1234-ABCD" \
  -H "Authorization: Bearer $CONSTITUENT_ACCESS_TOKEN"

Subscription Renewals

Simply360 receives the platforms' server-to-server notifications directly: configure Apple App Store Server Notifications and Google Play Real-Time Developer Notifications to point at the Simply360 webhook endpoints for your app (/v1/app-store/webhooks/apple/{appStoreAppSimplyId} and /v1/app-store/webhooks/google/{appStoreAppSimplyId}). Renewals, cancellations, expirations, and refunds then update isEntitled automatically — your client just re-reads entitlements.

Admin Endpoints

Team Admins manage the App Store integration itself through /v1/app-store/admin/apps. These endpoints require Cognito user authentication plus the APP_STORE_INTEGRATION feature permission; provider credentials are write-only and never returned.

MethodPathPurposeSDK
GET/v1/app-store/admin/appsList the team's App Store app integrations.s360.appStore.admin.listApps()
POST/v1/app-store/admin/appsCreate an app integration.s360.appStore.admin.createApp(input)
PUT/v1/app-store/admin/apps/{appSimplyId}Update an app integration (only supplied fields change).s360.appStore.admin.updateApp(id, input)
POST/v1/app-store/admin/apps/{appSimplyId}/content/{contentSimplyId}/releaseRelease one protected-content-ready content item to the constituent catalog.s360.appStore.admin.releaseContent(appId, contentId)
DELETE/v1/app-store/admin/apps/{appSimplyId}/content/{contentSimplyId}/releaseWithdraw one content item from the constituent catalog.s360.appStore.admin.unreleaseContent(appId, contentId)
GET/v1/app-store/admin/apps/{appSimplyId}/content/{contentSimplyId}/acceptanceRead the content item's acceptance readiness and any pending validation or review requirements.s360.appStore.admin.getContentAcceptance(appId, contentId)
POST/v1/app-store/admin/apps/{appSimplyId}/content/{contentSimplyId}/acceptanceAccept the current source version with a signed validation receipt from a registered signer.s360.appStore.admin.acceptContent(appId, contentId, input)
POST/v1/app-store/admin/apps/{appSimplyId}/content/{contentSimplyId}/accessibility-reviewRecord a manual accessibility review (PASS, FAIL, or BETA_WAIVER) for the accepted source version.s360.appStore.admin.recordContentAccessibilityReview(appId, contentId, input)
GET/v1/app-store/admin/content-evidence-signersList all validation signers registered for the team.s360.appStore.admin.listContentEvidenceSigners()
POST/v1/app-store/admin/content-evidence-signersRegister a new validation signer for content evidence receipts (Ed25519 key in PEM format).s360.appStore.admin.registerContentEvidenceSigner(input)
DELETE/v1/app-store/admin/content-evidence-signers/{signerSimplyId}Revoke a validation signer; releases gated on its receipts will fail.s360.appStore.admin.revokeContentEvidenceSigner(signerSimplyId)
GET/v1/app-store/admin/apps/{appSimplyId}/purchasesList purchases (filters: status, platform; paginated).s360.appStore.admin.listPurchases(id, query)
GET/v1/app-store/admin/apps/{appSimplyId}/statsAggregate purchase stats for an app.s360.appStore.admin.getStats(id)

Digital Publishing Content Acceptance (D6)

Before a content item can be released to the constituent catalog, it must complete a validation workflow that proves content integrity. This happens through the acceptance API: a Team Admin validates the current source version using the external validators for its content format (for an EPUB, EPUBCheck for conformance and DAISY Ace for accessibility), creates a cryptographically signed receipt, and submits it alongside the content item ID. The receipt binds the validation results to that exact source version and is signed with an Ed25519 private key whose public key was previously registered with the team. Simply360 verifies the signature and records the acceptance decision (either ACCEPTED or QUARANTINED).

Validation signers. Register one or more Ed25519 key pairs to your team, then use the private key to sign validation receipts. Each key is stored as a public-key fingerprint; the private key is never shared with or stored by Simply360. Signers can be revoked at any time, which prevents future releases from relying on receipts they signed. Revocation does not affect already-released content items.

// Register a new signer with a public key (PEM format)
const signer = await s360.appStore.admin.registerContentEvidenceSigner({
  label: 'CI Build Signer',
  publicKeyPem: '-----BEGIN PUBLIC KEY-----\nMC4wBQYDK2VwAyEA...\n-----END PUBLIC KEY-----\n',
});

// List all signers for the team
const signers = await s360.appStore.admin.listContentEvidenceSigners();

// Revoke a signer by ID
await s360.appStore.admin.revokeContentEvidenceSigner('SIGN-1234-ABCD');

Acceptance readiness and flow. Check whether a content item is ready to accept by reading its current validation status, source file version, protected artifact readiness, and any pending acceptance or release blockers:

const readiness = await s360.appStore.admin.getContentAcceptance(
  'APPS-1234-ABCD',
  'BOOK-1234-ABCD',
);

// readiness.acceptBlockers lists what must be resolved before acceptance is allowed
// readiness.releaseBlockers lists what must be resolved before release is allowed

Accept a content item. Submit a validation receipt signed by a registered signer. The receipt includes exact source bytes, EPUBCheck counts, and the DAISY Ace violation count; the EPUB receipt format is signed evidence and keeps its own key names. An ACCEPTED decision also projects the content item's accessibility metadata into the system-managed fields so release can inspect them. A QUARANTINED decision records a definitive content defect for audit and moves the content item to quarantined status. The acceptance result names the content item (contentSimplyId) and its format (contentFormat), and reports each validator's outcome in two objects: conformance (validator, validatorVersion, reportSha256, and the fatal, error, warning, and usage counts) and accessibility (validator, validatorVersion, reportSha256, and violationCount). A QUARANTINED decision lists its rejectionCodes: SUPPORTED_PROFILE_REJECTED when the scan rejected the supported profile, and CONFORMANCE_ERRORS when the conformance validator reported a fatal or error count above zero.

const acceptance = await s360.appStore.admin.acceptContent(
  'APPS-1234-ABCD',
  'BOOK-1234-ABCD',
  {
    signerSimplyId: 'SIGN-1234-ABCD',
    receipt: { // Use the type-safe validation receipt structure
      schemaVersion: 1,
      receiptType: 'simply360.publication-validation-receipt',
      teamSimplyId: 'TEAM-XXXX-XXXX',
      publicationSimplyId: 'BOOK-1234-ABCD',
      source: { sha256: 'abc123...', sizeBytes: 1024000 },
      epubCheck: {
        version: '5.2.2',
        reportSha256: 'def456...',
        fatalCount: 0,
        errorCount: 0,
        warningCount: 2,
        usageCount: 0,
      },
      ace: {
        version: '1.2.0',
        reportSha256: 'ghi789...',
        violationCount: 0,
      },
      validatedAt: '2026-09-23T14:30:00.000Z',
    },
    signature: 'base64EncodedEd25519Signature...',
  },
);

// acceptance.decision is 'ACCEPTED' or 'QUARANTINED'

Accessibility review. Before release, record the outcome of a manual accessibility review. A PASS outcome means the content item meets WCAG 2.2 AA standards. A BETA_WAIVER outcome documents a reasoned exception for closed testing only (provide a reason of at least 20 characters in waiverReason). Release cannot tell a closed test from public distribution and accepts either outcome, but a BETA_WAIVER must never be used for public distribution, which requires a PASS review. You may also record disposal decisions for specific issues found during EPUBCheck or Ace runs.

const review = await s360.appStore.admin.recordContentAccessibilityReview(
  'APPS-1234-ABCD',
  'BOOK-1234-ABCD',
  {
    acceptanceSimplyId: 'ACPT-1234-ABCD',
    outcome: 'PASS', // or 'FAIL' or 'BETA_WAIVER'
    reviewerName: 'Jane Smith',
    reviewerOrganization: 'Accessibility Team',
    reviewedOn: '2026-09-23',
    waiverReason: 'Custom charts lack alt text; plan to add in next edition.',
    dispositions: [
      {
        source: 'EPUBCHECK',
        reference: 'WARNING.OPF.001',
        disposition: 'ACCEPTED', // Issue noted but does not block release
      },
    ],
  },
);

// review.outcome is 'PASS', 'FAIL', or 'BETA_WAIVER'

Release requirements. A content item can only be released if the exact current source version has an ACCEPTED validation receipt from an active (non-revoked) signer, zero accessibility validator violations, and a PASS or BETA_WAIVER accessibility review outcome (a BETA_WAIVER for closed testing only, never for public distribution). Release is a catalog-visibility operation only — it does not create entitlements, provider products, or billing events.

Usage Notes

  • The public catalog is discovery only. It does not prove identity, ownership, purchase, or entitlement.
  • Purchase, entitlement, and download calls require the constituent access token (not a server API key) so Simply360 can attribute purchases and entitlements to the correct DataRecord person.
  • productId is the SKU as configured in App Store Connect / Google Play Console — map your platform SKUs to Simply360 content via the App Store admin in the dashboard.
  • A content item starts in draft status. It moves to ready (protected, not visible) only after acceptance with a valid receipt. Release revalidates the exact current File, protected artifact, and acceptance evidence before changing it to available. Release and withdrawal change catalog visibility only; they do not create grants, provider products, billing events, or remotely delete offline copies.
  • Validation receipts bind EPUBCheck and DAISY Ace results to the exact source bytes, signer identity, and team. Signers are registered via public key (Ed25519). The receipt itself is signed with the corresponding private key, which is never shared with Simply360. Revoking a signer does not affect content items already released with its receipts.
  • Entitlement state is webhook-driven with an expiry-window backstop. Don't cache isEntitled for long on the client without refreshing.
  • Content download URLs are not idempotent — each call generates a fresh URL. Don't email or share them; they're meant for the immediate download session only.
↑