inventory.item
Returns an inventory item and its operation key.
GET
/api/v1/{locale}/inventory/{slug}API scope inventory.item
Request
Send Authorization: Bearer <key> with each request.
Requires a signed-in player and applicable permission.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
slug | string | Required | URL slug of the resource. |
Query parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
status | string | Optional | all, available, queued, delivered or review. |
This endpoint takes no request body.
Run samples from your application server. See Quickstart for variables and sessions.
curl --fail-with-body --request GET \
-H "Authorization: Bearer $MINEXON_API_KEY" \
-b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
"${MINEXON_BASE_URL}/api/v1/en/inventory/example"Response
HTTP 200 · application/json
The fields below are inside the response’s data object.
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | string | Required | Response locale. |
error | string or null | Conditional | Action error. Can be empty on success. |
errors | array or object | Conditional | Field or form validation errors. |
notice | string or null | Conditional | Action notice. |
item | object | Required | Inventory item and use history. |
selected | JSON value | Conditional | Category or filter selected on this screen. |
slug | string | Conditional | Record slug. |
canGift | boolean | Required | Whether gifting is enabled. |
operation | JSON value | Conditional | Value determined by screen and configuration. |
operationKey | string | Required | Operation key for the next use or gift request. |
Nested fields
| Field | Type | Requirement | Description |
|---|---|---|---|
item.quantity | integer | Required | Quantity available. |
item.canUse | boolean | Required | Whether the item can be delivered to a game server. |
item.revision | integer | Required | Item revision to include in an operation request. |
Selected fields from an example response
{
"data": {
"locale": "en",
"item": {},
"canGift": true
}
}