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

ParameterTypeRequiredDescription
projectIdstringYesThe project ID
offeringKeystringYesOffering identifier (e.g., "default")
offeringNamestringYesOffering display name
entitlementKeystringYesEntitlement identifier (e.g., "premium")
entitlementNamestringYesEntitlement display name
productsarrayYesProducts to include (see below)
setAsCurrentbooleanNoSet as current/default offering (default: true)

Product Object

FieldTypeDescription
productIdstringRevenueCat product ID
packageKeystringPackage identifier (e.g., "$rc_monthly")
packageNamestringPackage 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"
}
]
}
}