Merchant API: retrieve the buy box winner’s price
About this article
This article explains how to retrieve the current buy box winner price per product for a specific channel using the GET /v2/competitionprices/buyboxprices endpoint in ChannelEngine's Merchant API, how to interpret each response field, and how to test your integration.
Table of contents
Endpoint: retrieve buy box winner prices
- Query parameters
- Example requests
- Example response
- Response fields
- Pagination
- Testing your integration
Introduction
On marketplaces where multiple sellers list the same product, the marketplace highlights one offer as the primary offer on the product detail page. This placement is the buy box, and the seller holding that placement is the buy box winner. Because most customer purchases go directly through the buy box, tracking whether your offer holds the buy box and knowing the winning price is critical for competitive pricing.
Use the GET /v2/competitionprices/buyboxprices endpoint to retrieve the current buy box winner price per product on a connected channel, along with a boolean flag indicating whether your offer is currently winning the buy box.
GET /v2/competitionprices/buyboxprices is a read-only endpoint. Calling it retrieves competition pricing data and does not modify your offer prices. To update your product prices, use the Merchant API offers endpoints.
Common use cases for retrieving buy box prices include:
- Automated repricing: compare your current offer price against the buy box winner price and adjust your price within your defined minimum and maximum bounds.
-
Identifying lost buy boxes: filter products where
IsMerchantBuyBoxWinnerisfalseto prioritize catalog items that require pricing review. - Protecting profit margins: identify products where you win the buy box with room to increase your price without losing placement.
- Competitiveness reporting: store historical buy box prices alongside your own offer prices in your ERP, PIM, or business intelligence system.
You can also view buy box data directly in the ChannelEngine web interface to cross-check API responses.
Where to view buy box data on ChannelEngine
| Location in ChannelEngine | Available data |
| Pricing, Competitor history | Displays a per-product graph and snapshot table of competitor prices. The buy box winner is marked with a trophy icon and highlighted in yellow. Search by product name, GTIN, or merchant product number. See ChannelEngine: competitor history. |
| Pricing, Competition statistics | Provides a marketplace-level summary showing how many products you or competing sellers win the buy box on and how your prices compare with the winners. See ChannelEngine: competition statistics. |
Overview
Refer to the flowchart below to visualize how buy box price data travels between the marketplace, ChannelEngine, and your system.
ChannelIdRequirements
Before calling GET /v2/competitionprices/buyboxprices, ensure you meet the following requirements:
- Active ChannelEngine account: at least one active marketplace channel configured in your tenant.
-
Tenant base URL: send all requests to
https://{your-subdomain}.channelengine.net/api, replacing{your-subdomain}with your ChannelEngine tenant name. -
Merchant API key: generate a key in ChannelEngine under Settings > Merchant API keys and include it in the
X-CE-KEYheader of every request. -
Channel ID: retrieve the numeric
ChannelIdof the target marketplace by callingGET /v2/channels. See Merchant API: how to retrieve the channelId. - Repricing-enabled marketplace: the marketplace must support repricing and provide competition price data to ChannelEngine.
- Pricing v2 activated: in ChannelEngine, open the Pricing step of the channel and select Get started to activate pricing v2.
- Product identifiers (optional): a list of GTINs or merchant product numbers (SKUs) if you want to filter the response to specific products.
X-CE-KEY: your-merchant-api-key
Available API endpoints
Use the endpoint below to retrieve current buy box winner prices for products listed on a specific channel.
-
Retrieve buy box winner prices:
GET /v2/competitionprices/buyboxprices
Retrieves a paginated list of products for a givenChannelId, returning the buy box winner's price (excluding and including shipping) and whether your offer currently holds the buy box.
Endpoint: retrieve buy box winner prices
Call GET /v2/competitionprices/buyboxprices to fetch buy box winner prices for all products on a channel or for a filtered list of GTINs or SKUs. A valid request returns HTTP 200. An invalid parameter returns HTTP 400. This endpoint has a rate limit of 50 requests per 15 minutes; see Merchant API: rate limits for throttling guidelines.
Query parameters
| Parameter | Type | Description |
ChannelId |
Integer (required) | The numeric ID of the channel (marketplace) to retrieve buy box prices for. |
GtinList |
Array of strings (optional) | Filter results to specific product GTINs (barcodes). Accepts up to 2,000 values per request. |
SkuList |
Array of strings (optional) | Filter results to specific merchant product numbers (SKUs). Accepts up to 2,000 values per request. Ignored when GtinList is provided. |
Page |
Integer (optional) | The page number of results to retrieve. Defaults to 1. |
GtinList and SkuList, the endpoint returns every product on the specified channel. To reduce payload size and processing time, filter by GtinList or SkuList (up to 2,000 items per call). If both parameters are included in the same request, GtinList takes precedence and SkuList is ignored.
Example requests
Retrieve all buy box prices for channel 42:
curl -X GET "https://{your-subdomain}.channelengine.net/api/v2/competitionprices/buyboxprices?ChannelId=42" -H "X-CE-KEY: your-merchant-api-key"Retrieve buy box prices for specific GTINs on channel 42:
curl -X GET "https://{your-subdomain}.channelengine.net/api/v2/competitionprices/buyboxprices?ChannelId=42&GtinList=8712345678906&GtinList=8712345678913" -H "X-CE-KEY: your-merchant-api-key"Retrieve buy box prices for specific SKUs on channel 42:
curl -X GET "https://{your-subdomain}.channelengine.net/api/v2/competitionprices/buyboxprices?ChannelId=42&SkuList=SHOE-RED-42&SkuList=SHOE-BLUE-40" -H "X-CE-KEY: your-merchant-api-key"Example response
{
"Content": [
{
"Sku": "SHOE-RED-42",
"Gtin": "8712345678906",
"BuyBoxPrice": 49.95,
"BuyBoxPriceInclShipping": 52.90,
"IsMerchantBuyBoxWinner": false
},
{
"Sku": "SHOE-BLUE-40",
"Gtin": "8712345678913",
"BuyBoxPrice": 44.00,
"BuyBoxPriceInclShipping": 44.00,
"IsMerchantBuyBoxWinner": true
}
],
"Count": 2,
"TotalCount": 2,
"ItemsPerPage": 100,
"StatusCode": 200,
"Success": true,
"Message": null,
"ValidationErrors": null
}Response fields
Each item inside the Content array contains the following fields.
Content array fields
| Field | Type | Description |
Sku |
String | Your merchant product number (MerchantProductNo). |
Gtin |
String | The product's Global Trade Item Number (GTIN / barcode). |
BuyBoxPrice |
Decimal (nullable) | The price of the buy box winner excluding shipping costs. Returns null when no competition data is available or no buy box winner is awarded. |
BuyBoxPriceInclShipping |
Decimal (nullable) | The price of the buy box winner including shipping costs. Returns null when no competition data is available or no buy box winner is awarded. |
IsMerchantBuyBoxWinner |
Boolean |
true if your offer is currently the buy box winner; false otherwise. |
BuyBoxPrice and BuyBoxPriceInclShipping. Always compare your offer price against the matching price type (excluding or including shipping).
null for BuyBoxPrice and BuyBoxPriceInclShipping. Configure your integration to skip or flag null price values rather than treating them as 0 or throwing an exception.
Pagination
The endpoint returns paginated responses with up to 100 items per page. Inspect the pagination metadata at the root of the response object to iterate through all pages.
Pagination settings
| Field | Type | Description |
Count |
Integer | The number of product records returned in the current page response. |
TotalCount |
Integer | The total number of product records matching your query across all pages. |
ItemsPerPage |
Integer | The maximum number of product records returned per page (default: 100). |
Increment the Page query parameter (Page=1, Page=2, and so on) until the total number of retrieved records equals TotalCount.
Testing your integration
Because GET /v2/competitionprices/buyboxprices is read-only, you can safely test it against a live environment without altering your active offers or prices. Run the verification steps below before deploying your integration to production.
-
Retrieve a valid channel ID: call
GET /v2/channelswith yourX-CE-KEYheader. Confirm the response returns HTTP200with"Success": true, and record theChannelIdof an enabled marketplace channel where you have active offers. -
Retrieve unfiltered buy box prices: call
GET /v2/competitionprices/buyboxprices?ChannelId={id}without filter parameters. Verify that HTTP200is returned,Contentcontains product records withSku,Gtin,BuyBoxPrice,BuyBoxPriceInclShipping, andIsMerchantBuyBoxWinner, andCountis less than or equal toItemsPerPage. -
Verify GTIN filtering: pass two known GTINs via
GtinList. Confirm thatContentreturns only those two products. -
Verify SKU filtering and parameter precedence: pass two known SKUs via
SkuListand confirm only those products are returned. Then pass bothGtinListandSkuListpointing to different products in the same request, and confirm the response followsGtinListwhile ignoringSkuList. -
Cross-check against Competitor history and the marketplace: select one product where
IsMerchantBuyBoxWinneristrueand one where it isfalse. Open each product in ChannelEngine under Pricing, Competitor history (select Pull competitor data and wait up to five minutes if the snapshot is stale) and confirm the buy box winner marked with the trophy icon matches the API price and winner flag. Note that on Amazon, different customer segments (such as Prime vs. non-Prime buyers) may display different buy box winners. -
Verify pagination and null handling: run your integration against a channel with more than
ItemsPerPageproducts to verify that allTotalCountrecords are collected across pages, and confirm your code handles products withnullprices without failing.
Pre-launch checklist:
- Channel IDs are retrieved dynamically via
GET /v2/channelsrather than hardcoded. - Requests authenticate using the
X-CE-KEYheader against the correct tenant subdomain. - Pagination loops iterate through all pages until
TotalCountrecords are retrieved. - Null values for
BuyBoxPriceandBuyBoxPriceInclShippingare handled safely. - Repricing logic compares like with like (excluding shipping vs. including shipping) and respects your minimum and maximum price rules.
Common issues
| Symptom | Cause | Solution |
HTTP 401 or 403 response |
The Merchant API key is missing, invalid, or belongs to a different ChannelEngine environment. | Include a valid Merchant API key in the X-CE-KEY header and verify that the request URL matches your tenant subdomain. |
HTTP 400 (Bad Request) |
A query parameter is invalid, such as a non-numeric ChannelId or a GtinList or SkuList containing more than 2,000 items. |
Inspect the Message and ValidationErrors fields in the response body and split filter lists into batches of 2,000 or fewer items. |
HTTP 429 (Too Many Requests) |
Your integration exceeded the endpoint rate limit of 50 calls per 15 minutes. | Read the retry-after and x-rate-limit-remaining response headers, pause requests for the specified duration, and batch GTIN or SKU lookups. |
Empty Content array |
The channel has no active products, or the requested GTINs or SKUs do not exist on the specified channel. | Verify the ChannelId via GET /v2/channels and confirm that the queried GTINs or SKUs are listed on that channel. |
BuyBoxPrice and BuyBoxPriceInclShipping are null
|
No competition price data has been imported yet, or the marketplace has not awarded a buy box for the product. | Skip products with null prices in your integration and verify the product's status under Pricing > Competitor history in ChannelEngine. |
| No buy box data returned for an entire channel | The marketplace does not support repricing, pricing v2 is not activated, or the marketplace does not share competition prices (for example, bol.com). | Check the Pricing step of the channel in ChannelEngine to confirm pricing v2 is active and the marketplace supports competition price imports. |
SkuList filter has no effect |
GtinList was included in the same request, causing ChannelEngine to ignore SkuList. |
Send either GtinList or SkuList in a given request, not both. |
BuyBoxPrice equals BuyBoxPriceInclShipping
|
The marketplace does not expose a separate shipping cost component in its competition price feed (for example, bol.com). | This behavior is expected on channels without separate shipping fields. Compare using the same price basis as your offer. |
| Missing products from a large catalog | Your integration only read the first page of results. | Loop over subsequent Page values until the number of collected items matches TotalCount. |
If the issue persists, contact ChannelEngine Support and include the RequestId or LogId from the API response so the team can trace your request.
Next steps
- Merchant API: how to retrieve the channelId – retrieve numeric channel IDs dynamically for channel-scoped endpoints.
- ChannelEngine: competitor history – inspect per-product competitor price snapshots and buy box winners in the web interface.
- Merchant API: rate limits – review endpoint rate limits and implement dynamic throttling.
- Merchant API: offers – update product offer prices and stock levels after evaluating buy box data.
Comments
0 comments
Article is closed for comments.