#mtanzi - list tax ids

1 messages · Page 1 of 1 (latest)

spiral topaz
vague horizon
#

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

spiral topaz
#

Look at the link I sent you

#

{stripe_account: '{{CONNECTED_STRIPE_ACCOUNT_ID}}'}

vague horizon
#

mmm interesting.. that means that the other calls that do not fails are not doing much either 🙂

#

thank you!

spiral topaz
#

No problem!

vague horizon
#

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
spiral topaz
#

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 })

vague horizon
#

ah... gotcha

#

thank you!