Edit Item
Updates the details of an existing item in the inventory. This endpoint is used to modify any of the item’s attributes such as item name, price, quantity, or description.
Endpoint
PUT
https://app.xtrakit.com/api/v1/inventory/items/{item_code}
Headers
Authorization: Bearer API_KEY
Path Parameters
item_code
string
Required
The unique code for identifying the item in the inventory system. Should be passed through the URL.(Jce84a50)
Body Parameters
item_name
string
Required
The name or title of the item.
category_id
int
Required
The ID representing the category this item belongs to.
unit
string
Required
The unit of measure for the item.
(pcs, kg, liters,...)
description
string
Optional
A detailed description of the item, providing more information about its features.
unit_cost
decimal(10,2)
Required
The cost price of a single unit of the item in this format: 10.00
item_price
decimal(10,2)
Required
The selling price of the item in this format: 10.00
previous_price
decimal(10,2)
Optional
The previous selling price of the item in this format: 10.00
quantity
string
Required
The available stock or quantity of the item.
minimum_qty_alert
string
Optional
A threshold quantity that triggers an alert when stock falls below this level.
online
int
Required
Indicator whether the item is available online.
Accepts 1 (true) or 0 (false)
status
string
Required
The availability status of the item.
(available, out of stock).
barcode
string
Optional
The barcode assigned to the item.
sku
string
Optional
The Stock Keeping Unit (SKU) for tracking inventory.
warehouse_id
int
Optional
The ID of the warehouse where the item is stored.
item_location
string
Optional
The physical location of the item within the warehouse.
item_slug
string
Optional
A URL-friendly version of the item name used in links and routes.
Sample Requests
Sample Response
Last updated