#eek.ro
1 messages ยท Page 1 of 1 (latest)
Hi ๐ do you know if you are creating two separate Price objects, in which case you would need to retrieve both of those, or if you're creating a Price that uses currency_options to define what the price should be in multiple currencies?
https://stripe.com/docs/api/prices/object#price_object-currency_options
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I guess it's the currency_option but it wasn't set via the API, it was done via the interface:
and not getting more than usd:
{
"id": "price_1NgRPyLIY9iuybuaA0A3IOM5",
"object": "price",
"active": true,
"billing_scheme": "per_unit",
"created": 1692360282,
"currency": "usd",
"custom_unit_amount": null,
"livemode": false,
"lookup_key": "m22-1",
"metadata": {},
"nickname": null,
"product": "prod_OTOCsMrdjeHKs4",
"recurring": null,
"tax_behavior": "exclusive",
"tiers_mode": null,
"transform_quantity": null,
"type": "one_time",
"unit_amount": 279900,
"unit_amount_decimal": "279900"
}```
Hm, it does look like that Price was created using currency_options.
https://dashboard.stripe.com/test/logs/req_uLC9xuzZ4u8Oha
Ah, but that field isn't included by default in API responses, you will need to use expand in your request to include it.
https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
oh, okay, it worked with --expand=currency_options thanks @blazing badge ! ๐