Repository navigation
Vendor Product Update
Update a vendor-specific offer for a product in a multi-vendor marketplace: price, stock, availability, discount period and other vendor-level data.
Base URL:
https://api.selldone.comAuth header:Authorization: Bearer YOUR_ACCESS_TOKEN
PUT /shops/{shop_id}/products/{product_id}/vendors/{vendor_product_id}
SDK URL builder: window.API.PUT_EDIT_PRODUCT_VENDOR(...). Get vendor_product_id from
Vendor Products List.
This endpoint can only be used by the marketplace owner: the token needs the backoffice:product:write scope and
access to the shop's Marketplace permission region. Vendors themselves cannot use this API to update their
offers; they use their vendor panel (Vendor SDK).
| Name | Type | Required | Description |
|---|---|---|---|
raw_price |
number | No | Base price before commission and pricing logic. |
price |
number | No | Final price (auto-calculated if pricing_id is provided). |
pricing_id |
integer | No | Optional pricing plan ID to auto-calculate the price. |
quantity |
integer | No | Available inventory for this vendor offer. |
enable |
boolean | No | Whether this offer is active. |
currency |
string | No | ISO currency code (for example USD). |
commission |
number | No | Custom commission percentage. |
discount |
number | No | Discount percentage. |
dis_start |
date | No | Discount start date (YYYY-MM-DD). |
dis_end |
date | No | Discount end date (YYYY-MM-DD). |
variant_id |
integer | No | Product variant ID (only allowed if it is not already set). |
lead |
integer | No | Lead time in days (use -1 if unknown). |
-
variant_idcan only be set while it isnull. Once set, it cannot be changed. -
If
pricing_idis provided, the finalpriceis calculated automatically, rounded according to the selected currency's rules:price = raw_price × (1 + commission%)
PUT https://api.selldone.com/shops/123/products/456/vendors/789
Authorization: Bearer YOUR_ACCESS_TOKEN
Content-Type: application/json
{
"raw_price": 9.0,
"pricing_id": 2,
"quantity": 50,
"enable": true,
"currency": "USD",
"commission": 10,
"discount": 5,
"dis_start": "2025-05-15",
"dis_end": "2025-06-01",
"lead": 2
}{
"success": true,
"vendor_product": {
"id": 789,
"product_id": 456,
"vendor_id": 10,
"raw_price": 9.0,
"price": 9.9,
"currency": "USD",
"quantity": 50,
"enable": true,
"discount": 5,
"dis_start": "2025-05-15",
"dis_end": "2025-06-01",
"lead": 2,
...
}
}| Error message | Reason |
|---|---|
You can not change this as the vendor! |
Only shop owners can update vendor offers. |
Vendor product not found! |
The vendor_product_id is invalid. |
You can not change variant_id... |
Attempted to change variant_id after it was already set. |
This variant is already assigned... |
The vendor already offers this variant. |
Pricing plan not found! |
Invalid pricing_id. |
-
Vendor Products List:
GET /shops/{shop_id}/products/{product_id}/vendors -
Vendor Product Add:
POST /shops/{shop_id}/products/{product_id}/vendors -
Vendor Product Delete:
DELETE /shops/{shop_id}/products/{product_id}/vendors/{vendor_product_id}
Guides
Products
- Fetch Products List
- Edit Product
- Edit Product's Variant
- Add Images to Products/Variants
- Upload Products Category Image
Marketplace vendors
- Get Vendors List
- Vendor Products List
- Vendor Product Add
- Vendor Product Update
- Vendor Product Delete
Ecosystem
Links