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
Header parameters
AuthorizationstringRequired

Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y

Body
hashstringOptional
typestring · enumOptionalPossible values:
Responses
200

Default Response

application/json
put
/key/toggle

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

Response

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

delete
Query parameters
hashstringOptional
Header parameters
AuthorizationstringRequired

Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y

Responses
200

Default Response

application/json
delete
/key

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

Param
Param Type
Type
Required
Description

hashes

body

array<string>

Yes

array of hashes of the keys to be deleted

Response

post
Header parameters
AuthorizationstringRequired

Authorization token in Bearer format. Example: Bearer dvakycjgw8liyd278y

Body
hashesstring[]Optional
Responses
200

Default Response

application/json
post
/seller/offer/delete-key-bulk
200

Default Response

Last updated