#Greggles

1 messages · Page 1 of 1 (latest)

marsh creekBOT
steady sluice
#

Hi, can you share more details here? What does your code look like? What are you seeing?

mellow bluff
#

Hi! Sure, just a second.

#

$subscription = $stripe->subscriptions->retrieve($stripe_subscription_id);

where subscription_id = sub_sched_1MniTFGxG8m2870UvmMC0Mc6

#

I'm getting an error that reads Message: No such subscription: 'sub_sched_1MniTFGxG8m2870UvmMC0Mc6'

#

In the logs it reads resource missing - id

#
{
  "error": {
    "code": "resource_missing",
    "doc_url": "https://stripe.com/docs/error-codes/resource-missing",
    "message": "No such subscription: 'sub_sched_1MniTFGxG8m2870UvmMC0Mc6'",
    "param": "id",
    "request_log_url": "https://dashboard.stripe.com/logs/req_S2hcQTwT5SGpjk?t=1679350880",
    "type": "invalid_request_error"
  }
}
steady sluice
#

I think you're using the subscription API and not the Subscription Schedules API.

mellow bluff
#

That's correct, I am.

steady sluice
#

These are separate objects, you can't mix them up like this

#

You'd want to use the Subscription Schedules API