Upload Stock
The following API allow you to upload inventory i.e. keys to a single Offer/Auction.
PUT
/offer/upload-keys
Headers
Name
Value
Content-Type
application/json
Authorization
Bearer <token>
Body
{
"offerId": 0,
"cogs": 0,
"keys": [
{
"key": "string",
"name": "string",
"type": "text"
}
]
}
Supported arguments
Param
Param Type
Type
Required
Description
offerId
body
Number
Yes
ID of the offer
cogs
body
Number
No
Cost of purchasing a single key
KeyUploadType
Param
Type
Required
Description
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 vlaues: text
, image
Response
{
"message": "string",
"statusCode": 0
}
Last updated