curl --request GET \
--url https://api.withflex.com/v1/prices \
--header 'Authorization: Bearer <token>'
{
"prices": [
{
"price_id": "<string>",
"description": "<string>",
"trial_period_days": 123,
"unit_amount": 123,
"recurring": {
"interval": "daily",
"interval_count": 1,
"trial_period_days": 1
},
"active": true,
"product": {
"product_id": "<string>",
"name": "<string>",
"description": "<string>",
"created_at": "<string>",
"visit_type": "cbtSleep",
"active": true,
"upc_code": "<string>",
"gtin": "<string>",
"reference_gtin": "<string>",
"hsa_fsa_eligibility": "not_eligible",
"eligibility_rationale": "<string>",
"test_mode": true,
"metadata": {},
"url": "<string>"
},
"created_at": "<string>",
"type": "one_time",
"metadata": {},
"hsa_fsa_eligibility": "not_eligible",
"test_mode": true
}
]
}
Returns a list of your prices.
curl --request GET \
--url https://api.withflex.com/v1/prices \
--header 'Authorization: Bearer <token>'
{
"prices": [
{
"price_id": "<string>",
"description": "<string>",
"trial_period_days": 123,
"unit_amount": 123,
"recurring": {
"interval": "daily",
"interval_count": 1,
"trial_period_days": 1
},
"active": true,
"product": {
"product_id": "<string>",
"name": "<string>",
"description": "<string>",
"created_at": "<string>",
"visit_type": "cbtSleep",
"active": true,
"upc_code": "<string>",
"gtin": "<string>",
"reference_gtin": "<string>",
"hsa_fsa_eligibility": "not_eligible",
"eligibility_rationale": "<string>",
"test_mode": true,
"metadata": {},
"url": "<string>"
},
"created_at": "<string>",
"type": "one_time",
"metadata": {},
"hsa_fsa_eligibility": "not_eligible",
"test_mode": true
}
]
}
Use a Bearer token to access this API.
The response is of type object
.