Skip to main content
POST
/
inventory
/
suppliers
/
create
Create Suppliers
curl --request POST \
  --url https://api.decodahealth.com/inventory/suppliers/create \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
[
  {
    "name": "<string>",
    "id": "<string>",
    "description": "<string>",
    "website": "<string>",
    "email": "<string>",
    "preferredContactMethod": "<string>",
    "phoneNumber": "<string>",
    "addressLineOne": "<string>",
    "addressLineTwo": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zipCode": "<string>",
    "country": "<string>",
    "isArchived": false
  }
]
'
[
  {
    "name": "<string>",
    "id": "<string>",
    "description": "<string>",
    "website": "<string>",
    "email": "<string>",
    "preferredContactMethod": "<string>",
    "phoneNumber": "<string>",
    "addressLineOne": "<string>",
    "addressLineTwo": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zipCode": "<string>",
    "country": "<string>",
    "isArchived": false
  }
]

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 supplier

id
string

Unique identifier for the supplier

description
string | null

Optional description of the supplier

website
string | null

Optional website of the supplier

email
string | null

Optional email of the supplier

preferredContactMethod
string | null

Optional preferred contact method

phoneNumber
string | null

Optional phone number of the supplier

addressLineOne
string | null

Optional first line of address

addressLineTwo
string | null

Optional second line of address

city
string | null

Optional city

state
string | null

Optional state or province

zipCode
string | null

Optional ZIP or postal code

country
string | null

Optional country

isArchived
boolean
default:false

Whether the supplier is archived

Response

Successful Response

name
string
required

Name of the supplier

id
string

Unique identifier for the supplier

description
string | null

Optional description of the supplier

website
string | null

Optional website of the supplier

email
string | null

Optional email of the supplier

preferredContactMethod
string | null

Optional preferred contact method

phoneNumber
string | null

Optional phone number of the supplier

addressLineOne
string | null

Optional first line of address

addressLineTwo
string | null

Optional second line of address

city
string | null

Optional city

state
string | null

Optional state or province

zipCode
string | null

Optional ZIP or postal code

country
string | null

Optional country

isArchived
boolean
default:false

Whether the supplier is archived