#gaia-customer-questions
1 messages · Page 1 of 1 (latest)
gaia-customer-questions
is it possible to create or update a customer specifying the currency through the APIs? I don't see a way to do it in the docs
No that's impossible to set/change in the API. It's a Dashboard-only feature for businesses that only do things in the Dashboard.
In the API this is unnecessary
I don't really understand most of what you said after unfortunately and what you mean by Checkout is impacted by this as Checkout shouldn't care about a Customer's currency unless you have an active Subscription already. We also don't care about this for one-time Prices.
But if you have a more specific question about that part I can maybe help.
the customer's currency is impacted by what the first subscription currency, right?
but before this, how can I create a quote for that customer specifying which currency to use?
You use the Quotes API and you pass the right Price with the right currency
I am not finding a way to pass the currency along with the price
the example price_id is the one above
so given the price price_1NxEzNKVm4WHjNVwbkojmer9, how do I show the EUR value?
ah gotcha, that's impossible today we don't support forcing a specific currency on the Quote API for some reason so it'd be a feature request
ok, we also have a cart page, where we show the customer product and price, so that they can adjust the quantity before going through the checkout. In this case, is it also not possible to only retrieve the EUR currency through the /v1/prices/price_1NxEzNKVm4WHjNVwbkojmer9 endpoint?
You would retrieve the Price and expand its currency_options) to look at all currencies, but no it's not possible to retrieve the EUR version of that Price
I just tried it and I do see it, so I am not sure when you say it's not possible to retrieve the EUR version. Is this something not well supported?
"currency_options" => %{
"eur" => %{
"custom_unit_amount" => nil,
"tax_behavior" => "inclusive",
"unit_amount" => 143218,
"unit_amount_decimal" => "143218"
},
"jpy" => %{
"custom_unit_amount" => nil,
"tax_behavior" => "inclusive",
"unit_amount" => 224963,
"unit_amount_decimal" => "224963"
},
"usd" => %{
"custom_unit_amount" => nil,
"tax_behavior" => "exclusive",
"unit_amount" => 150000,
"unit_amount_decimal" => "150000"
}
I'm sorry, you asked to only rerieve the EUR currency right? That's what is impossible and what I explained. I explained you can retrieve all currencies configured for that Price with the expand feature which seems to be exactly what you are using.
ok, thanks