API Docs
Home
Home
Developer GuideAPI
StatusWebhooks
Developer GuideAPI
StatusWebhooks
  1. Product Inventory
  • Config
    • List Pickup Address
      GET
    • List Box Dimension
      GET
    • List vendor
      GET
    • List store
      GET
  • Online Product
    • Options
      • List category
      • List brand
    • Create Single Product
      POST
    • Create Product From Product Inventory
      POST
    • List product
      GET
    • Product detail
      GET
  • Product Inventory
    • Options
      • List Outbound Strategy
      • List Product Type
      • List Material
      • List Storage Method
    • List product inventory
      GET
    • Product inventory detail
      GET
    • Create single inventory product
      POST
  • Order
    • Shipping Service
      • Preview shipping prices
        • List shipping service
        • List available courier
      • List available courier from order
      • List shipping service of courier
    • Create order B2C
      POST
    • Create order B2B
      POST
    • List order
      GET
    • Order detail
      GET
    • Cancel order
      PATCH
  • Shipment
    • Create shipment auto
      POST
    • [Retail][Ship by self] Create shipment with item
      POST
    • Cancel shipment
      PATCH
    • List shipment
      GET
    • Shipment detail
      GET
    • List shipment of order
      GET
  • Shipment Inbound
    • Create shipment inbound
    • Cancel shipment inbound
    • List shipment inbound
    • Shipment inbound detail
    • Shipment inbound items
  • Order Return
    • List return order
    • Return order detail
    • Create return order
    • Cancel Return Order
  • Courier
    • List courier service integrated
    • List courier operate
    • List courier integrated
  • Address Directory
    • Province
    • District
    • Ward
  1. Product Inventory

Create single inventory product

Developing
POST
/api/v1/public/products/inventory/create
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/public/products/inventory/create' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
  "sku": "SKU00001",
  "name": "Máy Massage Cầm Tay Maxcare MAX631S",
  "weight": 1000,
  "package_length": 10,
  "package_width": 20,
  "package_height": 10,
  "product_brand": null,
  "product_category": 15,
  "cost": 100000,
  "sale_price": 200000,
  "is_serial_number": 0,
  "is_batch_control": 1,
  "is_bubble_wrap": 1,
  "is_kraft_paper": 1,
  "is_fragile": 0,
  "min_shelf_life_inbound": 10,
  "min_shelf_life_outbound": 20,
  "material": "3PF-BOX",
  "product_type": "NORMAL",
  "storage_method": "normal",
  "outbound_strategy": "fifo",
  "unit": 91,
  "info": {
    "description": "Max631S là loại máy massage cầm tay một đầu đấm được thiết kế đột phá trong kiểu dáng, tạo cảm giác thân thiện, tiện lợi khi sử dụng. \nVới 4 chế độ massage giúp người dùng dễ dàng điều chỉnh chế độ massage mong muốn. Max631S sử dụng phương pháp massage cổ truyền, giúp giảm đau cơ, mệt mỏi, tạo cảm giác thư giãn nhanh chóng đồng thời giúp tăng cường tuần hoàn máu.\nHỗ trợ điều trị một số bệnh cấp tính và mãn tính: Hạ huyết áp, thấp khớp, viêm khớp, đau mỏi vai gáy, căng cơ thắt lưng, đau dây thần kinh.\nGiúp cải thiện chất lượng giấc ngủ, cho bạn giấc ngủ ngon hơn.\n\nHướng dẫn sử dụng:\nMáy massage cầm tay Max631S có thể dùng cho nhiều vùng cơ thể như: Vai, cổ gáy, lưng, bụng, bắp tay, bàn chân.\nĐầu đấm 1: Là dạng đầu đấm tròn cố định với máy dùng để massage toàn thân. Sử dụng đầu đấm tròn sẽ làm tan các vết bầm tím, giảm thiểu đau nhức xương khớp, xua tan mệt mỏi. \nĐầu đấm 2: Là đầu đấm gai thay thế. Đầu đấm này sẽ hỗ trợ điều trị thấp khớp hay đánh tan mỡ thừa.\nĐầu đấm 3: Là loại đầu đấm thay thế với 3 đầu con lăn tròn mini. Đầu đấm có tác dụng thư giãn, xóa tan mệt mỏi, cải thiện chứng táo bón và giúp thải độc cơ thể. \nĐầu massage 4: Đầu massage chuyên dụng cho vùng bả vai, cánh tay, chân.\nĐầu massage 5: Massage các huyệt đạo, làm giảm đau mỏi.\nĐầu massage 6: Massage làm mềm cơ và thư giãn.\n\nThông tin sản phẩm:\nTên sản phẩm: Máy Massage Cầm Tay Maxcare - Max631S  \nThương hiệu: Maxcare\nThời gian/liệu trình massage tự động: 20 phút\nCông suất: 25W\nNguồn điện: 4.8V\nThương hiệu: Maxcare \nMàu sắc: Trắng, đen\nBảo hành: 12 tháng kể từ ngày sản xuất\nXuất xứ: Nhật Bản"
  },
  "images": [
    {
      "image_url": "https://cf.shopee.vn/file/b0e52a4fbd93984a86d0a13c3b84144f"
    },
    {
      "image_url": "https://cf.shopee.vn/file/72ad6b5915844a189a163ca319494aad"
    }
  ],
    "documents": [
        {
            "url": "https://cf.shopee.vn/file/b0e52a4fbd93984a86d0a13c3b84144f",
            "name": "Doc 1",
            "doc_type": 1,
            "quantity": 2
        }
    ],
  "barcode_list": [
    {
        "barcode": "123456789_111"
    }
  ],
  "config": {
    "create_inventory_stock": true
  }
}'
Response Response Example
200 - Example 1
{}

Request

Header Params
Authorization
string 
required
Default:
{{your_api_key_here}}
Body Params application/json
sku
string 
required
name
string 
required
weight
integer 
required
package_length
integer 
required
package_width
integer 
required
package_height
integer 
required
product_brand
null 
required
product_category
integer 
required
cost
integer 
required
sale_price
integer 
required
is_serial_number
integer 
required
is_batch_control
integer 
required
is_bubble_wrap
integer 
required
is_kraft_paper
integer 
required
is_fragile
integer 
required
min_shelf_life_inbound
integer 
required
min_shelf_life_outbound
integer 
required
material
string 
required
product_type
string 
required
storage_method
string 
required
outbound_strategy
string 
required
unit
integer 
required
info
object 
required
description
string 
required
images
array [object {1}] 
required
image_url
string 
optional
documents
array [object {2}] 
optional
url
string 
optional
name
string 
optional
barcode_list
array [object {1}] 
required
barcode
string 
optional
config
object 
required
create_inventory_stock
boolean 
required
Examples

Responses

🟢200Success
application/json
Body
object {0}
🟠400Bad Request
Previous
Product inventory detail
Next
List shipping service
Built with