Create Price
Create Price
Creates a new price for an existing product. The price can be recurring or one-time.
POST
Create Price
Documentation Index
Fetch the complete documentation index at: https://docs.withflex.com/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
Use a Bearer token to access this API.
Body
application/json
- Option 1
- Option 2
Example:
{
"product": "obj_01EXAMPLE00000000000000000"
}Response
Success
Prices define the unit cost and (optional) billing cycle for both recurring and one-time purchases of products. Prices belong to a given product. Different physical goods or levels of service should be represented by products, and pricing options should be represented by prices.
Example:
{
"price_id": "obj_01EXAMPLE00000000000000000",
"description": "string",
"trial_period_days": 0,
"unit_amount": 0,
"recurring": {
"interval": "daily",
"interval_count": 0,
"trial_period_days": 0
},
"active": false,
"product": "string",
"created_at": "2024-01-01T00:00:00Z",
"type": "one_time",
"metadata": {},
"hsa_fsa_eligibility": "not_eligible",
"test_mode": false
}