v1

latestOpenAPI 3.0.02026-07-24103118224.7 KB
Catalog

Create a price

Adds a new immutable price to a product. To change a price, create a new one and archive the old one.

post/api/products/{id}/prices

Path parameters

idstring required

Request body

unitAmountnumber required

Unit amount in cents (1000 = 10.00). Prices are immutable.

currency'EUR' | 'USD' required

Example request

{
  "unitAmount": 2999,
  "currency": "EUR"
}

Response

object required