🎒Inventory

Get inventory item

GET /v3/inventory

Headers

NameValue

X-Api-Key*

API Key

Authorization*

Bearer <token>

Response

{
    "status": "success",
    "messages": "Inventory retrieved from database",
    "data": [
        {
            "inventory_id": "01J69MZN65585AWEHCMG175EPW",
            "game_internal_id": "life_30_minutes",
            "komo_item_name": "Life 30 Minutes"
        },
        {
            "inventory_id": "01J69MZN65585AWEHCMG175EPY",
            "game_internal_id": "life_30_minutes",
            "komo_item_name": "Life 30 Minutes"
        },
        {
            "inventory_id": "01J69MZN65585AWEHCMG175EPZ",
            "game_internal_id": "life_30_minutes",
            "komo_item_name": "Life 30 Minutes"
        },
        {
            "inventory_id": "01J69MZN65585AWEHCMG175EQ0",
            "game_internal_id": "life_30_minutes",
            "komo_item_name": "Life 30 Minutes"
        }
    ]
}

Remove item from inventory

POST /v3/inventory/remove

Headers

NameValue

X-Api-Key*

API Key

Authorization*

Bearer <token>

Body

NameTypeDescription

inventory_id*

string

Inventory ID

Response

{
    "status": "success",
    "messages": "Inventory removed"
}

Inject mystery box ticket

POST /v3/inventory/inject/mystery-box-ticket

Headers

NameValue

X-API-Key*

API Key

Authorization*

Bearer <token>

Body

NameTypeDescription

qty*

string

amount of ticket injected

Response

{
    "status": "success",
    "messages": "Mystery box ticket added"
}

Inject in-game items

POST /v3/inventory/inject/in-game-item

Before injecting to inventory, make sure the item is available on database alphagames game_items table

Headers

NameValue

X-Api-Key*

API Key

Authorization*

Bearer <token>

Body

NameTypeDescription

item_list*

string

Stringified json of game_internal_id and qty. Example below

Example Payload

{
    "item_list": "[{\"game_internal_id\":\"life_30_minutes\",\"qty\":2},{\"game_internal_id\":\"other_internal_id\",\"qty\":3}]"
}

Response

{
    "status": "success",
    "messages": "Item injected successfully"
}

Inject alfa voucher (from reward pool)

POST /v3/inventory/inject/voucher

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <token>

Body

NameTypeDescription

name

string

Name of the user

age

number

Age of the user

Response

{
    "status": "success",
    "messages": "All voucher injected successfully"
}

Last updated