Skip to main content
POST
/
v1
/
prices
Create a price
curl --request POST \
  --url https://revstack.dev/v1/prices \
  --header 'Content-Type: application/json' \
  --data '
{
  "environmentId": "<string>",
  "name": "<string>",
  "amount": 1,
  "currency": "<string>",
  "type": "recurring",
  "interval": "month",
  "planId": "<string>",
  "addonId": "<string>",
  "metadata": {}
}
'
null

Body

application/json
environmentId
string
required
Minimum string length: 1
name
string
required
Minimum string length: 1
amount
integer
required
Required range: x >= 0
currency
string
required
Required string length: 3
type
enum<string>
required
Available options:
recurring,
one_time
interval
enum<string>
Available options:
month,
year,
week,
day
planId
string
addonId
string
metadata
object

Response

Price created

The response is of type unknown.