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-Type

application/json

Authorization

Bearer <token>

Body

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

Supported arguments

ParamParam TypeTypeRequiredDescription

offerId

body

Number

Yes

ID of the offer

cogs

body

Number

No

Cost of purchasing a single key

keys

body

array<KeyUploadType>, seeKeyUploadType

Yes

Array of keys to be uploaded

KeyUploadType

ParamTypeRequiredDescription

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