#mtanzi - list tax ids
1 messages · Page 1 of 1 (latest)
That's not a valid param to be passed in the request body: https://stripe.com/docs/api/customer_tax_ids/list. You need to use the stripe account header: https://stripe.com/docs/connect/authentication
the call I do is the following:
> Stripe::Customer.list_tax_ids(customer_id, { account: stripe_account_id })
Stripe::InvalidRequestError: Received unknown parameter: account
AFAIK the connected account should be passed in a hash when we do a call
mmm interesting.. that means that the other calls that do not fails are not doing much either 🙂
thank you!
No problem!
it's still failing... mmm am I passing it not correctly?
> Stripe::Customer.list_tax_ids(customer_id, { stripe_account: stripe_account_id })
WARNING: 'stripe_account' should be in opts instead of params.
Stripe::InvalidRequestError: Received unknown parameter: stripe_account
Ah. I'm not a Ruby expert, but I think the second argument is params as defined in the API spec. I think stripe_account needs to go in the hash in the 3rd arg. Try this: Stripe::Customer.list_tax_ids(customer_id, {}, { stripe_account: stripe_account_id })