Skip to main content
POST
/
v1
/
prices
/
{id}
Update Price
curl --request POST \
  --url https://api.withflex.com/v1/prices/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "price": {
    "description": "string",
    "active": false
  }
}
'
{
  "price": {
    "price_id": "obj_01EXAMPLE00000000000000000",
    "description": "string",
    "trial_period_days": 0,
    "unit_amount": 0,
    "recurring": {
      "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
  }
}

Authorizations

Authorization
string
header
required

Use a Bearer token to access this API.

Path Parameters

id
string
required
Example:

"obj_01EXAMPLE00000000000000000"

Body

application/json
price
object
required
Example:
{ "description": "string", "active": false }

Response

Success

price
object
required

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
}