OpenapiBilling
Submit_iap_receipt
POST
bearer_authheader
AuthorizationBearer <token>application/json- body
Mobile App submits this after the store purchase completes.
productId*stringStore product id (resolves the local entitlement mapping).
provider*string"apple" or "google".
receipt*stringApple StoreKit 2 jwsRepresentation (JWS) or Google purchaseToken.
targetId*stringEntitlement mapping id (mobile App obtains it from the list endpoint).
Format
uuidtargetType*stringAlways "entitlement_mapping".
Receipt processed
application/json- response
Stripe/Creem branded PaymentContext.
attemptId*stringFormat
uuidbillingType?string|nullentitlementKey?string|nullfailureReason?|Why a failed submission failed. Receipt verification failures are
rejected with 422 before any attempt row exists, so a failed in this
response always means fulfillment failed after a verified receipt —
the same value mark_failed_for_async_recovery records on the attempt
(provider_status), echoed verbatim on idempotent re-submissions.
status*string"succeeded" / "pending" / "failed".
curl -X POST 'https://example.com/api/bill/purchase/iap/receipt' \
-H 'Content-Type: application/json' \
-d '{
"productId": "string",
"provider": "string",
"receipt": "string",
"targetId": "cbca1126-180e-4334-9df8-cf82289d378b",
"targetType": "string"
}'Example Response
{
"attemptId": "ff88f33b-bb8d-4c28-947a-07ff3d628b10",
"billingType": "string",
"entitlementKey": "string",
"failureReason": "string",
"status": "string"
}