Skip to main content
POST
/
api
/
item-categories
Create a new item category.
curl --request POST \
  --url https://api.example.com/api/item-categories \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --header 'organization-id: <organization-id>' \
  --data '
{
  "name": "Category name",
  "description": "Category description",
  "costAccountId": 1,
  "sellAccountId": 1,
  "inventoryAccountId": 1,
  "costMethod": "FIFO"
}
'

Headers

Authorization
string
required

Value must be 'Bearer ' where is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Body

application/json
name
string
required

The category name

Example:

"Category name"

description
string
required

The category description

Example:

"Category description"

costAccountId
number
required

The cost account ID

Example:

1

sellAccountId
number
required

The sell account ID

Example:

1

inventoryAccountId
number
required

The inventory account ID

Example:

1

costMethod
string
required

The cost method

Example:

"FIFO"

Response

201 - undefined