Driffle Seller API
  • Driffle Seller API
  • Guide
    • Getting Started
    • Monitoring Your Competition
  • FAQ
    • Cannot use the API, it throws 401/403/404 errors
  • Reference
    • Automate Your Stock with "Declare Stock"
    • API Reference
      • Products
        • Get Products List
        • Get Single product
        • Get Product Commission
      • Competition
      • Offers (Auction)
        • Offers List
        • Get Single Offer
        • Update Offer Price
        • Enable/Disable Offers
        • Create a new offer
        • Update Offer
        • Bulk Update Offers
      • Manage Inventory/Stock
        • Declare Stock
        • Upload Stock
        • Inventory Actions
        • Fetch a single Key
      • Transactions
        • Get Transactions List
        • Get a Single Transaction
      • Dashboard Stats
      • Regions
      • Platforms
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. Manage Inventory/Stock

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

keys

body

Yes

Array of keys to be uploaded

KeyUploadType

Param
Type
Required
Description

key

string

Yes

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
}
PreviousDeclare StockNextInventory Actions

Last updated 1 year ago

array<KeyUploadType>, see

Key in plain text or In case of image keys, Send a base64 encoded string. For more info Read .

KeyUploadType
RFC 2397