curl --request POST \
--url https://omnicommerce.sg/api/v1/price-books/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "shopee",
"listPrice": 100
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({platform: 'shopee', listPrice: 100})
};
fetch('https://omnicommerce.sg/api/v1/price-books/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/price-books/preview"
payload = {
"platform": "shopee",
"listPrice": 100
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"listPrice": 123,
"channelListPrice": 123,
"applied": true,
"source": "price_book",
"markupPercent": 123,
"currency": "<string>",
"belowCatalogPrice": true,
"formulaError": "<string>",
"rule": {},
"message": "<string>"
}Preview Channel List Price
Compute channel list price from a canonical list price using matching enabled rules (or a forced ruleId). Requires price_books:read.
curl --request POST \
--url https://omnicommerce.sg/api/v1/price-books/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"platform": "shopee",
"listPrice": 100
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({platform: 'shopee', listPrice: 100})
};
fetch('https://omnicommerce.sg/api/v1/price-books/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/price-books/preview"
payload = {
"platform": "shopee",
"listPrice": 100
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"listPrice": 123,
"channelListPrice": 123,
"applied": true,
"source": "price_book",
"markupPercent": 123,
"currency": "<string>",
"belowCatalogPrice": true,
"formulaError": "<string>",
"rule": {},
"message": "<string>"
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Body
shopee, lazada, tiktok, shopify, whatsapp, zalora, amazon, ebay Canonical list price to mark up.
Required for session auth across multiple organizations. Optional for OAuth/API keys bound to one organization.
120200803Optional force a specific rule instead of specificity matching.
Response
Preview computed.
price_book, canonical Listed currency when known. A buyer formula with CURRENCY sets it.
Present and true when the buyer formula lists below the catalog price in the same currency. This is usually a payout formula, price * (1 - fees), used where the gross-up, price / (1 - fees), was meant.
Set when the matched buyer formula cannot price this list price. Publish fails for that listing instead of using the catalog price.