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

Inventory Actions

PreviousUpload StockNextFetch a single Key

Last updated 1 year ago

The following APIs allows following actions on a single key:

  • Mark Key as active

  • Mark key as inactive

  • delete a key

Toggle Keys (Active/Inactive)

The following API allows to mark a single key as active or inactive

Supported arguments

PUT /key/toggle

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Supported Arguments

Param
Param Type
Type
Required
Description

offerId

body

number

Yes

ID of the Offer

type

body

string

Yes

action type: disable, enable

Body

{
  "hash": "string",
  "type": "disable"
}

Response

{
  "message": "string",
  "statusCode": 200
}
{
    "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
}

Delete Key

The following API removes a key from the inventory.

DELETE /key

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Supported arguments

Param
Param Type
Type
Required
Description

hash

query

string

Yes

hash of the key

Response

{
  "message": "string",
  "statusCode": 200
}
{
    "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
}

Bulk Delete Keys

The following API request allow you to delete keys from inventory in bulk.

POST /seller/offer/delete-key-bulk

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

{
  "hashes": [
    "string"
  ]
}
Param
Param Type
Type
Required
Description

hashes

body

array<string>

Yes

array of hashes of the keys to be deleted

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
}
delete
Query parameters
hashstringOptional
Header parameters
AuthorizationstringRequired

Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y

Responses
200
Default Response
application/json
400
Bad Request. Wrong/Invalid params format.
application/json
401
UnAuthorized request. Invalid/Expired token
application/json
403
Forbidden Request. Action not allowed or Rate Limit exhausted.
application/json
500
Server Error.
application/json
delete
DELETE /api/seller/legacy/key HTTP/1.1
Host: services.driffle.com
Authorization: text
Accept: */*
{
  "message": "text",
  "statusCode": 1
}
  • Toggle Keys (Active/Inactive)
  • PUT/key/toggle
  • Delete Key
  • DELETE/key
  • Bulk Delete Keys
  • POST/seller/offer/delete-key-bulk
put
Header parameters
AuthorizationstringRequired

Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y

Body
hashstringOptional
typestring ยท enumOptionalPossible values:
Responses
200
Default Response
application/json
400
Bad Request. Wrong/Invalid params format.
application/json
401
UnAuthorized request. Invalid/Expired token
application/json
403
Forbidden Request. Action not allowed or Rate Limit exhausted.
application/json
500
Server Error.
application/json
put
PUT /api/seller/legacy/key/toggle HTTP/1.1
Host: services.driffle.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 32

{
  "hash": "text",
  "type": "disable"
}
{
  "message": "text",
  "statusCode": 1
}
post
Header parameters
AuthorizationstringRequired

Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y

Body
hashesstring[]Optional
Responses
200
Default Response
application/json
post
POST /api/seller/legacy/seller/offer/delete-key-bulk HTTP/1.1
Host: services.driffle.com
Authorization: text
Content-Type: application/json
Accept: */*
Content-Length: 19

{
  "hashes": [
    "text"
  ]
}
200

Default Response

{
  "message": "text",
  "statusCode": 1
}