curl --request POST \
--url http://0.0.0.0:3000/v1/billing/mobile-receipt/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "apple",
"planId": 2,
"receiptData": "eyJhbGciOiJFUzI1NiIs..."
}
'{
"status": true,
"data": {
"id": 12,
"plan_id": 2,
"gateway_provider": "apple",
"status": "active"
}
}Validates a JWS transaction returned by StoreKit (iOS) or Google Play Billing and creates/updates the corresponding subscription. iOS-only in this version — Android continues to use Stripe via the web checkout.
curl --request POST \
--url http://0.0.0.0:3000/v1/billing/mobile-receipt/validate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "apple",
"planId": 2,
"receiptData": "eyJhbGciOiJFUzI1NiIs..."
}
'{
"status": true,
"data": {
"id": 12,
"plan_id": 2,
"gateway_provider": "apple",
"status": "active"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.unicontrol.me/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Subscription created or updated