Skip to main content
POST
/
v1
/
public
/
inventory-transactions
Create Inventory Transaction
curl --request POST \
  --url https://api.sanka.com/v1/public/inventory-transactions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "transactionType": "<string>",
  "inventoryId": "<string>",
  "inventoryExternalId": "<string>",
  "amount": 123,
  "transactionAmount": 123,
  "transactionDate": "<string>",
  "status": "<string>",
  "inventoryType": "<string>",
  "useUnitValue": true,
  "price": 123
}
'
{
  "ok": true,
  "status": "<string>",
  "transaction_id": "<string>",
  "inventory_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
transactionType
string
required
inventoryId
string | null
inventoryExternalId
string | null
amount
integer | null
transactionAmount
integer | null
transactionDate
string | null
status
string | null
inventoryType
string | null
useUnitValue
boolean | null
price
number | null

Response

OK

ok
boolean
required
status
string
required
transaction_id
string | null
inventory_id
string | null
ctx_id
string | null