Resolve Paywall
Header Parameters
x-distinct-id*string
x-distinct-id-encoding?|null
x-publishable-key*string
x-client-bundle-id*string
x-client-locale?string|null
x-client-version?string|null
x-is-backgrounded*string
Value in
- "true"
- "false"
x-is-debug-build*string
Value in
- "true"
- "false"
x-nonce?string|null
x-observer-mode*string
Value in
- "true"
- "false"
x-platform*string
x-platform-brand?string|null
x-platform-device?string|null
x-platform-flavor*string
Value in
- "native"
- "browser"
x-platform-flavor-version?string|null
x-platform-version?string|null
x-preferred-locales?string|null
x-sdk*string
Value in
- "react-native"
- "web"
- "ios"
- "android"
x-sdk-version*string
x-storefront?string|null
x-environment?|null
x-ui-package-abi?string|null
x-ui-guest-abi?string|null
x-ui-native-components?string|null
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
locationSlug*string
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/sdk/resolve-paywall" \ -H "x-distinct-id: string" \ -H "x-publishable-key: string" \ -H "x-client-bundle-id: string" \ -H "x-is-backgrounded: true" \ -H "x-is-debug-build: true" \ -H "x-observer-mode: true" \ -H "x-platform: string" \ -H "x-platform-flavor: native" \ -H "x-sdk: react-native" \ -H "x-sdk-version: string" \ -H "Content-Type: application/json" \ -d '{ "locationSlug": "string" }'{ "location": { "id": "string", "name": "string", "slug": "string" }, "showing": { "id": "string", "paywall": { "id": "string", "name": "string", "slug": "string" }, "paywallId": "string", "paywallRelease": { "flowPackage": { "abiVersion": 0, "kind": "string", "productIds": [ "string" ], "shouldEndFlowOnPurchase": true, "sha256": "string", "url": "string" }, "publishedAt": "string", "releaseId": "string", "version": 0 }, "paywallReleaseId": "string", "startedAt": "string", "type": "paywall_release" }}{ "_tag": "Api/SdkValidationError", "message": "string"}{ "_tag": "Api/AuthenticationError", "cause": "string", "message": "string"}{ "_tag": "Api/SdkServiceError", "cause": "string"}