Skip to main content
POST
/
finance
/
inventory
/
add
Add inventory item
curl --request POST \
  --url http://134.209.118.139:3002/finance/inventory/add \
  --header 'Content-Type: application/json' \
  --header 'x-access-token: <api-key>' \
  --data '
{
  "itemname": "CAMON 50",
  "quantity": 10,
  "unitcost": 850000,
  "supplier": "<string>"
}
'
{
  "message": "No token provided."
}

Authorizations

x-access-token
string
header
required

JWT token obtained from POST /api/auth/signin

Body

application/json
itemname
string
required
Example:

"CAMON 50"

quantity
integer
required
Example:

10

unitcost
number
required
Example:

850000

supplier
string

Response

Item added to inventory