Create a new offer
Last updated
Last updated
The following API allow you to create a new offer/auction on Driffle.
POST
/offer
Headers
Name | Value |
---|---|
Response
Param | Param Type | Type | Required | Description |
---|---|---|---|---|
Either keys or declaredStock number should be provided in the request.
Either yourPrice or retailPrice should be provided in the request.
Param | Param Type | Type | Required | Description |
---|---|---|---|---|
Declared stock is not available for pre-order products.
Param | Param Type | Type | Required | Description |
---|---|---|---|---|
Param | Type | Required | Description |
---|---|---|---|
Content-Type
application/json
Authorization
Bearer <token>
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.
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
array<KeyUploadType>, see KeyUploadType
No
List of Keys to be uploaded - optional
declaredStock
body
Number
No
Number of keys to sell through declared stock feature - optional
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
array<KeyUploadType>, see KeyUploadType
No
List of Keys to be uploaded - optional
auctionedKeys
body
Number
Yes
Number of pre-orders to sell
key
string
Yes
Key in plain text or In case of image keys, Send a base64 encoded string. For more info Read RFC 2397.
name
string
Yes, in case of image key
Name of key
type
string
Yes
Key format. supported values: text
, image
Default Response