Update Product Cost
curl --request PATCH \
--url https://omnicommerce.sg/api/v1/products/{productId}/cost \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"costPrice": 578
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({costPrice: 578})
};
fetch('https://omnicommerce.sg/api/v1/products/{productId}/cost', 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}/cost"
payload = { "costPrice": 578 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Products
Update Product Cost
Set catalog cost for one simple product or variant UUID. Cost is Omni-only and never syncs to marketplaces. Prefer POST /api/v1/products/cost for Windmill or other bulk jobs.
Requires catalog:write. When costPriceCurrency differs from the product selling currency and costPriceFxRate is omitted, Omni stores an FX quote on the product.
PATCH
/
api
/
v1
/
products
/
{productId}
/
cost
Update Product Cost
curl --request PATCH \
--url https://omnicommerce.sg/api/v1/products/{productId}/cost \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"costPrice": 578
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({costPrice: 578})
};
fetch('https://omnicommerce.sg/api/v1/products/{productId}/cost', 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}/cost"
payload = { "costPrice": 578 }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Path Parameters
OmniCommerce simple-product or variant UUID.
Body
application/json
Response
Catalog cost updated.