Download OpenAPI specification:Download
This endpoint requires the following permission(s): project_configuration:offerings:read. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| starting_after | string Example: starting_after=ent12354 Pagination cursor. Pass the id of the last item from the previous page to fetch the next page; omit for the first page. |
| limit | integer Default: 20 Example: limit=10 Maximum number of items to return per page. Values below 1 or above 100 are clamped to that range rather than rejected. |
| expand | Array of strings[ items [ 1 .. 5000 ] characters ] Items Value: "items.offering" Example: expand=items.offering Specifies which fields in the response should be expanded.
Accepted values are: |
{- "object": "list",
- "items": [
- {
- "object": "paywall",
- "id": "pw123456789abcdef",
- "name": "My Awesome Paywall",
- "offering_id": "ofrng123456789a",
- "created_at": 1658399423658,
- "published_at": 1658399423958,
- "automatically_scale_font_size": true,
- "offering": {
- "state": "active",
- "object": "offering",
- "id": "ofrnge1a2b3c4d5",
- "lookup_key": "default",
- "display_name": "The standard set of packages",
- "is_current": true,
- "created_at": 1658399423658,
- "project_id": "proj1ab2c3d4",
- "paywall_id": "pw12345abcde",
- "metadata": {
- "color": "blue",
- "call_to_action": "Subscribe Now!"
}, - "packages": {
- "object": "list",
- "items": [
- {
- "object": "package",
- "id": "pkge1a2b3c4d5",
- "lookup_key": "monthly",
- "display_name": "Monthly discounted with 3-day trial",
- "position": 1,
- "created_at": 1658399423658,
- "products": {
- "object": "list",
- "items": [
- {
- "product": null,
- "eligibility_criteria": null
}
], - "next_page": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages/pkge1a2b3c4d5/products?starting_after=prodab21dac",
- "url": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages/pkge1a2b3c4d5/products"
}
}
], - "next_page": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages?starting_after=pkgeab21dac",
- "url": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages"
}
}, - "components": {
- "published": {
- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "l7Ylx2UZeA",
- "type": "stack",
- "components": [
- {
- "id": "LFVZUCf9yW",
- "type": "text",
- "text_lid": "OBUxLwsvXb"
}
]
}, - "sticky_footer": {
- "id": "UJJRRPzRuz",
- "type": "footer"
}
}
}, - "default_locale": "en_US",
- "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "automatically_scale_font_size": true,
}, - "draft": {
- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "l7Ylx2UZeA",
- "type": "stack",
- "components": [
- {
- "id": "LFVZUCf9yW",
- "type": "text",
- "text_lid": "OBUxLwsvXb"
}
]
}, - "sticky_footer": {
- "id": "UJJRRPzRuz",
- "type": "footer"
}
}
}, - "default_locale": "en_US",
- "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "automatically_scale_font_size": true,
}
}
}
], - "next_page": "/v2/projects/proj1ab2c3d4/paywalls?starting_after=pwXXXXXXXXXXXXXX",
- "url": "/v2/projects/proj1ab2c3d4/paywalls"
}Create a paywall draft for a project. You can either use the offering template shortcut or provide full draft components directly.
This endpoint requires the following permission(s): project_configuration:offerings:read_write. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| offering_id required | string [ 1 .. 200 ] characters The ID of the offering the paywall will be created for. |
| automatically_scale_font_size | boolean Default: true Whether font sizes should automatically scale for this paywall. Defaults to true. |
{- "offering_id": "ofrng123456789a",
- "automatically_scale_font_size": true
}{- "object": "paywall",
- "id": "pw123456789abcdef",
- "name": "My Awesome Paywall",
- "offering_id": "ofrng123456789a",
- "created_at": 1658399423658,
- "published_at": 1658399423958,
- "automatically_scale_font_size": true,
- "offering": {
- "state": "active",
- "object": "offering",
- "id": "ofrnge1a2b3c4d5",
- "lookup_key": "default",
- "display_name": "The standard set of packages",
- "is_current": true,
- "created_at": 1658399423658,
- "project_id": "proj1ab2c3d4",
- "paywall_id": "pw12345abcde",
- "metadata": {
- "color": "blue",
- "call_to_action": "Subscribe Now!"
}, - "packages": {
- "object": "list",
- "items": [
- {
- "object": "package",
- "id": "pkge1a2b3c4d5",
- "lookup_key": "monthly",
- "display_name": "Monthly discounted with 3-day trial",
- "position": 1,
- "created_at": 1658399423658,
- "products": {
- "object": "list",
- "items": [
- {
- "product": {
- "state": "active",
- "object": "product",
- "id": "prod1a2b3c4d5e",
- "store_identifier": "rc_1w_199",
- "type": "subscription",
- "subscription": {
- "duration": null,
- "grace_period_duration": null,
- "trial_duration": null
}, - "one_time": {
- "is_consumable": null
}, - "created_at": 1658399423658,
- "app_id": "app1a2b3c4",
- "app": {
- "object": null,
- "id": null,
- "name": null,
- "created_at": null,
- "type": null,
- "project_id": null,
- "custom_url_scheme": null,
- "amazon": { }
}, - "indicative_price": {
- "object": null,
- "currency": null,
- "country": null,
- "amount_micros": null
}, - "display_name": "Premium Monthly 2023"
}, - "eligibility_criteria": "all"
}
], - "next_page": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages/pkge1a2b3c4d5/products?starting_after=prodab21dac",
- "url": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages/pkge1a2b3c4d5/products"
}
}
], - "next_page": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages?starting_after=pkgeab21dac",
- "url": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages"
}
}, - "components": {
- "published": {
- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "l7Ylx2UZeA",
- "type": "stack",
- "components": [
- {
- "id": "LFVZUCf9yW",
- "type": "text",
- "text_lid": "OBUxLwsvXb"
}
]
}, - "sticky_footer": {
- "id": "UJJRRPzRuz",
- "type": "footer"
}
}
}, - "default_locale": "en_US",
- "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "automatically_scale_font_size": true,
}, - "draft": {
- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "l7Ylx2UZeA",
- "type": "stack",
- "components": [
- {
- "id": "LFVZUCf9yW",
- "type": "text",
- "text_lid": "OBUxLwsvXb"
}
]
}, - "sticky_footer": {
- "id": "UJJRRPzRuz",
- "type": "footer"
}
}
}, - "default_locale": "en_US",
- "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "automatically_scale_font_size": true,
}
}
}This endpoint requires the following permission(s): project_configuration:offerings:read. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| paywall_id required | string [ 1 .. 255 ] characters Example: pwXXXXXXXXXXXXXX ID of the paywall |
| expand | Array of strings[ items [ 1 .. 5000 ] characters ] Items Enum: "offering" "components" Example: expand=offering Specifies which fields in the response should be expanded.
Accepted values are: |
{- "object": "paywall",
- "id": "pw123456789abcdef",
- "name": "My Awesome Paywall",
- "offering_id": "ofrng123456789a",
- "created_at": 1658399423658,
- "published_at": 1658399423958,
- "automatically_scale_font_size": true,
- "offering": {
- "state": "active",
- "object": "offering",
- "id": "ofrnge1a2b3c4d5",
- "lookup_key": "default",
- "display_name": "The standard set of packages",
- "is_current": true,
- "created_at": 1658399423658,
- "project_id": "proj1ab2c3d4",
- "paywall_id": "pw12345abcde",
- "metadata": {
- "color": "blue",
- "call_to_action": "Subscribe Now!"
}, - "packages": {
- "object": "list",
- "items": [
- {
- "object": "package",
- "id": "pkge1a2b3c4d5",
- "lookup_key": "monthly",
- "display_name": "Monthly discounted with 3-day trial",
- "position": 1,
- "created_at": 1658399423658,
- "products": {
- "object": "list",
- "items": [
- {
- "product": {
- "state": "active",
- "object": "product",
- "id": "prod1a2b3c4d5e",
- "store_identifier": "rc_1w_199",
- "type": "subscription",
- "subscription": {
- "duration": null,
- "grace_period_duration": null,
- "trial_duration": null
}, - "one_time": {
- "is_consumable": null
}, - "created_at": 1658399423658,
- "app_id": "app1a2b3c4",
- "app": {
- "object": null,
- "id": null,
- "name": null,
- "created_at": null,
- "type": null,
- "project_id": null,
- "custom_url_scheme": null,
- "amazon": { }
}, - "indicative_price": {
- "object": null,
- "currency": null,
- "country": null,
- "amount_micros": null
}, - "display_name": "Premium Monthly 2023"
}, - "eligibility_criteria": "all"
}
], - "next_page": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages/pkge1a2b3c4d5/products?starting_after=prodab21dac",
- "url": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages/pkge1a2b3c4d5/products"
}
}
], - "next_page": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages?starting_after=pkgeab21dac",
- "url": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages"
}
}, - "components": {
- "published": {
- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "l7Ylx2UZeA",
- "type": "stack",
- "components": [
- {
- "id": "LFVZUCf9yW",
- "type": "text",
- "text_lid": "OBUxLwsvXb"
}
]
}, - "sticky_footer": {
- "id": "UJJRRPzRuz",
- "type": "footer"
}
}
}, - "default_locale": "en_US",
- "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "automatically_scale_font_size": true,
}, - "draft": {
- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "l7Ylx2UZeA",
- "type": "stack",
- "components": [
- {
- "id": "LFVZUCf9yW",
- "type": "text",
- "text_lid": "OBUxLwsvXb"
}
]
}, - "sticky_footer": {
- "id": "UJJRRPzRuz",
- "type": "footer"
}
}
}, - "default_locale": "en_US",
- "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "automatically_scale_font_size": true,
}
}
}Update a paywall draft. If the paywall is already published, this updates its draft version without changing the published version.
This endpoint requires the following permission(s): project_configuration:offerings:read_write. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| paywall_id required | string [ 1 .. 255 ] characters Example: pwXXXXXXXXXXXXXX ID of the paywall |
| revision required | integer The current draft revision. Used to reject stale writes. | ||||||
object The raw paywall components configuration to save as the draft. Omit to leave unchanged. | |||||||
| |||||||
object Localized component values keyed by locale. Omit to leave unchanged. | |||||||
| |||||||
| default_locale | string [ 1 .. 255 ] characters The default locale for this paywall. Omit to leave unchanged. | ||||||
| offering_id | string or null [ 1 .. 200 ] characters The ID of the offering to attach this paywall to. Pass null to detach the paywall from its offering (not supported while the paywall is published). Omit the field to leave it unchanged. | ||||||
| name | string or null [ 1 .. 255 ] characters Optional paywall name. | ||||||
| automatically_scale_font_size | boolean Whether font sizes should automatically scale for this paywall draft. | ||||||
object or null Exit offer configuration to save on the draft. | |||||||
| |||||||
object or null State declarations to save on the draft. | |||||||
| |||||||
object or null Play Store product change mode configuration to save on the draft. | |||||||
| |||||||
{- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "main_stack",
- "type": "stack",
- "components": [ ]
}
}
}, - "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "default_locale": "en_US",
- "offering_id": "ofrng123456789a",
- "name": "Main Paywall",
- "automatically_scale_font_size": true,
- "exit_offers": {
- "dismiss": {
- "offering_id": "ofrng123456789abcdef"
}
}, - "state_declarations": {
- "selectedPackage": {
- "type": "string",
- "default": "monthly"
}
}, - "play_store_product_change_mode": {
- "upgrade_replacement_mode": "deferred"
}
}{- "object": "paywall",
- "id": "pw123456789abcdef",
- "name": "My Awesome Paywall",
- "offering_id": "ofrng123456789a",
- "created_at": 1658399423658,
- "published_at": 1658399423958,
- "automatically_scale_font_size": true,
- "offering": {
- "state": "active",
- "object": "offering",
- "id": "ofrnge1a2b3c4d5",
- "lookup_key": "default",
- "display_name": "The standard set of packages",
- "is_current": true,
- "created_at": 1658399423658,
- "project_id": "proj1ab2c3d4",
- "paywall_id": "pw12345abcde",
- "metadata": {
- "color": "blue",
- "call_to_action": "Subscribe Now!"
}, - "packages": {
- "object": "list",
- "items": [
- {
- "object": "package",
- "id": "pkge1a2b3c4d5",
- "lookup_key": "monthly",
- "display_name": "Monthly discounted with 3-day trial",
- "position": 1,
- "created_at": 1658399423658,
- "products": {
- "object": "list",
- "items": [
- {
- "product": {
- "state": "active",
- "object": "product",
- "id": "prod1a2b3c4d5e",
- "store_identifier": "rc_1w_199",
- "type": "subscription",
- "subscription": {
- "duration": null,
- "grace_period_duration": null,
- "trial_duration": null
}, - "one_time": {
- "is_consumable": null
}, - "created_at": 1658399423658,
- "app_id": "app1a2b3c4",
- "app": {
- "object": null,
- "id": null,
- "name": null,
- "created_at": null,
- "type": null,
- "project_id": null,
- "custom_url_scheme": null,
- "amazon": { }
}, - "indicative_price": {
- "object": null,
- "currency": null,
- "country": null,
- "amount_micros": null
}, - "display_name": "Premium Monthly 2023"
}, - "eligibility_criteria": "all"
}
], - "next_page": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages/pkge1a2b3c4d5/products?starting_after=prodab21dac",
- "url": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages/pkge1a2b3c4d5/products"
}
}
], - "next_page": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages?starting_after=pkgeab21dac",
- "url": "/v2/projects/proj1ab2c3d4/offerings/ofrnge1a2b3c4d5/packages"
}
}, - "components": {
- "published": {
- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "l7Ylx2UZeA",
- "type": "stack",
- "components": [
- {
- "id": "LFVZUCf9yW",
- "type": "text",
- "text_lid": "OBUxLwsvXb"
}
]
}, - "sticky_footer": {
- "id": "UJJRRPzRuz",
- "type": "footer"
}
}
}, - "default_locale": "en_US",
- "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "automatically_scale_font_size": true,
}, - "draft": {
- "revision": 1,
- "components_config": {
- "base": {
- "stack": {
- "id": "l7Ylx2UZeA",
- "type": "stack",
- "components": [
- {
- "id": "LFVZUCf9yW",
- "type": "text",
- "text_lid": "OBUxLwsvXb"
}
]
}, - "sticky_footer": {
- "id": "UJJRRPzRuz",
- "type": "footer"
}
}
}, - "default_locale": "en_US",
- "components_localizations": {
- "en_US": {
- "title": "Premium"
}
}, - "automatically_scale_font_size": true,
}
}
}This endpoint requires the following permission(s): project_configuration:offerings:read_write. This endpoint belongs to the Project Configuration domain, which has a default rate limit of 60 requests per minute.
| project_id required | string <= 255 characters Example: proj1ab2c3d4 ID of the project |
| paywall_id required | string [ 1 .. 255 ] characters Example: pwXXXXXXXXXXXXXX ID of the paywall |
{- "object": "app",
- "id": "string",
- "deleted_at": 1658399423658
}