#Zia - Subscription Schedules
1 messages · Page 1 of 1 (latest)
Hello
hope you are doing good
I am facing the following error:
Received unknown parameter
options.AddExtraParam("subscription_data[on_behalf_of]", model.ConnectedStripeAccountId);
options.AddExtraParam("subscription_data[transfer_data][destination]", model.ConnectedStripeAccountId);
while adding the following extra params in creating subscription schedule create options
Could you share the request ID from your account logs that correspond to this error?
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Unfortunately that does not help me much. Can you please provide the request ID fro your Stripe account logs?
Okay thank you, I'll look now.
Oh, okay. You need to specify the currency when passing price_data
We return that in the error object:
error: {
code: "parameter_missing",
doc_url: "https://stripe.com/docs/error-codes/parameter-missing",
message: "Missing required param: items[0][price_data][currency].",
param: "items[0][price_data][currency]",
type: "invalid_request_error"
}
sorry
that's not the right one
req_i1Ydyf78A5cGlQ
this is the right one
I mistakenly picked that from prod
Okay in that case you are passing a subscripition_data parameter. That does not exist, as you can see here:
https://stripe.com/docs/api/subscription_schedules/create
what's the alternate in that case
if I want to use on behalf of and transfer amount
Create the Subscription first, following this guide: https://stripe.com/docs/connect/subscriptions