FROM CACHE - en_header

REST API: Format of prices and other monetary amounts

Solved
JHinghaus
New Member
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)

Accepted Solutions
csam
Shopify Staff
Shopify Staff
267 40 45

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.

 

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Reply 1 (1)
csam
Shopify Staff
Shopify Staff
267 40 45

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.

 

CS | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog