Competition

Gets the information about products' available Offers.

Supported Arguments

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

{
  "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"
        }
      }
    ]
  }
}

Last updated