Monitoring Your Competition
You can track your offers competition and adjust prices accordingly. Use the /competitions
endpoint, select pid
(Driffle Product ID) and the system will return you the list of offers and their prices for the given product.
GET
/products/{pid}/competitions
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Param
Name
Type
Description
Required
pid
string
Product Id
Yes
Response
{
"message": "Default Response",
"statusCode": 200,
"pid": 123,
"competitions": {
"totalCount": 10,
"offers": [
{
"merchantName": "Merchant A",
"isInStock": true,
"canBePurchased": true,
"belongsToYou": false,
"price": {
"amount": 29.99,
"currency": "USD"
}
}
]
}
}
get
Path parameters
pidstringRequired
Product ID
Header parameters
AuthorizationstringRequired
Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y
Responses
200
Default Response
application/json
400
Bad Request. Wrong/Invalid params format.
application/json
401
UnAuthorized request. Invalid/Expired token
application/json
403
Forbidden Request. Action not allowed or Rate Limit exhausted.
application/json
500
Server Error.
application/json
get
GET /api/seller/legacy/products/{pid}/competitions HTTP/1.1
Host: services.driffle.com
Authorization: text
Accept: */*
{
"message": "text",
"statusCode": 1,
"pid": 1,
"competitions": {
"totalCount": 1,
"offers": [
{
"merchantName": "text",
"isInStock": true,
"canBePurchased": true,
"belongsToYou": true,
"price": {
"amount": 1,
"currency": "text"
}
}
]
}
}
Last updated