POST
/
v1
/
item
/
create
curl --request POST \
  --url https://api.decodahealth.com/v1/item/create \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '{
  "description": "<string>",
  "image": "<string>",
  "meta": {},
  "name": "<string>",
  "price": 123,
  "unit": "<string>"
}'
{
  "description": "<string>",
  "id": "<string>",
  "image": "<string>",
  "meta": {},
  "name": "<string>",
  "price": 123,
  "unit": "<string>"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json
name
string
required

Name of the item

price
integer
required

Price of the item in cents

description
string | null

Optional description of the item

image
string | null

Optional URL to a public image of the item

meta
object | null

Any additional metadata about the item relevant to your system.

unit
string | null

Optional unit of measurement for the item

Response

200
application/json
Successful Response
id
string
required

Unique identifier for the item

name
string
required

Name of the item

price
integer
required

Price of the item in cents

description
string | null

Optional description of the item

image
string | null

Optional URL to an image of the item

meta
object | null

Any additional metadata about the item relevant to your system.

unit
string | null

Optional unit of measurement for the item