create_offering_with_products
Create a complete RevenueCat offering with entitlement and packages in one call. The fastest way to set up your RevenueCat paywall.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | The project ID |
offeringKey | string | Yes | Offering identifier (e.g., "default") |
offeringName | string | Yes | Offering display name |
entitlementKey | string | Yes | Entitlement identifier (e.g., "premium") |
entitlementName | string | Yes | Entitlement display name |
products | array | Yes | Products to include (see below) |
setAsCurrent | boolean | No | Set as current/default offering (default: true) |
Product Object
| Field | Type | Description |
|---|---|---|
productId | string | RevenueCat product ID |
packageKey | string | Package identifier (e.g., "$rc_monthly") |
packageName | string | Package display name |
Example Usage
Natural Language Promptstext
"Create a default offering with monthly and annual subscriptions""Set up RevenueCat with a premium entitlement and my products""Create an offering with monthly at $9.99 and annual at $79.99"
Response
{"success": true,"entitlement": {"id": "ent_abc123","lookup_key": "premium","display_name": "Premium Access"},"offering": {"id": "off_xyz789","lookup_key": "default","display_name": "Default Offering","is_current": true,"packages": [{"lookup_key": "$rc_monthly","display_name": "Monthly","product_id": "prod_monthly"},{"lookup_key": "$rc_annual","display_name": "Annual","product_id": "prod_annual"}]}}
Standard Package Keys
Use RevenueCat's standard package keys for automatic SDK handling:$rc_monthly, $rc_annual, $rc_weekly,$rc_lifetime.