Skip to Content
MinexonMinexon

market.add-to-cart

Adds a marketplace listing to the player’s cart.

POST/api/v1/{locale}/market/{slug}/cart

API scope market.add-to-cart

Request

Send Authorization: Bearer <key> with each request.

Requires a signed-in player and applicable permission.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.
slugstringRequiredURL slug of the resource.

Query parameters

FieldTypeRequirementDescription
qstringOptionalSearch text.
serverstringOptionalServer key. Defaults to all.
categorystringOptionalCategory key. Defaults to all.
sortstringOptionalnewest, price_asc or price_desc.
scopestringOptionalall, the player’s own mine listings or purchased listings.
pageintegerOptionalPositive 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

FieldTypeRequirementDescription
nextstringRequiredURL of the next player page.
noticesarrayConditionalOperation notice codes, when present.
errorstringConditionalError code.
errorsstring[]ConditionalField 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.

Shared error and authentication contract