Create a new offer
The following API allow you to create a new offer/auction on Driffle.
POST
/offer
Headers
Content-Type
application/json
Authorization
Bearer <token>
Response
Required arguments
product
body
{ productId: number }
Yes
ProductId for which offer needs to be created
yourPrice
body
Number
No (Either yourPrice or retailPrice is required)
Selling price. Commission will be applied to this price.
retailPrice
body
Number
No (Either yourPrice or retailPrice is required)
Retail Price or Buy Box Price. Commission is subtracted from this price.
Optional arguments
Case - Declared Stock
Either keys or declaredStock number should be provided in the request.
Either yourPrice or retailPrice should be provided in the request.
product
body
{ productId: number }
Yes
ProductId for which offer needs to be created
yourPrice
body
Number
No (Either yourPrice or retailPrice is required)
Selling price. Commission will be applied to this price.
retailPrice
body
Number
No (Either yourPrice or retailPrice is required)
Retail Price or Buy Box Price. Commission is subtracted from this price.
cogs
body
Number
No
Cost of purchasing a single key
keys
body
No
List of Keys to be uploaded - optional
declaredStock
body
Number
No
Number of keys to sell through declared stock feature - optional
Case - Pre-Order Product
Declared stock is not available for pre-order products.
product
body
{ productId: number }
Yes
ProductId for which offer needs to be created
yourPrice
body
Number
No (Either yourPrice or retailPrice is required)
Selling price. Commission will be applied to this price.
retailPrice
body
Number
No (Either yourPrice or retailPrice is required)
Retail Price or Buy Box Price. Commission is subtracted from this price.
cogs
body
Number
No
Cost of purchasing a single key
keys
body
No
List of Keys to be uploaded - optional
auctionedKeys
body
Number
Yes
Number of pre-orders to sell
KeyUploadType
key
string
Yes
name
string
Yes, in case of image key
Name of key
type
string
Yes
Key format. supported values: text
, image
Last updated