Create Product
Changed onCreates a new product. Flex automatically determines the product's HSA/FSA eligibility from the supplied name, description, identifiers, and URL; if it can't be resolved synchronously, the product is created with eligibility pending and classification continues in the background, after which a product.updated event may fire. A product.created event is sent to your configured webhook endpoints on success.
Request
- Base URLhttps://api.withflex.com
- URLhttps://api.withflex.com/v1/products
- AuthHTTP bearer
Request body
Example request
{
"product": {
"name": "Example",
"description": "Premium SPF 50 mineral sunscreen",
"upc_code": "example_value",
"gtin": "example_value",
"reference_gtin": "example_value",
"url": "https://example.com",
"client_reference_id": "example_value",
"metadata": {
"order_id": "8842",
"channel": "shopify"
},
"image_urls": [
"https://example.com/image.png"
],
"categories": [
"string"
],
"components": [
"string"
]
}
}Response
An envelope wrapping a single product object.
Example response
{
"product": {
"product_id": "fprod_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"owner_partner_id": "facct_01J9XR8M3K7VZ8N2YB4WJ6T0RA",
"name": "Example",
"description": "Premium SPF 50 mineral sunscreen",
"document_description": "string",
"receipt_description": "string",
"created_at": "2026-06-15T14:30:00Z",
"visit_type": "cbtSleep",
"active": false,
"upc_code": "string",
"gtin": "string",
"reference_gtin": "string",
"hsa_fsa_eligibility": "not_eligible",
"test_mode": false,
"metadata": {
"order_id": "8842",
"channel": "shopify"
},
"url": "https://example.com",
"client_reference_id": "obj_01J9XR8M3K7VZ8N2YB4WJ6T0RA"
}
}Changes
- warning
added the new
adaptiveShoesDependentenum value to the/////response property for the response status - warning
added the new
automatedCleanerenum value to the/////response property for the response status - warning
added the new
babyMonitorSplitenum value to the/////response property for the response status - warning
added the new
babySleepAppenum value to the/////response property for the response status - warning
added the new
bodyPillowenum value to the/////response property for the response status - warning
added the new
breathWorkDependentenum value to the/////response property for the response status - warning
added the new
coolingSleepwearenum value to the/////response property for the response status - warning
added the new
meneralsNootropicPouchenum value to the/////response property for the response status - warning
added the new
nonenalOdorenum value to the/////response property for the response status - warning
added the new
nursingChairsenum value to the/////response property for the response status - warning
added the new
speechHealthDependentenum value to the/////response property for the response status - warning
added the new
uvClothingenum value to the/////response property for the response status - warning
added the new
uvGlassesenum value to the/////response property for the response status
- warning