1. Product
Onflow Open API
  • Getting Started
  • API
    • Config
      • Get Warehouse
      • Get Brand
      • Upload file
    • Product
      • Create Product
        POST
      • Assign Product
        PUT
      • Get Product List
        GET
      • Get Product Detail
        GET
      • Delete Product
        DELETE
      • Get Stock
        GET
    • PO
      • Get PO List
      • Create PO
      • Cancel PO
    • Shipment
      • B2C shipment
        • Get B2C Shipment
        • Create B2C Shipment
          • Create B2C Shipment
        • Cancel B2C Shipment
          • Cancel B2C Shipment
  1. Product

Create Product

POST
/api/v1/products/create
This API is used to create products. At this stage, products are not assigned to any warehouse, cannot be used to create POs or shipments, and have status = NEW.

Request

Header Params

Body Params application/json

Examples

Responses

🟢201
application/json
Body

🟠422
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/products/create' \
--header 'Authorization: {{token}}' \
--header 'Accept-Language: vi' \
--header 'Content-Type: application/json' \
--data-raw '{
    "sku": "111111",
    "name": "onflow",
    "brand_id": 2240,
    "product_type": "PHYSICAL",
    "product_unit": "PACKAGE",
    "product_barcodes": [
        "11111"
    ],
    "weight": 10,
    "length": 10,
    "width": 10,
    "height": 10,
    "product_size": "Nhỏ",
    "product_color": "Đỏ",
    "product_price": 200000,
    "product_image_url_main": "https://cf.shopee.vn/file/image.jpg",
    "product_image_url_secondary": "https://cf.shopee.vn/file/image.jpg",
    "product_characteristics": [
        "HIGH_VALUE"
    ],
    "min_stock_warning": 10,
    "storage_method": "NORMAL",
    "inventory_tracking_type": "NONE",
    "outbound_strategy": "FIFO",
    "shelf_life": 180,
    "min_shelf_life_inbound": 160,
    "min_shelf_life_outbound": 120,
    "is_nozzle_reinforcement": 0,
    "is_bubble_wrap": 0,
    "packaging_tape": "ONFLOW_TAPE",
    "packaging_material": "NONE",
    "packaging_note": "Đóng đẹp"
}'
Response Response Example
201 - Success
{
    "data": {
        "oasin": "OASIN1761030",
        "name": "onflow"
    },
    "error": false,
    "error_code": null,
    "log_id": null,
    "messages": "OK",
    "total": 1,
    "version": "1.0.3",
    "error_detail": null
}
Modified at 2026-01-29 01:36:01
Previous
Upload file
Next
Assign Product
Built with