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

Update Variant

Testing
PUT
/store/products/variant/{id}
BosOnline/Product
Endpoint ini digunakan untuk keperluan update detail porduct variant.
Catatan: Perbaikan url, Perbaikan response 400 &404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/store/products/variant/ESB-003-24' \
--header 'Content-Type: application/json' \
--data-raw '{
    "weight": 5000,
    "lenght": 10,
    "width": 10,
    "height": 10,
    "publish_rate": 50000,
    "price": 45000,
    "hpp": 40000
}'
Response Response Example
200 - Success
{
    "message": "varian updated ESB-001-01"
}

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-003-24
Body Params application/json
weight
integer 
optional
format gr
Default:
1000
Example:
1000
lenght
integer 
optional
format cm
Default:
10
Example:
10
width
integer 
optional
format cm
Default:
10
Example:
10
height
integer 
optional
format cm
Default:
10
Example:
10
publish_rate
integer 
optional
harga setelah disc
price
integer 
optional
harga normal
hpp
integer 
optional
harga beli
Examples

Responses

🟢200OK
application/json
Body
message
string 
required
🔴503Service Unavailable
🟠400Invalid input
🟠404Record not found
Modified at 2025-06-20 03:31:47
Previous
Edit Status Variant (Product Detail)
Next
Upload Image
Built with