POST
/v1/customers/apple/synchronizeSynchronize Apple purchases
Verifies an AppTransaction JWS and optional transaction JWS values, stores the verified purchases, and returns the current entitlements.
Authentication: None
Request body
signedAppTransactionRequiredstringA signed StoreKit AppTransaction JWS value.
signedTransactionsOptionalstring[]Optional StoreKit transaction JWS values.
applicationAccountIdentifierOptionalstring | nullAn optional stable account identifier from the application.
Responses
200The synchronized customer's current entitlements.
customerIdentifierRequiredstring | null · uuidThe Purpl customer identifier, when a customer was resolved.
entitlementsRequiredCustomerEntitlement[]400The request body, parameter, or verified store payload is invalid.
errorRequiredstringA stable machine-readable error code.
404The application, store configuration, customer, or paywall was not found.
errorRequiredstringA stable machine-readable error code.
409The customer identity conflicts with an existing verified identity.
errorRequiredstringA stable machine-readable error code.
Request example
cURL
curl 'https://api.purpl.sh/v1/customers/apple/synchronize' \
--header 'Content-Type: application/json' \
--data '{
"signedAppTransaction": "<app-transaction-jws>",
"signedTransactions": ["<transaction-jws>"],
"applicationAccountIdentifier": "user-123"
}'