yes, this is allowed, and you would find both subscriptions in the subscriptions payload (one with `is_sandbox` true, and one false)
yes, this is allowed, and you would find both subscriptions in the subscriptions payload (one with `is_sandbox` true, and one false)
But the subscriptions object is a mapping of a product_id to a single subscription object. Example (pardon the formatting):
subscriptions: {
<product_id_1>: {
billing_issues_detected_at: None,
expires_date: 2022-08-24T19:14:10Z,
grace_period_expires_date: None,
is_sandbox: True,
original_purchase_date: 2022-08-19T17:59:46Z,
ownership_type: PURCHASED,
period_type: normal,
purchase_date: 2022-08-24T19:09:10Z,
store: app_store,
unsubscribe_detected_at: None
},
<product_id_2>: {
billing_issues_detected_at: None,
expires_date: 2022-08-29T14:11:13Z,
grace_period_expires_date: None,
is_sandbox: True,
original_purchase_date: 2022-08-19T17:59:46Z,
ownership_type: PURCHASED,
period_type: trial,
purchase_date: 2022-08-29T14:06:13Z,
store: app_store,
unsubscribe_detected_at: None
}
}
For this to show up, wouldn’t we need a unique product id?
ah yeah, that’s a good point. in that case you will get whatever has the latest expiration date (which will most likely be the production subscription because sandbox subscriptions have accelerated expirations).
That’s good to know. Thank you!