#annu-expand
1 messages · Page 1 of 1 (latest)
product ID:- prod_Ktxz6ecMkEIgSR
Thanks, can you try ['tiers'] instead of ['data.tiers'] ?
yeah already tried but no success
How about ['tiers.data'] ?
wait lemme try this
still no success
Here i want to mention one thing. one of my colleague using the same code able to get tiers data in plan when expanding tiers using data.tiers But he is using his own stripe keys.
That's interesting, can you check if you have tiers property for this Plan? Also are you using a different API version?
yes the billing scheme for this plan is tiered as you can see in the below response and we are using same API version
Stripe\Plan {#1739 ▼
+saveWithParent: false
#_opts: Stripe\Util\RequestOptions {#1738 ▶}
#_originalValues: array:19 [▶]
#_values: array:19 [▶]
#_unsavedValues: Stripe\Util\Set {#199 ▶}
#_transientValues: Stripe\Util\Set {#1742 ▶}
#_retrieveOptions: []
#_lastResponse: Stripe\ApiResponse {#1771 ▶}
id: "y5PMoYtxzgMq"
object: "plan"
active: true
aggregate_usage: null
amount: null
amount_decimal: null
billing_scheme: "tiered"
created: 1641294868
currency: "usd"
interval: "month"
interval_count: 1
livemode: false
metadata: Stripe\StripeObject {#1769 ▶}
nickname: "Tier 2"
product: "prod_Ktxz6ecMkEIgSR"
tiers_mode: "volume"
transform_usage: null
trial_period_days: null
usage_type: "licensed"
}
Plan retrieve response
Is your colleague retrieving the same plan object?
no he is retrieving plan created from his stripe account