Bulk Update Offers

The following API allow you to update multiple offers/auctions at once on Driffle.

Maximum of 100 offers can be updated in a single API call.

PATCH /offer/bulk-update

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

{
  "offers": [
    {
      "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": {
    "successOffers": [
      {
        "offerId": 0,
        "status": true,
        "message": "string",
        "data": "string"
      }
    ],
    "failedOffers": [
      {
        "offerId": 0,
        "status": true,
        "message": "string",
        "data": "string"
      }
    ]
  }
}

Last updated