Download OpenAPI specification:Download
| object required | string Value: "subscription" String representing the object's type. Objects of the same type share the same value. | ||||||||||||||||||
| id required | string [ 1 .. 255 ] characters The ID of the subscription (generated by RevenueCat) | ||||||||||||||||||
| customer_id required | string [ 1 .. 1500 ] characters The ID of the customer | ||||||||||||||||||
| original_customer_id required | string [ 1 .. 1500 ] characters The ID of the original customer. Relevant for subscriptions that were transferred from one customer to another | ||||||||||||||||||
| product_id required | string or null [ 1 .. 255 ] characters The RevenueCat ID of the product that the customer is subscribed to. Exists for all store types except for promotional. | ||||||||||||||||||
| starts_at required | integer <int64> The date when the subscription originally started in ms since epoch | ||||||||||||||||||
| current_period_starts_at required | integer <int64> The date when the subscription billing period started in ms since epoch | ||||||||||||||||||
| current_period_ends_at required | integer or null <int64> The date when the subscription billing period is expected to end in ms since epoch. Can be null if the subscription is paused until an indefinite date. | ||||||||||||||||||
| ends_at required | integer or null <int64> The date when the latest subscription billing period is expected to end in ms since epoch. It will only be different from | ||||||||||||||||||
| gives_access required | boolean Determines whether the customer should currently be provided access to the entitlements associated with the subscription | ||||||||||||||||||
| pending_payment required | boolean Determines whether there is a pending payment associated with the subscription | ||||||||||||||||||
| auto_renewal_status required | string Enum: "will_renew" "will_not_renew" "will_change_product" "will_pause" "requires_price_increase_consent" "has_already_renewed" The auto renewal status of a subscription. | ||||||||||||||||||
| status required | string Enum: "trialing" "active" "expired" "in_grace_period" "in_billing_retry" "paused" "unknown" "incomplete" The status of a subscription. Please note that additional states might be added in the future. To determine whether or not a subscription currently provides access to any associated entitlements, use the gives_access field. | ||||||||||||||||||
required | MonetaryAmount (object) Total revenue generated by a subscription in USD | ||||||||||||||||||
One of
| |||||||||||||||||||
| presented_offering_id required | string or null [ 1 .. 200 ] characters The ID of the offering the customer saw when purchasing the subscription | ||||||||||||||||||
required | object (EntitlementList) | ||||||||||||||||||
| |||||||||||||||||||
required | Environment (string) The store environment | ||||||||||||||||||
One of string (Environment) Enum: "production" "sandbox" The store environment | |||||||||||||||||||
| store required | string Enum: "amazon" "app_store" "mac_app_store" "play_store" "promotional" "stripe" "rc_billing" "external" "roku" "paddle" … 3 more Store the subscription belongs to | ||||||||||||||||||
| store_subscription_identifier required | string [ 1 .. 255 ] characters The subscription identifier as per the store (e.g, for Apple App Store, the | ||||||||||||||||||
required | Ownership (string) Ownership of the subscription | ||||||||||||||||||
One of string (Ownership) Enum: "purchased" "family_shared" Ownership of the subscription | |||||||||||||||||||
object or null Expected changes to the subscription that will occur at the end of the current period. Present when the subscription has a pending product change, has already renewed for the next period, or has a failed upcoming renewal. Only fields that differ from the current subscription state are included. | |||||||||||||||||||
| |||||||||||||||||||
| country | string or null (Country) Enum: null "AF" "AL" "DZ" "AS" "AD" "AO" "AI" "AQ" "AG" … 240 more The country that the object is associated with, in ISO alpha 2 code | ||||||||||||||||||
| management_url required | string or null The URL to manage the subscription | ||||||||||||||||||
object or null (Redemption) Information about the most recent successful redemption of the purchase's redemption link. Only applicable to Web Billing web-to-web purchases; null if the purchase has never been successfully redeemed (or has no redemption link, e.g. purchases from other stores). | |||||||||||||||||||
| |||||||||||||||||||
{- "object": "subscription",
- "id": "sub1ab2c3d4e5",
- "customer_id": "19b8de26-77c1-49f1-aa18-019a391603e2",
- "original_customer_id": "19b8de26-77c1-49f1-aa18-019a391603e2",
- "product_id": "prod1a2b3c4d5e",
- "starts_at": 1658399423658,
- "current_period_starts_at": 1658399423658,
- "current_period_ends_at": 1658399423658,
- "ends_at": 1658399423658,
- "gives_access": true,
- "pending_payment": true,
- "auto_renewal_status": "will_renew",
- "status": "trialing",
- "total_revenue_in_usd": {
- "currency": "USD",
- "gross": 9.99,
- "commission": 2.99,
- "tax": 0.75,
- "proceeds": 6.25
}, - "presented_offering_id": "ofrnge1a2b3c4d5",
- "entitlements": {
- "object": "list",
- "items": [
- {
- "state": "active",
- "object": "entitlement",
- "project_id": "proj1ab2c3d4",
- "id": "entla1b2c3d4e5",
- "lookup_key": "premium",
- "display_name": "Premium",
- "created_at": 1658399423658,
- "products": {
- "object": "list",
- "items": [
- {
- "state": "active",
- "object": "product",
- "id": "prod1a2b3c4d5e",
- "store_identifier": "rc_1w_199",
- "type": "subscription",
- "subscription": {
- "duration": "P1M",
- "grace_period_duration": "P3D",
- "trial_duration": "P1W"
}, - "one_time": {
- "is_consumable": true
}, - "created_at": 1658399423658,
- "app_id": "app1a2b3c4",
- "app": {
- "object": "app",
- "id": "app1a2b3c4",
- "name": "string",
- "created_at": 1658399423658,
- "type": "amazon",
- "project_id": "proj1a2b3c4",
- "custom_url_scheme": "rc-1a2b3c4",
- "amazon": {
- "package_name": "string"
}
}, - "indicative_price": {
- "object": "indicative_price",
- "currency": "USD",
- "country": "US",
- "amount_micros": "For 99.99, the value should be 99990000"
}, - "display_name": "Premium Monthly 2023"
}
], - "next_page": "/v2/projects/proj1ab2c3d4/entitlements/entle1a2b3c4d5/products?starting_after=prodeab21dac",
- "url": "/v2/projects/proj1ab2c3d4/entitlements/entle1a2b3c4d5/products"
}
}
], - "next_page": "/v2/projects/proj1ab2c3d4/subscriptions/sub1a2b3c4d5e/entitlements?status=active&starting_after=entlab21dac",
- "url": "/v2/projects/proj1ab2c3d4/subscriptions/sub1a2b3c4d5e/entitlements"
}, - "environment": "production",
- "store": "amazon",
- "store_subscription_identifier": 12345678,
- "ownership": "purchased",
- "pending_changes": {
- "product": {
- "state": "active",
- "object": "product",
- "id": "prod1a2b3c4d5e",
- "store_identifier": "rc_1w_199",
- "type": "subscription",
- "subscription": {
- "duration": "P1M",
- "grace_period_duration": "P3D",
- "trial_duration": "P1W"
}, - "one_time": {
- "is_consumable": true
}, - "created_at": 1658399423658,
- "app_id": "app1a2b3c4",
- "app": {
- "object": "app",
- "id": "app1a2b3c4",
- "name": "string",
- "created_at": 1658399423658,
- "type": "amazon",
- "project_id": "proj1a2b3c4",
- "custom_url_scheme": "rc-1a2b3c4",
- "amazon": {
- "package_name": "string"
}
}, - "indicative_price": {
- "object": "indicative_price",
- "currency": "USD",
- "country": "US",
- "amount_micros": "For 99.99, the value should be 99990000"
}, - "display_name": "Premium Monthly 2023"
}, - "current_period_starts_at": 1658399423658,
- "current_period_ends_at": 1660991423658,
- "store_subscription_identifier": 12345679,
- "auto_renewal_status": "will_renew",
- "status": "active",
- "pending_payment": false,
- "gives_access": true
}, - "country": "US",
- "redemption": {
- "object": "redemption",
- "redeemed_at": 1658399423658
}
}