Bulk Update
POST /vendor/products/bulk-update — Update multiple products by product_id or code.
/vendor/products/bulk-updateVendor bearer token requiredBulk Update
Update multiple products at once, including price, stock, manufacturer fields, and more.
Bulk update allows you to update multiple products at once. Match by product_id (UUID) or code (SKU). If product_id is provided it is used first; otherwise code must uniquely identify the product within your vendor catalog.
When to use this
- Syncing price and stock from an ERP or PIM.
- Updating compliance fields (AbilityOne, ECCN, UNSPSC) in batch.
Request body
| Name | Type | Required | Description |
|---|---|---|---|
| product_id | string (UUID) | No | Product ID. Used as primary reference when provided. |
| code | string | No | Product SKU or variant SKU. Used when product_id is omitted. |
| vendor_price | number | No | Vendor/cost price (USD). Applied to the default variant. The customer retail price is recomputed from it as `vendor_price × (1 + your commission %)`. |
| amount | integer | No | Absolute stock on the default variant. 0 for out of stock is accepted. |
| abilityone | string | No | AbilityOne metaobject: Y for Yes, N for No. Product-level. |
| unit_of_measure | string | No | Unit of measure. Applied to the default variant. |
| manufacturer_name | string | No | Manufacturer name. Product-level. |
| manufacturer_part_number | string | No | Manufacturer part number. Applied to the default variant. |
| country_of_origin | string | No | Country of origin. Product-level. |
| lead_time | integer | No | Lead time in days. Product-level. |
| upc | string | number | No | Universal Product Code (UPC). Applied to the default variant. |
| unspsc | string | number | No | UNSPSC code. Product-level. |
| commodity_code | string | number | No | Commodity / HS-style code (max 28 characters). Product-level. |
| eccn | string | number | No | Export Control Classification Number (ECCN). Product-level. |
Request example
curl -X POST 'https://api.next.gcommerce.glass/api/v1/vendor/products/bulk-update' \
-H 'Content-Type: application/json'Response examples
[
{
"product_id": "550e8400-e29b-41d4-a716-446655440020",
"code": "B1224059",
"updates": {
"prices": true,
"amount": true,
"abilityone": true,
"unit_of_measure": true,
"manufacturer_name": true,
"manufacturer_part_number": true,
"country_of_origin": true,
"lead_time": true,
"upc": true,
"unspsc": true,
"commodity_code": true,
"eccn": true
}
}
]Status codes
OK
Request succeeded.
Unauthorized
Missing or invalid bearer token.
Forbidden
Insufficient permissions for this action.
Bad Request
Validation failed or invalid parameters.
Not Found
Resource not found.
Too Many Requests
Global rate limit exceeded (10,000 requests per 10 minutes per IP).
Internal Server Error
Unexpected server error.
Forbidden
No vendor membership, or insufficient vendor role (requires OWNER, ADMIN, or EDITOR for write operations).
Try it
Uses your saved session from login. Edit values and send a live request, or copy the cURL command.