API Reference

Create product family item price

Creates a price of an addon, plan or charge

Error codes:

AlreadyExista price with such a name or external name already exists
ProjectCurrencyNotFoundThere is no any project currency created for this project
ProjectFrequencyNotFoundThere is no any frequency created for this project
ProjectNotFoundThere is no project specified in the URL
ProductFamilyItemNotFoundThere is no product family item with the id specified in the request
ProductFamilyNotFoundThere is no product family with the id specified in the request
Path Params
string
required
Defaults to your-site-name-1

Name of your project

string
required
Defaults to addons

The type of the product family items for which the price is created. Can be “addons”, “charges”, or “plans”.

string
required
Defaults to test-id

The id of the product family item for which the price is created

Body Params
string
string
required
string
required

External price name

string
required
string
required

Price description

string
int32
required
int32
required
string
required

The subscription channel

string
required
string
string

Number of billing periods (for billingCycles === Fixed)

trialPeriod
object
boolean
Defaults to false

The price with this flag is billed once. Only plan prices are supported

string
string
string
metadata
array of objects
metadata
Responses

Language
Credentials
:
Choose an example:
application/json