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 |
|
Authorization |
|
Body
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 |
keys | body | array<KeyUploadType>, seeKeyUploadType | Yes | Array of keys to be uploaded |
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: |
Response
Last updated