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": {}
}
}'
{
"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",
"test_mode": true,
"metadata": {}
}
}
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>",
"hsa_fsa_eligibility": "not_eligible",
"metadata": {}
}
}'
{
"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",
"test_mode": true,
"metadata": {}
}
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The response is of type object
.