The price object and the allowed CRUD operations on the related resource endpoint
Each price has an amount (the actual selling price) and an optional compare-at amount (the full price that you want to display to the customer — typically with a strikethrough — on your product and product listing pages). All amounts must be in cents (the other conversions — such as float, formatted, etc. — will be automatically calculated).
compare_at_amount_centsvalue must be greater than or equal to (usually greater than) the
amount_centvalue. If you try to set for a price a compare-at amount lower than the actual amount the API will not return any error, but just set the
compare_at_amount_centsvalue equal to the
Some currencies have a zero exponent and cannot be expressed in cents (e.g.
HUF). In such cases, you have to express the value as it is (e.g.
If you prefer not to manage prices within Commerce Layer but use an external service instead (e.g. to support more dynamic pricing or just rely on an existing service that you are already using) you can leverage our external prices feature.