Skip to Content
MinexonMinexon

wallet.quote

Creates a top-up quote in the session.

POST/api/v1/{locale}/wallet/top-up/quote

API scope wallet.quote

Request

Send Authorization: Bearer <key> with each request.

Preserve the same session cookie across the steps in this flow.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.

Request body

FieldTypeRequirementDescription
packagestringRequiredPackage ID or custom for a custom amount.
amountstringOptionalCustom package amount in the display currency.
amount_termsstringOptionalThe amountTerms value from options for custom amounts.
paymentstringRequiredPayment method identifier.
payment_termsobjectOptionalMap from method ID to its pricing.token from paymentMethods. Supply it when the method has a token.
promo_codestringOptionalWallet top-up promotion code.

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 '{
  "package": "custom",
  "amount": "100.00",
  "payment": "<payment>"
}' \
  "${MINEXON_BASE_URL}/api/v1/en/wallet/top-up/quote"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
nextstringRequiredURL of the next player page or provider.
noticesstring[]ConditionalSuccess and state codes.
errorstringConditionalError code.
errorsstring[]ConditionalField 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
FieldTypeRequirementDescription
localestringRequiredResponse locale.
errorstring or nullConditionalAction error. Can be empty on success.
errorsarray or objectConditionalField or form validation errors.
noticestring or nullConditionalAction notice.
currencyJSON valueConditionalValue determined by screen and configuration.
accountWalletobject or nullConditionalCurrent account wallet.
packagesJSON valueConditionalValue determined by screen and configuration.
selectedJSON valueConditionalCategory or filter selected on this screen.
amountJSON valueConditionalValue determined by screen and configuration.
paymentMethodsobject or arrayConditionalActive methods keyed by provider and method ID.
paymentDisplayJSON valueConditionalValue determined by screen and configuration.
amountTermsstringConditionalCurrent currency terms token for custom amounts.
paymentJSON valueConditionalValue determined by screen and configuration.
checkoutAgreementJSON valueConditionalValue determined by screen and configuration.
agreementAcceptedbooleanConditionalAcceptance state for the current agreement.
promoAppliedstring or nullConditionalWallet promotion applied to the session.
promoInputJSON valueConditionalValue determined by screen and configuration.
promoFocusJSON valueConditionalValue determined by screen and configuration.
promoPercentJSON valueConditionalValue determined by screen and configuration.
promoFixedJSON valueConditionalValue determined by screen and configuration.
promoMinimumJSON valueConditionalValue determined by screen and configuration.
bonusRulesJSON valueConditionalValue determined by screen and configuration.
quoteJSON valueConditionalValue determined by screen and configuration.
displayMinimumJSON valueConditionalValue determined by screen and configuration.
displayMaximumJSON valueConditionalValue determined by screen and configuration.
minimumJSON valueConditionalValue determined by screen and configuration.
maximumJSON valueConditionalValue determined by screen and configuration.
paymentMethods[].idintegerConditionalField from this record, when available.
paymentMethods[].namestring or nullConditionalField from this record, when available.
paymentMethods[].providerstring or nullConditionalField from this record, when available.
paymentMethods[].availablebooleanConditionalWhether the method is available for this operation and amount.
paymentMethods[].minimuminteger or stringConditionalField from this record, when available.
paymentMethods[].maximuminteger or string or nullConditionalField from this record, when available.
paymentMethods[].cashbacknumber or stringConditionalField from this record, when available.
paymentMethods[].pricingobjectConditionalField from this record, when available.
paymentMethods[].customerDetailsobject or nullConditionalName, phone and other details requested by the provider.
paymentMethods[].settlement_currencystring or nullConditionalSettlement currency sent to the provider.

Flow and error cases

Validation errors return HTTP 422 with a top-up view containing data.error.

On success, read data.quote using wallet.options. A supplied promotion code must already be applied.

Shared error and authentication contract