Skip to main content
POST
/
v1
/
public
/
inventories
Create Inventory
curl --request POST \
  --url https://api.sanka.com/v1/public/inventories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "externalId": "<string>",
  "name": "<string>",
  "itemId": "<string>",
  "itemExternalId": "<string>",
  "status": "<string>",
  "inventoryStatus": "<string>",
  "currency": "<string>",
  "unitPrice": 123,
  "initialValue": 123,
  "date": "<string>",
  "warehouseId": "<string>"
}
'
{
  "ok": true,
  "status": "<string>",
  "external_id": "<string>",
  "inventory_id": "<string>",
  "inventory_record_id": "<string>",
  "ctx_id": "<string>"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
externalId
string
required
name
string | null
itemId
string | null
itemExternalId
string | null
status
string | null
inventoryStatus
string | null
currency
string | null
unitPrice
number | null
initialValue
integer | null
date
string | null
warehouseId
string | null

Response

OK

ok
boolean
required
status
string
required
external_id
string
required
inventory_id
string | null
inventory_record_id
string | null
ctx_id
string | null