You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/docs/content/docs/en/tools/revenuecat.mdx
+3-34Lines changed: 3 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -174,9 +174,9 @@ Grant a promotional entitlement to a subscriber
174
174
|`apiKey`| string | Yes | RevenueCat secret API key \(sk_...\)|
175
175
|`appUserId`| string | Yes | The app user ID of the subscriber |
176
176
|`entitlementIdentifier`| string | Yes | The entitlement identifier to grant |
177
-
|`duration`| string | No | Duration of the entitlement. Provide either duration or endTimeMs. One of: daily, three_day, weekly, two_week, monthly, two_month, three_month, six_month, yearly, lifetime |
177
+
|`duration`| string | No |Deprecated. Duration of the entitlement. Provide either duration or endTimeMs\(endTimeMs preferred\). One of: daily, three_day, weekly, two_week, monthly, two_month, three_month, six_month, yearly, lifetime |
178
178
|`endTimeMs`| number | No | Absolute end time in milliseconds since Unix epoch. Use instead of duration to grant the entitlement until a specific timestamp. |
179
-
|`startTimeMs`| number | No | Optional start time in milliseconds since Unix epoch. Set to a past time to achieve custom durations shorter than daily. |
179
+
|`startTimeMs`| number | No |Deprecated. Optional start time in milliseconds since Unix epoch, used with duration to determine expiration. Regardless of value, the entitlement is always granted immediately. |
180
180
181
181
#### Output
182
182
@@ -272,7 +272,7 @@ List all offerings configured for the project
272
272
| --------- | ---- | -------- | ----------- |
273
273
|`apiKey`| string | Yes | RevenueCat API key |
274
274
|`appUserId`| string | Yes | An app user ID to retrieve offerings for |
275
-
|`platform`| string | No | Platform to filter offerings \(ios, android, stripe, etc.\)|
275
+
|`platform`| string | No |X-Platform header value. One of: ios, android, amazon, stripe, roku, paddle. Required when using a legacy public API key; ignored with app-specific API keys.|
0 commit comments