market.listing
Returns a marketplace listing visible to the player.
GET
/api/v1/{locale}/market/{slug}API scope market.listing
Request
Send Authorization: Bearer <key> with each request.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
slug | string | Required | URL slug of the resource. |
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" \
"${MINEXON_BASE_URL}/api/v1/en/market/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. |
slug | string | Conditional | Record slug. |
listing | object | Required | Localized listing, ownership and delivery information. |
siteCurrency | string | Required | Site currency code. |
siteWallet | object | null | Required | Player’s site wallet. |
Nested fields
| Field | Type | Requirement | Description |
|---|---|---|---|
listing.id | integer | Required | Listing ID. |
listing.price | integer | Required | Listing price in minor units of the site currency. |
listing.revision | integer | Required | Listing revision. |
listing.mine | boolean | Required | Whether the current player owns the listing. |
Selected fields from an example response
{
"data": {
"locale": "en",
"listing": {},
"siteWallet": {}
}
}