Search code examples
decimalsquare-connectcurrency-formatting

Square Issue with decimal pricing


I have added a couple of products in the Square dashboard with decimal price variations. Connect v1 items end point returns wrong pricing.

i added an item with price 55.00 it shows 5500 50.00 shows 5000

This is the response from Square API:

this is the response from Square API


Solution

  • The money amount number is in the lowest denomination of the currency and is always an integer. For USD, it's in cents. Here is the more detailed documentation: https://docs.connect.squareup.com/api/connect/v1/#datatype-money