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 Variant

Testing
GET
/store/products/{id}/variant
BosOnline/Product
Endpoint ini digunakan untuk mengambil daftar varian produk berdasarkan ID produk. Varian dapat berupa opsi tunggal (misal: "100gr") atau kombinasi (misal: "100gr + halus") lengkap dengan harga, stok, dan SKU. Tab Varian Produk.
Catatan: Perbakan url
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/store/products/ESB-004/variant?category=name&keyword=&start=0&limit=10&sort_by=name&sort_dir=desc&status='
Response Response Example
200 - Success
{
    "data": [
        {
            "height": 10,
            "hpp": 40000,
            "length": 10,
            "name": "Halus 1000 gr",
            "price": 45000,
            "publish_rate": 50000,
            "sku": "ESB-002-24",
            "status": 1,
            "stok": 101,
            "type": "Produk Digital",
            "weight": 100,
            "width": 10
        },
        {
            "height": 10,
            "hpp": 60000,
            "length": 10,
            "name": "Halus 2000 gr",
            "price": 65000,
            "publish_rate": 70000,
            "sku": "ESB-002-25",
            "status": 0,
            "stok": 302,
            "type": "Produk Digital",
            "weight": 200,
            "width": 10
        }
    ],
    "total": 2
}

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Example:
ESB-004
Query Params
category
string 
optional
name, sku
Example:
name
keyword
string 
optional
start
string 
optional
Example:
0
limit
string 
optional
validasi BE maks 250
Example:
10
sort_by
string 
optional
name
Example:
name
sort_dir
string 
optional
asc, desc
Example:
desc
status
integer 
optional
null = all, 0 = non active, 1 = active

Responses

🟢200OK
application/json
Body
data
array [object {10}] 
required
variant_sku
string 
required
variant_stok
integer 
required
variant_length
integer 
required
variant_width
integer 
required
variant_height
integer 
required
variant_weight
integer 
required
variant_hpp
integer 
required
variant_price
integer 
required
variant_status
integer 
required
atribut_item
array [object {4}] 
required
total
integer 
required
🔴503Service Unavailable
🟠404Record not found
Modified at 2025-06-20 03:16:06
Previous
Product Detail
Next
Edit Status Variant (Product Detail)
Built with