wallet.promo-remove
Removes the applied top-up promotion.
POST
/api/v1/{locale}/wallet/top-up/promo/removeAPI scope wallet.promo-remove
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 |
|---|---|---|---|
package | string | Optional | Package ID or custom for a custom amount. |
amount | string | Optional | Custom package amount in the display currency. |
payment | string | Optional | Payment method identifier. |
agreement | string | Optional | Send checkoutAgreement.token when an agreement is enabled. |
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 '{}' \
"${MINEXON_BASE_URL}/api/v1/en/wallet/top-up/promo/remove"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Required | URL of the next player page or provider. |
notices | string[] | Conditional | Success and state codes. |
error | string | Conditional | Error code. |
errors | string[] | Conditional | Field or operation error codes. |
{
"next": "/en/top-up"
}When the form is shown again, the response can contain data instead of next. Check the HTTP status and the error fields together.
Form response fields
| 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. |
currency | JSON value | Conditional | Value determined by screen and configuration. |
accountWallet | object or null | Conditional | Current account wallet. |
packages | JSON value | Conditional | Value determined by screen and configuration. |
selected | JSON value | Conditional | Category or filter selected on this screen. |
amount | JSON value | Conditional | Value determined by screen and configuration. |
paymentMethods | object or array | Conditional | Active methods keyed by provider and method ID. |
paymentDisplay | JSON value | Conditional | Value determined by screen and configuration. |
amountTerms | string | Conditional | Current currency terms token for custom amounts. |
payment | JSON value | Conditional | Value determined by screen and configuration. |
checkoutAgreement | JSON value | Conditional | Value determined by screen and configuration. |
agreementAccepted | boolean | Conditional | Acceptance state for the current agreement. |
promoApplied | string or null | Conditional | Wallet promotion applied to the session. |
promoInput | JSON value | Conditional | Value determined by screen and configuration. |
promoFocus | JSON value | Conditional | Value determined by screen and configuration. |
promoPercent | JSON value | Conditional | Value determined by screen and configuration. |
promoFixed | JSON value | Conditional | Value determined by screen and configuration. |
promoMinimum | JSON value | Conditional | Value determined by screen and configuration. |
bonusRules | JSON value | Conditional | Value determined by screen and configuration. |
quote | JSON value | Conditional | Value determined by screen and configuration. |
displayMinimum | JSON value | Conditional | Value determined by screen and configuration. |
displayMaximum | JSON value | Conditional | Value determined by screen and configuration. |
minimum | JSON value | Conditional | Value determined by screen and configuration. |
maximum | JSON value | Conditional | Value determined by screen and configuration. |
paymentMethods[].id | integer | Conditional | Field from this record, when available. |
paymentMethods[].name | string or null | Conditional | Field from this record, when available. |
paymentMethods[].provider | string or null | Conditional | Field from this record, when available. |
paymentMethods[].available | boolean | Conditional | Whether the method is available for this operation and amount. |
paymentMethods[].minimum | integer or string | Conditional | Field from this record, when available. |
paymentMethods[].maximum | integer or string or null | Conditional | Field from this record, when available. |
paymentMethods[].cashback | number or string | Conditional | Field from this record, when available. |
paymentMethods[].pricing | object | Conditional | Field from this record, when available. |
paymentMethods[].customerDetails | object or null | Conditional | Name, phone and other details requested by the provider. |
paymentMethods[].settlement_currency | string or null | Conditional | Settlement currency sent to the provider. |
Flow and error cases
Validation errors return HTTP 422 with a top-up view containing data.error.