Price not displaying correctly in Dashboard - Products

I was testing the API and found some strange behavior with values in minor units.

According to the documentation, the amount field should be sent in cents:

amount number
Price amount in minor units (e.g., cents). Must be ≥ 0.

So I send the value in cents, for example 2120000 to represent $21,200. However, in the dashboard it is displayed as:

ARS 2,120,000.00

In addition, the API response confirms that the value is being saved correctly as minor units:

"prices": [
  {
    "id": "XXXXX",
    "currency": "ARS",
    "isDefault": true,
    "createdAt": "2025-11-27T19:42:44.329Z",
    "updatedAt": "2025-11-27T19:42:44.329Z",
    "amount": 2120000,
    "amountInCents": 2120000,
    "amountInUnits": 21200
  }
]

That is, amountInUnits = 21200, which is correct, but the dashboard interprets amount as if it were already in units, and therefore displays an amount 100 times greater.

Could it be that the dashboard is formatting the value in units instead of minor units?

Please authenticate to join the conversation.

Upvoters
Status

In Review

Board

📥 Feedback

Date

3 months ago

Author

Emanuel Canova

Subscribe to post

Get notified by email when there are changes.