#nabin

1 messages · Page 1 of 1 (latest)

manic sparrowBOT
paper hornet
#

hi @ember lion any answer for my question? i am waiting for your response

ember lion
#

Hi, apologies for the delay, there are multiple threads in progress. No, you cannot set a Customer's currency via the API, and once the currency is set it cannot be changed. You can find a list of the actions that set a Customer's currency here:
https://support.stripe.com/questions/setting-a-customers-default-currency

paper hornet
#

@ember lion how can i create customer with usd currency?

ember lion
#

I think you can do it through the dashboard.

paper hornet
#

not possible through api?

ember lion
#

Nope

#

You cannot set the currency via the API, instead that value gets set based on the currency associated with the first action from the list in that support article. For instance, if the Customer's first Invoice is in usd then the Customer gets locked into USD.

paper hornet
#

i want to create new customer with usd currency

ember lion
#

You can't do that via the API.

paper hornet
#

in customer create api, no option for currency set

ember lion
#

Correct

#

Why do you want to forcibly set the currency for a Customer?

paper hornet
#

because , when i try to create subscription with currency usd , got error below
You cannot combine currencies on a single customer. This customer has had a subscription, coupon, or invoice item with currency aed

ember lion
#

Yes, that is expected. The currency is set by the first invoice/subscription/coupon/customer-balance applied to the Customer, so you can:

  1. Create a new Customer
  2. Create a Subscription with a usd Price for the Customer - this will set the Customer's currency
paper hornet
#

when i try to create new customer , all time customer created with default currency to aed

ember lion
#

Can you share the ID of a Customer (cus_123) where you saw that behavior?

paper hornet
#

yes

#

cus_MtF4ZXTdECRuRA

ember lion
#

Running some tests in my account.

#

Hm, if you create a Customer without providing a Payment Method, does the currency still get set?