#andrewandyandy

1 messages · Page 1 of 1 (latest)

opaque sundialBOT
acoustic pollen
#

Hi 👋 can you share the ID of the request where you're seeing that error?

odd flint
#

req_EAZKTCoiuzYU52

#

req_QoaEGH4oFxXWHC

acoustic pollen
#

Thank you, taking a closer look

#

I think the Subscription Schedule you're trying to update currently has a mixture of phases which are using Stripe Tax and those that aren't.

Can you retrieve the current state of the Subscription Schedule and double check what you see in phases.automatic_tax for each phase?
https://stripe.com/docs/api/subscription_schedules/create#create_subscription_schedule-phases-automatic_tax

odd flint
#

yup let me take a look

#

yup looks like that schedule had a automatic tax enabled

#

The schedule has already been applied, why does the sub still show it?

acoustic pollen
#

The final phase of the Subscription Schedule has not completed, so the Subscription Schedule has not reached it's end where it is currently configured to release the Subscription.

odd flint
#

"id": "sub_sched_1MhfCFDnkobEEnenSsfks46b",
"object": "subscription_schedule",
"application": null,
"billing": "charge_automatically",
"billing_thresholds": null,
"canceled_at": null,
"collection_method": "charge_automatically",
"completed_at": null,
"created": 1677875239,
"current_phase": {
"end_date": 1728249029,
"start_date": 1696626629
},
"customer": "cus_L6rDRa06s4MpjE",
"default_payment_method": null,
"default_settings": {
"application_fee_percent": null,
"automatic_tax": {
"enabled": true,
"liability": {
"type": "self"
}
},
"billing_cycle_anchor": "automatic",
"billing_thresholds": null,
"collection_method": "charge_automatically",
"default_payment_method": null,
"default_source": null,
"description": null,
"invoice_settings": {
"account_tax_ids": null,
"days_until_due": null,
"issuer": {
"type": "self"
}
},
"on_behalf_of": null,
"transfer_data": null
},
"default_source": null,
"end_behavior": "release",
"invoice_settings": {
"account_tax_ids": null,
"days_until_due": null,
"issuer": {
"type": "self"
}
},
"livemode": true,
"metadata": {},
"phases": [
{
"add_invoice_items": [],
"application_fee_percent": null,
"billing_cycle_anchor": null,
"billing_thresholds": null,
"collection_method": null,
"coupon": null,
"currency": "usd",
"default_payment_method": null,
"default_tax_rates": [],
"description": null,
"end_date": 1696626629,
"invoice_settings": null,
"metadata": {},
"on_behalf_of": null,
"plans": [
{
"billing_thresholds": null,
"metadata": {},
"plan": "v8_startup_annually",
"price": "v8_startup_annually",
"quantity": 1,
"tax_rates": []
}
],
"prorate": true,
"proration_behavior": "create_prorations",
"start_date": 1665090629,
"tax_percent": null,
"transfer_data": null,
"trial_end": null
},
{
"add_invoice_items": [],
"application_fee_percent": null,
"automatic_tax": {
"enabled": false,
"liability": null
},
"billing_cycle_anchor": null,
"billing_thresholds": null,
"collection_method": "charge_automatically",
"coupon": null,
"currency": "usd",
"default_payment_method": null,
"default_tax_rates": [],
"description": null,
"end_date": 1728249029,
"invoice_settings": {
"account_tax_ids": null,
"days_until_due": null,
"issuer": null
},
"metadata": {},
"on_behalf_of": null,
"plans": [
{
"billing_thresholds": null,
"metadata": {},
"plan": "v9_startup_annually",
"price": "v9_startup_annually",
"quantity": 1,
"tax_rates": []
}
],
"prorate": false,
"proration_behavior": "none",
"start_date": 1696626629,
"tax_percent": null,
"transfer_data": null,
"trial_end": null
}
],
"released_at": null,
"released_subscription": null,
"renewal_behavior": "release",
"renewal_interval": null,
"status": "active",
"subscription": "sub_1Lq1KrDnkobEEnenfk75wrFw",
"test_clock": null
}

#

was looking at the wrong section, but this is the schedule object

#

it looks like the first phase did not have a "automatic_tax"

acoustic pollen
#

If you explicitly pass automatic_tax[enabled] set to false for the phase you're updating, does that avoid the error?