Inventory Actions
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
Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y
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
}
PUT
/key/toggle
Headers
Content-Type
application/json
Authorization
Bearer <token>
Supported Arguments
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
}
Delete Key
The following API removes a key from the inventory.
DELETE
/key
Headers
Content-Type
application/json
Authorization
Bearer <token>
Supported arguments
hash
query
string
Yes
hash of the key
Response
{
"message": "string",
"statusCode": 200
}
Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y
DELETE /api/seller/legacy/key HTTP/1.1
Host: services.driffle.com
Authorization: text
Accept: */*
{
"message": "text",
"statusCode": 1
}
Bulk Delete Keys
The following API request allow you to delete keys from inventory in bulk.
POST
/seller/offer/delete-key-bulk
Headers
Content-Type
application/json
Authorization
Bearer <token>
Body
{
"hashes": [
"string"
]
}
hashes
body
array<string>
Yes
array of hashes of the keys to be deleted
Response
{
"message": "string",
"statusCode": 0
}
Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y
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"
]
}
Default Response
{
"message": "text",
"statusCode": 1
}
Last updated