Skip to main content

Competition

Gets the information about products' available Offers.

Supported Arguments ( For single Product )​

The following arguments are supported by competitions API:

GET /products/{pid}/competitions
Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>
ParamParam typeTypeRequiredDescription
pidpath paramNumberYesDriffle Product ID
NameTypeDescription
namestringName of the user
agenumberAge of the user

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"
}
}
],
"wholesaleOffers": [
{
"merchantName": "Merchant A",
"isInStock": true,
"canBePurchased": true,
"belongsToYou": false,
"price": {
"amount": 29.99,
"currency": "USD"
},
"levelRange": "10 to 99 Keys"
},
{
"merchantName": "Merchant A",
"isInStock": true,
"canBePurchased": true,
"belongsToYou": false,
"price": {
"amount": 29.99,
"currency": "USD"
},
"levelRange": "100+ Keys"
}
]
}
}

Supported Arguments ( For All Products with pagination )​

The following arguments are supported by competitions API:

GET /products/competitions
Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>
ParamParam typeTypeRequiredDescription
productIdspath paramStringNoDriffle Product ID (must be comma seprated e.g: productIds=34547,299)
onlyMappedProductspath paramBooleanNosupported values true or false
pagepath paramNumberNoage number. Use this to traverse through your list of keys. Default value: 1
limitpath paramNumberNoSpecifies the number of items to fetch per page; valid values range from 100 to 1000.

Response

{
"statusCode": 200,
"message": "success",
"data": [
{
"pid": 1075,
"competitions": {
"totalCount": 1,
"offers": [
{
"merchantName": "Merchant A",
"isInStock": true,
"canBePurchased": true,
"belongsToYou": false,
"price": {
"amount": 3.57,
"currency": "EUR"
}
}
],
"wholesaleOffers": [
{
"merchantName": "Merchant A",
"isInStock": true,
"canBePurchased": true,
"belongsToYou": false,
"price": {
"amount": 2.3,
"currency": "EUR"
},
"levelRange": "10 to 99 Keys"
},
{
"merchantName": "Merchant A",
"isInStock": true,
"canBePurchased": true,
"belongsToYou": false,
"price": {
"amount": 2.29,
"currency": "EUR"
},
"levelRange": "100+ Keys"
}
],
"wholesaleTotalCount": 1
}
}
],
"pagination": {
"page": 1,
"currentPage": 1,
"limit": 50,
"totalCount": 1,
"totalPages": 1
}
}

Last updated 10 November 2026