Skip to content

Verify an Apple StoreKit 2 purchase and activate the subscription

POST
/api/billing/verify-apple-purchase

Owner-only. Verifies a signed transaction from the iOS app and flips the band to Pro on success.

object
signedTransaction
required
string
>= 1 characters
appAccountToken
string

Purchase verified, subscription active

object
ok
required
boolean
data
required
object
status
required
string
Allowed values: active
expiresDate
string format: date-time

Invalid transaction or unknown product

object
ok
required
boolean
error
required
string
code
string

Not in any band

object
ok
required
boolean
error
required
string
code
string

Already subscribed via web

object
ok
required
boolean
error
required
string
code
string

Server error

object
ok
required
boolean
error
required
string
code
string