curl --request POST \
--url https://api.withflex.com/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"name": "<string>",
"description": "<string>",
"upc_code": "<string>",
"gtin": "<string>",
"reference_gtin": "<string>",
"visit_type": "cbtSleep",
"url": "<string>",
"client_reference_id": "<string>",
"hsa_fsa_eligibility": "not_eligible",
"metadata": {},
"image_urls": [
"<string>"
],
"categories": [
"<string>"
],
"components": [
"<string>"
]
}
}
'{
"product": {
"product_id": "<string>",
"name": "<string>",
"created_at": "<string>",
"active": true,
"hsa_fsa_eligibility": "not_eligible",
"test_mode": true,
"description": "<string>",
"document_description": "<string>",
"receipt_description": "<string>",
"visit_type": "cbtSleep",
"upc_code": "<string>",
"gtin": "<string>",
"reference_gtin": "<string>",
"metadata": {},
"url": "<string>",
"client_reference_id": "<string>"
}
}Creates a new product.
curl --request POST \
--url https://api.withflex.com/v1/products \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product": {
"name": "<string>",
"description": "<string>",
"upc_code": "<string>",
"gtin": "<string>",
"reference_gtin": "<string>",
"visit_type": "cbtSleep",
"url": "<string>",
"client_reference_id": "<string>",
"hsa_fsa_eligibility": "not_eligible",
"metadata": {},
"image_urls": [
"<string>"
],
"categories": [
"<string>"
],
"components": [
"<string>"
]
}
}
'{
"product": {
"product_id": "<string>",
"name": "<string>",
"created_at": "<string>",
"active": true,
"hsa_fsa_eligibility": "not_eligible",
"test_mode": true,
"description": "<string>",
"document_description": "<string>",
"receipt_description": "<string>",
"visit_type": "cbtSleep",
"upc_code": "<string>",
"gtin": "<string>",
"reference_gtin": "<string>",
"metadata": {},
"url": "<string>",
"client_reference_id": "<string>"
}
}Use a Bearer token to access this API.
Show child attributes
A Product defines what you sell. Flex creates the The product can either be not eligible, elegible via auto-substantiation or elegible via letter of medical necessity.
Show child attributes