cURL
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>", "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>", "visit_type": "cbtSleep", "upc_code": "<string>", "gtin": "<string>", "reference_gtin": "<string>", "metadata": {}, "url": "<string>" } }
Creates a new product.
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.