market.add-to-cart
Adds a marketplace listing to the player’s cart.
POST
/api/v1/{locale}/market/{slug}/cartAPI scope market.add-to-cart
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 |
|---|---|---|---|
q | string | Optional | Search text. |
server | string | Optional | Server key. Defaults to all. |
category | string | Optional | Category key. Defaults to all. |
sort | string | Optional | newest, price_asc or price_desc. |
scope | string | Optional | all, the player’s own mine listings or purchased listings. |
page | integer | Optional | Positive page number. |
This endpoint takes no request body.
Run samples from your application server. See Quickstart for variables and sessions.
curl --fail-with-body --request POST \
-H "Authorization: Bearer $MINEXON_API_KEY" \
-b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
"${MINEXON_BASE_URL}/api/v1/en/market/example/cart?q=example&page=1"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Required | URL of the next player page. |
notices | array | Conditional | Operation notice codes, when present. |
error | string | Conditional | Error code. |
errors | string[] | Conditional | Field or operation error codes. |
{
"next": "<next URL returned by CMS>"
}Flow and error cases
On success, next points to the cart. On failure, it can point to the listing or marketplace.