Skip to main content

Upload Stock

The following API allow you to upload inventory i.e. keys to a single Offer/Auction.

PUT /offer/upload-keys

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Body

{
"offerId": 0,
"cogs": 0,
"keys": [
{
"key": "string",
"name": "string",
"type": "text"
}
]
}

Supported arguments​

ParamParam TypeTypeRequiredDescription
offerIdbodyNumberYesID of the offer
cogsbodyNumberNoCost of purchasing a single key
keysbodyarray<KeyUploadType>, seeKeyUploadTypeYesArray of keys to be uploaded

KeyUploadType​

ParamTypeRequiredDescription
keystringYesKey in plain text or In case of image keys, Send a base64 encoded string. For more info Read RFC 2397.
namestringYes, in case of image keyName of key
typestringYesKey format. supported vlaues: text, image

Response

{
"message": "string",
"statusCode": 0
}

Last updated 15 March 2024