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
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
| Param | Param type | Type | Required | Description |
|---|---|---|---|---|
| pid | path param | Number | Yes | Driffle Product ID |
| Name | Type | Description |
|---|---|---|
name | string | Name of the user |
age | number | Age of the user |
Response
- 200
- 400
- 401
- 403
- 500
{
"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"
}
]
}
}
{
"message": "Bad Request. Wrong/Invalid params format.",
"statusCode": 400
}
{
"message": "UnAuthorized request. Invalid/Expired token",
"statusCode": 401
}
{
"message": "Forbidden Request. Action not allowed or Rate Limit exhausted.",
"statusCode": 403
}
{
"message": "Internal Server Error",
"statusCode": 500
}
Supported Arguments ( For All Products with pagination )
The following arguments are supported by competitions API:
GET /products/competitions
Headers
| Name | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <token> |
| Param | Param type | Type | Required | Description |
|---|---|---|---|---|
| productIds | path param | String | No | Driffle Product ID (must be comma seprated e.g: productIds=34547,299) |
| onlyMappedProducts | path param | Boolean | No | supported values true or false |
| page | path param | Number | No | age number. Use this to traverse through your list of keys. Default value: 1 |
| limit | path param | Number | No | Specifies the number of items to fetch per page; valid values range from 100 to 1000. |
Response
- 200
- 400
- 401
- 403
- 500
{
"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
}
}
{
"message": "Bad Request. Wrong/Invalid params format.",
"statusCode": 400
}
{
"message": "UnAuthorized request. Invalid/Expired token",
"statusCode": 401
}
{
"message": "Forbidden Request. Action not allowed or Rate Limit exhausted.",
"statusCode": 403
}
{
"message": "Internal Server Error",
"statusCode": 500
}
Last updated 10 November 2026