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
}{
"message": "Bad Request. Wrong/Invalid params format.",
"statusCode": 400
}{
"message": "UnAuthorized request. Invalid/Expired token",
"statusCode": 401
}{
"message": "Forbidden Request. Action not allowed or Rate Limit exhausted.",
"statusCode": 403
}{
"message": "Internal Server Error",
"statusCode": 500
}Last updated