account.preferences
Save the player's language or currency preference.
POST
/api/v1/{locale}/account/preferencesAPI scope account.preferences
Request
Send Authorization: Bearer <key> with each request.
Preserve the same session cookie across the steps in this flow.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
Request body
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr | en | Optional | An interface language available to this player. |
currency | string | Optional | An enabled display currency. |
return_route | string | Optional | Optional return context for a supported site page. |
return_slug | string | Optional | Optional return context for a supported site page. |
return_screen | string | Optional | Optional return context for a supported site page. |
return_profile_history | string | Optional | Optional return context for a supported site page. |
return_category | string | Optional | Optional return context for a supported site page. |
return_ticket | integer | Optional | Optional return context for a supported site page. |
return_status | string | Optional | Optional return context for a supported site page. |
return_priority | string | Optional | Optional return context for a supported site page. |
return_query | string | Optional | Optional return context for a supported site page. |
return_page | integer | Optional | Optional return context for a supported site page. |
return_board | string | Optional | Optional return context for a supported site page. |
return_listing | string | Optional | Optional return context for a supported site page. |
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" \
-H 'Content-Type: application/json' \
--data '{
"locale": "<locale>"
}' \
"${MINEXON_BASE_URL}/api/v1/en/account/preferences"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Required | Next location returned by the CMS or provider. |
notices | string[] | Conditional | Success and state codes. |
error | string | Conditional | Error code. |
errors | string[] | Conditional | Field or operation error codes. |
{
"next": "<next URL returned by CMS>"
}Flow and error cases
Send exactly one of locale or currency per call. Sending both returns HTTP 400.