POST
/
v1
/
products
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": {}
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200
application/json

The response is of type object.