Skip to Content
MinexonMinexon

wallet.confirm

Confirms the session’s top-up quote and starts payment.

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

API scope wallet.confirm

Request

Send Authorization: Bearer <key> with each request.

Requires a signed-in player and applicable permission.

Path parameters

FieldTypeRequirementDescription
localetr or enRequiredRequest locale.

Request body

FieldTypeRequirementDescription
quotestringRequiredThe current top-up quote’s id.
agreementstringOptionalSend checkoutAgreement.token when an agreement is enabled.
payment_customerobjectOptionalCustomer information when required by the provider. Use the method’s customerDetails field.
payment_customer.first_namestringOptionalGiven name.
payment_customer.last_namestringOptionalFamily name.
payment_customer.phonestringOptionalTelephone number.
payment_customer.addressstringOptionalBilling address when required.
payment_customer.citystringOptionalBilling city when required.
payment_customer.countrystringOptionalTwo-letter country code when required.
payment_customer.postal_codestringOptionalPostal code when required.
payment_customer.identity_numberstringOptionalIdentification number for iyzico.

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 '{
  "quote": "<quote from current session>"
}' \
  "${MINEXON_BASE_URL}/api/v1/en/wallet/top-up/confirm"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
nextstringConditionalURL of the next player page or provider.
noticesstring[]ConditionalSuccess and state codes.
errorstringConditionalError code.
errorsstring[]ConditionalField or operation error codes.
data.typestringConditionalThe constant hosted_payment_form.
data.methodstringConditionalThe constant POST.
data.actionstringConditionalProvider form submission URL.
data.fieldsobjectConditionalProvider-specific fields to send with the form.
dataobjectConditionalForm data when the provider returns a hosted form.

Redirects and forms start checkout. Verify settlement from the order or wallet record.

{
  "next": "https://checkout.example.com/"
}

When the provider uses a form

{
  "data": {
    "type": "hosted_payment_form",
    "method": "POST",
    "action": "https://checkout.example.com/",
    "fields": {
      "reference": "<provider-generated reference>"
    }
  }
}

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

A hosted provider form returns data. Outcomes that require navigation return next.

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

Shared error and authentication contract