bosOnline
  1. Product
bosOnline
  • bosOnline
  • BosOnline
    • auth
      • Register
      • Login
      • Refresh Token
    • Product
      • Inventory
        GET
      • Download Inventory
        POST
      • Download Variant
        POST
      • Update Inventory
        PUT
      • Get Category
        GET
      • Get Edit Product
        GET
      • Product List
        GET
      • Edit Product Detail (Product Detail)
        PUT
      • product
        POST
      • Delete Product
        DELETE
      • Edit Status Product (Product List)
        PATCH
      • Download Product (Product List)
        POST
      • Product Detail
        GET
      • Product Variant
        GET
      • Edit Status Variant (Product Detail)
        PATCH
      • Update Variant
        PUT
      • Upload Image
        POST
      • Cek SKU
        GET
    • Form
      • Form
      • Edit Form
      • Form Detail
      • Edit Status Form (Product Detail)
      • Form list
      • Custom Success Page
      • Custom Success Page
      • Edit Success Page
    • Order
      • Checkout
        • Request Create Order
        • Request Create Order Abandoned
      • Follow up
        • Follow Up
        • Follow Up Attempts
      • Edit Choose Courier
      • Edit Payment Method
      • Detail Order
      • Edit Customer Order
      • Edit Another Fee
      • Order List
      • Confirm Payment
      • Update Payment Method
      • Update Pengiriman Kurir
      • Update Status Order
    • Store
      • Custom Domain
        • Set Default Subdomain
        • Subdomain
        • Create Subdomain
        • Verifikasi Subdomain
        • Get Revenue
      • Store
      • Cek SubDomain
      • Get Region
      • Store
      • Warehouse
      • On Boarding
      • Recap Order
      • Recap Store
      • Recap Product
      • Recap CS
      • Tips
      • Announcement
      • Edit Subdomain
    • API Boscod
      • Cek Ongkir
      • Wilayah
      • Tracking Order
      • Reset Password
      • Warehouse
      • Order Shipping
      • winpay service
    • Profile
      • Warehouse
      • Edit Warehouse
      • Profile
      • Data Deletion
      • Default Warehouse
      • Me
    • Staff
      • Staff
      • Delete staff
      • Create Staff
      • Edit Status Staff
    • Rekening
      • Bank List
      • Get Rekening List
      • Rekening Detail
      • Create Rekening
      • Edit Rekening
      • Delete Rekening
      • Edit Status Rekening
    • Voucher
      • List Voucher
      • Edit Voucher Status
      • Voucher
      • List Voucher Checkout
      • Delete Voucher
  • AdminBosOnline
    • Dashboard
      • Recap Store
      • Revenue
      • Order Recap
  1. Product

product

Testing
POST
/store/products
BosOnline/Product
Endpoint ini digunakan untuk membuat produk beserta varian. Create Produk.
Catatan: Perbaikan response 404 & 400
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/store/products' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "Biji kopi arabica",
    "sku": "ESB-006",
    "description": "Kopi pilihan asli",
    "path_url": "biji-kopi-arabica",
    "category_id": 1,
    "weight": 1000,
    "length": 10,
    "height": 10,
    "width": 10,
    "publish_rate": 50000,
    "price": 45000,
    "hpp": 40000,
    "qty": 10000,
    "image": [
        {
            "file_name": "1750661540-444.png"
        }
    ],
    "attributes": [
        {
            "name": "Kemasan Kopi",
            "items": [
                "halus",
                "sedang"
            ],
            "priority": 1
        },
        {
            "name": "Tingkat Giling",
            "items": [
                "1000 gr",
                "2000 gr"
            ],
            "priority": 2
        }
    ],
    "varian_items": [
        {
            "name": "Halus 1000 gr",
            "sku": "ESB-006-01",
            "stok": 101,
            "min_qty": 100,
            "weight": 100,
            "length": 10,
            "height": 10,
            "width": 10,
            "price": 45000,
            "publish_rate": 50000,
            "hpp": 40000,
            "status": 1
        },
        {
            "name": "Halus 2000 gr",
            "sku": "ESB-006-02",
            "varian_stok": 302,
            "min_qty": 100,
            "weight": 200,
            "length": 10,
            "height": 10,
            "width": 10,
            "price": 65000,
            "publish_rate": 70000,
            "hpp": 60000,
            "status": 0
        },
        {
            "name": "sedang 1000 gr",
            "sku": "ESB-006-03",
            "stok": 101,
            "min_qty": 100,
            "weight": 100,
            "length": 10,
            "height": 10,
            "width": 10,
            "price": 45000,
            "publish_rate": 50000,
            "hpp": 40000,
            "status": 1
        },
        {
            "name": "sedang 2000 gr",
            "sku": "ESB-006-04",
            "stok": 302,
            "min_qty": 100,
            "weight": 200,
            "length": 10,
            "height": 10,
            "width": 10,
            "price": 65000,
            "publish_rate": 70000,
            "hpp": 60000,
            "status": 0
        }
    ],
    "product_cs": [
        {
            "cs_id": 5
        }
    ],
    "order_status": 1
}'
Response Response Example
200 - Success
{
    "message": "product saved"
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
name
string 
required
Product Name
sku
string 
required
SKU induk
description
string 
optional
<= 255 characters
path_url
string 
required
category_id
integer 
required
weight
integer 
required
Format gr
<= 99000
Default:
1000
length
integer 
required
Format cm
Default:
10
Example:
10
height
integer 
required
Format cm
Default:
10
Example:
10
width
integer 
required
Format cm
Default:
10
Example:
10
publish_rate
integer 
required
harga setelah diskon
price
integer 
required
harga normal
hpp
integer 
required
harga beli
qty
integer 
required
image
array [object {1}] 
required
<= 5 items
file_path
string 
optional
attributes
array [object {4}] 
required
name
string 
required
items
array[string]
required
priority
integer 
required
attribute_items
array[string]
required
varian_items
array [object {20}] 
required
name
string 
required
sku
string 
required
stok
integer 
required
min_qty
integer 
required
weight
integer 
required
length
integer 
required
height
integer 
required
width
integer 
required
price
integer 
required
publish_rate
integer 
required
hpp
integer 
required
status
integer 
required
varian_stok
integer 
required
varian_weight
integer 
required
varian_length
integer 
required
varian_height
integer 
required
varian_width
integer 
required
varian_price
integer 
required
varian_publish_rate
integer 
required
varian_hpp
integer 
required
cs_id
integer 
required
order_status
integer 
required
product_name
string  | null 
required
<= 30 characters
Match pattern:
-,.\/
product_weight
integer  | null 
required
satuan gr
<= 99
Default:
1
Example:
1
product_length
integer  | null 
required
satuan cm
Default:
10
product_height
integer  | null 
required
satuan cm
Default:
10
product_width
integer  | null 
required
satuan cm
Default:
10
product_price
integer 
required
harga normal
hpp_product
integer 
required
harga beli
product_qty
integer  | null 
required
Example:
1
product_image
array [object {2}] 
required
file_name
string 
required
file_path
string 
required
Examples

Responses

🟢200OK
application/json
Body
message
string 
required
🔴503Service Unavailable
🟠404Record not found
🟠400Invalid input
Modified at 2025-06-23 06:53:41
Previous
Edit Product Detail (Product Detail)
Next
Delete Product
Built with