Driffle Seller API
  • Driffle Seller API
  • Guide
    • Getting Started
    • Monitoring Your Competition
  • FAQ
    • Cannot use the API, it throws 401/403/404 errors
  • Reference
    • Automate Your Stock with "Declare Stock"
    • API Reference
      • Products
        • Get Products List
        • Get Single product
        • Get Product Commission
      • Competition
      • Offers (Auction)
        • Offers List
        • Get Single Offer
        • Update Offer Price
        • Enable/Disable Offers
        • Create a new offer
        • Update Offer
        • Bulk Update Offers
      • Manage Inventory/Stock
        • Declare Stock
        • Upload Stock
        • Inventory Actions
        • Fetch a single Key
      • Transactions
        • Get Transactions List
        • Get a Single Transaction
      • Dashboard Stats
      • Regions
      • Platforms
Powered by GitBook
On this page
  1. Reference
  2. API Reference

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

PreviousGet Product CommissionNextOffers (Auction)

Last updated 1 year ago