Monitoring your competition
"auctions" field in S_API_Product type is deprecated and will be removed in the future.
Use dedicated S_competition
query to monitor competition prices
You can track your auctions competition and adjust prices accordingly.
Use the
S_product
query,
select auctions
and the system will return you the list of auctions and their prices for a given product.
Example
Query
Pass the productId
you want to get the competitors for as an argument. If you need to get a list of all your auctions,
please use the
S_stock
query.
query {
S_product(productId: "116c596c-caf3-11e8-a0c3-e6a20e87d50a") {
id
name
auctions {
edges {
node {
merchantName
isInStock
belongsToYou
price {
amount
currency
}
}
}
}
}
}
Response
The response at path auction.edges
will contain the list auctions for a given product.
You can see the prices set by other merchants. Your auctions can be filtered by belongsToYou: true
or by checking the merchantName
.
{
"data": {
"S_product": {
"id": "116c596c-caf3-11e8-a0c3-e6a20e87d50a",
"name": "FIFA 19 Origin Key GLOBAL",
"auctions": {
"edges": [
{
"node": {
"merchantName": "Merchant A",
"isInStock": true,
"belongsToYou": false,
"price": {
"amount": 1601,
"currency": "EUR"
}
}
},
{
"node": {
"merchantName": "Merchant B",
"isInStock": true,
"belongsToYou": true,
"price": {
"amount": 1915,
"currency": "EUR"
}
}
}
]
}
}
}
}