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
  3. Offers (Auction)

Update Offer

The following API allow you to update an offer/auction on Driffle.

Rate Limiting applies to this API endpoint and is set to 1 request per 3 seconds.

PATCH /offer/update

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

  {
    "offerId": 0,
    "yourPrice": 0,
    "retailPrice": 0,
    "toggleOffer": "disable",
    "declaredStock": 100000
  }
Param
Description
Param Type
Type
Required

offerId

ID of the Offer

body

number

Yes

yourPrice

"You get" price. commission will be applied to this price.

body

number

No

retailPrice

"Retail Price" is the price after commission. Buyers will see this price

body

number

No

toggleOffer

"enable" or "disable" offer

body

string

No

declaredStock

Number of keys to sell through declared stock feature - optional

body

string

No

Response

{
  "message": "string",
  "statusCode": 200,
  "data": "string"
}
{
    "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
}
PreviousCreate a new offerNextBulk Update Offers

Last updated 11 months ago

patch
Header parameters
AuthorizationstringRequired

Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y

Body
offerIdnumberRequired
yourPricenumberOptional

Your price. Commission is calculated on this price.

retailPricenumberOptional

Retail Price is the price after commission. Buyers will see this price.

toggleOfferstring · enumOptional

This field expects either enable or disable keywords to update offer toggle.

Possible values:
declaredStocknumber · max: 100000Optional
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
patch
PATCH /api/seller/legacy/offer/update HTTP/1.1
Host: services.driffle.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 85

{
  "offerId": 1,
  "yourPrice": 1,
  "retailPrice": 1,
  "toggleOffer": "disable",
  "declaredStock": 1
}
{
  "message": "text",
  "statusCode": 1,
  "data": null
}