Skip to main content

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​

PUT https://services.driffle.com/api/seller/legacy/key/toggle

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesAuthorization token in Bearer <token> format. Example: Bearer dvakycjgw8liyd278y

Request body (application/json)

FieldTypeRequiredDescription
hashstringNo
typestringNoAllowed: disable, enable

Responses (application/json)

Default Response

FieldTypeRequiredDescription
messagestringNo
statusCodenumberNo

Sample request

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"
}

Test it →

Sample response (200)

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

PUT /key/toggle

Headers

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Supported Arguments

ParamParam TypeTypeRequiredDescription
offerIdbodynumberYesID of the Offer
typebodystringYesaction 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

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Supported arguments​

ParamParam TypeTypeRequiredDescription
hashquerystringYeshash of the key

Response

{
"message": "string",
"statusCode": 200
}

DELETE https://services.driffle.com/api/seller/legacy/key

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesAuthorization token in Bearer <token> format. Example: Bearer dvakycjgw8liyd278y
hashquerystringNo

Responses (application/json)

Default Response

FieldTypeRequiredDescription
messagestringNo
statusCodenumberNo

Sample request

DELETE /api/seller/legacy/key HTTP/1.1
Host: services.driffle.com
Authorization: text
Accept: */*

Test it →

Sample response (200)

{
"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

NameValue
Content-Typeapplication/json
AuthorizationBearer <token>

Body

{
"hashes": [
"string"
]
}
ParamParam TypeTypeRequiredDescription
hashesbodyarray<string>Yesarray of hashes of the keys to be deleted

Response

{
"message": "string",
"statusCode": 0
}

POST https://services.driffle.com/api/seller/legacy/seller/offer/delete-key-bulk

Parameters

NameInTypeRequiredDescription
AuthorizationheaderstringYesAuthorization token in Bearer <token> format. Example: Bearer dvakycjgw8liyd278y

Request body (application/json)

FieldTypeRequiredDescription
hashesarray of stringNo

Responses (application/json)

Default Response

FieldTypeRequiredDescription
messagestringNo
statusCodenumberNo

Sample request

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"
]
}

Test it →

Sample response (200)

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

Last updated 17 May 2024