Prices
The price object and the allowed CRUD operations on the related resource endpoint
Last updated
The price object and the allowed CRUD operations on the related resource endpoint
Last updated
can have a price for each . When you create a , it gets the price associated with the order's price list.
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 and pages). All amounts must be in cents (the other conversions — such as float, formatted, etc. — will be automatically calculated).
Some currencies have a zero exponent and cannot be expressed in cents (e.g. JPY
and HUF
). In such cases, you have to express the value as it is (e.g. 10000
JPY, not 1000000
JPY).
Prices can be based on the quantity or the frequency (e.g. ) of the item purchased (a maximum of 10 tiers for each price is currently supported). See and to learn more.
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 feature.