Sync StoreKit Transaction
Changed onForwards a StoreKit 2 JWS (JSON Web Signature) transaction to ZeroSettle for verification and recording. The backend verifies the JWS against Apple's root certificate chain, creates a Transaction and Entitlement, and returns success. The SDK should call transaction.finish() only after receiving a success response.
SDK 1.3+ additionally forwards will_auto_renew (pulled from Product.SubscriptionInfo.RenewalInfo.willAutoRenew) on every sync. The backend diffs this against the stored entitlement state and emits CANCELLED / REACTIVATED events when the flag flips, so auto-renew state stays accurate even in deployments without App Store Server Notifications (ASSN) v2 configured.
Request
- Base URLhttps://api.zerosettle.io/v1
- URLhttps://api.zerosettle.io/v1/iap/storekit-transactions
- AuthAPI key in header X-ZeroSettle-Key
Request body
Response
Transaction synced successfully
Example response
{
"status": "ok"
}Changes
- info
added the non-success response with the status
- info
- info
added the optional property
to the response with the status
- info