Solved

REST API: Format of prices and other monetary amounts

JHinghaus
Visitor
1 0 0

The REST API currently returns prices (and other monetary amounts) with a decimal point and without a thousands separator.

Is this a fix format I can rely on, or can this format be changed by currency, settings, headers or others means of localization?

I searched to REST reference of the Admin API but didn't find anything about the format.

Accepted Solution (1)

csam
Shopify Staff (Retired)
267 40 51

This is an accepted solution.

Hi @JHinghaus 

Yes, that format will remain consistent - it is not affected by the formatting settings in the Shopify admin.

 

To learn more visit the Shopify Help Center or the Community Blog.

View solution in original post

Reply 1 (1)

csam
Shopify Staff (Retired)
267 40 51

This is an accepted solution.

Hi @JHinghaus 

Yes, that format will remain consistent - it is not affected by the formatting settings in the Shopify admin.

 

To learn more visit the Shopify Help Center or the Community Blog.