Update Product
curl --request PATCH \
--url https://omnicommerce.sg/api/v1/products/{productId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"price": 69.99,
"inventory": {
"quantity": 150
},
"highlights": [
"Active noise cancellation",
"30-hour battery",
"IPX5 water resistant"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
price: 69.99,
inventory: {quantity: 150},
highlights: ['Active noise cancellation', '30-hour battery', 'IPX5 water resistant']
})
};
fetch('https://omnicommerce.sg/api/v1/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/products/{productId}"
payload = {
"price": 69.99,
"inventory": { "quantity": 150 },
"highlights": ["Active noise cancellation", "30-hour battery", "IPX5 water resistant"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"productId": "<string>",
"product": {}
}Products
Update Product
Update an existing product by ID. Only provided fields will be updated. Supports API key Bearer token authentication.
PATCH
/
api
/
v1
/
products
/
{productId}
Update Product
curl --request PATCH \
--url https://omnicommerce.sg/api/v1/products/{productId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"price": 69.99,
"inventory": {
"quantity": 150
},
"highlights": [
"Active noise cancellation",
"30-hour battery",
"IPX5 water resistant"
]
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
price: 69.99,
inventory: {quantity: 150},
highlights: ['Active noise cancellation', '30-hour battery', 'IPX5 water resistant']
})
};
fetch('https://omnicommerce.sg/api/v1/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/products/{productId}"
payload = {
"price": 69.99,
"inventory": { "quantity": 150 },
"highlights": ["Active noise cancellation", "30-hour battery", "IPX5 water resistant"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"success": true,
"productId": "<string>",
"product": {}
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Path Parameters
Body
application/json
Partial product object. Only provided fields will be updated.
Maximum string length:
400Maximum string length:
200Maximum string length:
160Required range:
x >= 0Maximum string length:
3Required range:
x >= 0Show child attributes
Show child attributes
Show child attributes
Show child attributes
Array of HTTP(S) image URL strings only. Image objects and delimited strings are not accepted. Each entry is a complete URL, including commas in paths or query strings. Images follow array order.
Maximum string length:
2048Pattern:
^[Hh][Tt][Tt][Pp][Ss]?://Show child attributes
Show child attributes
Available options:
draft, active, archived