- Getting Started
- Extension
- Dashboard
- Module
- Report
- Total
- Integration
- Inventory
- Addition
- Brand
- Category
- Deduction
- Flow
- Item
- Location
- Purchase Order
- Reservation
- Stock Take Job
- Supplier
- Transfer Job
- Transfer
- Sale
- Setting
inventory/item/add
POST
/inventory/item/add
Request
Body Params application/json
domain
string
required
api_key
string
required
auth_timestamp
integer
required
auth_signature
string
required
name
string
required
model
string
required
description
string
required
plain_description
string
required
channel_group_id
integer
required
sku
string
required
gtin
string
required
barcode
string
required
weight
number
required
length
number
required
width
number
required
height
number
required
parent_id
integer
required
brand_id
integer
required
image
string
required
price
number
required
cost
number
optional
total_added
integer
required
total_deducted
integer
required
average_cost
number
optional
pool_cost
number
optional
images
array [object {2}]
required
image
string
required
set_id
integer
required
locations
array [object {6}]
optional
location_id
integer
required
quantity
integer
required
price
number
required
stock_warning
integer
required
stock_danger
integer
required
location
string
required
customer_groups
array [object {2}]
optional
customer_group_id
integer
required
price
number
required
categories
array[integer]
required
bundle
integer
required
item_bundles
array [object {2}]
optional
bundle_item_id
integer
required
quantity
integer
required
translations
array [object {4}]
optional
language_id
integer
required
name
string
required
description
string
required
plain_description
string
required
Example
{
"domain": "string",
"api_key": "string",
"auth_timestamp": 0,
"auth_signature": "string",
"name": "string",
"model": "string",
"description": "string",
"plain_description": "string",
"channel_group_id": 0,
"sku": "string",
"gtin": "string",
"barcode": "string",
"weight": 0,
"length": 0,
"width": 0,
"height": 0,
"parent_id": 0,
"brand_id": 0,
"image": "string",
"price": 0,
"cost": 0,
"total_added": 0,
"total_deducted": 0,
"average_cost": 0,
"pool_cost": 0,
"images": [
{
"image": "string",
"set_id": 0
}
],
"locations": [
{
"location_id": 0,
"quantity": 0,
"price": 0,
"stock_warning": 0,
"stock_danger": 0,
"location": "string"
}
],
"customer_groups": [
{
"customer_group_id": 0,
"price": 0
}
],
"categories": [
0
],
"bundle": 0,
"item_bundles": [
{
"bundle_item_id": 0,
"quantity": 0
}
],
"translations": [
{
"language_id": 0,
"name": "string",
"description": "string",
"plain_description": "string"
}
]
}
Responses
🟢200Success
application/json
Body
error
array[string]
optional
success
boolean
optional
item_id
integer
optional
Example
{
"error": [
"string"
],
"success": true,
"item_id": 0
}
Modified at 2024-10-22 09:22:02