Skip to Content
MinexonMinexon

cart.checkout

Reprices the cart and starts payment directly when validation succeeds.

POST/api/v1/{locale}/cart/checkout

API scope cart.checkout

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
quotestringRequiredCart quote verification value.
use_creditbooleanOptionalApplies available balance when eligible.
paymentstringOptionalPayment method identifier.
payment_termsobjectOptionalMap from method ID to its pricing.token from paymentMethods. Supply it when the method has a token.
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/cart/checkout"

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.
cartCountintegerConditionalNumber of cart items.
quantitiesJSON valueConditionalValue determined by screen and configuration.
communityGoalobject or nullConditionalConfigured community goal.
categoryPathstring or nullConditionalStore category path.
linesJSON valueConditionalValue determined by screen and configuration.
marketLinesJSON valueConditionalValue determined by screen and configuration.
marketTotalJSON valueConditionalValue determined by screen and configuration.
marketBlockedbooleanConditionalWhether a market line blocks checkout.
stockBlockedbooleanConditionalCheckout blocked due to stock.
rankBlockedbooleanConditionalCheckout blocked due to rank requirements.
upgradeBlockedbooleanConditionalCheckout blocked due to an upgrade conflict.
subtotalJSON valueConditionalValue determined by screen and configuration.
merchandiseDiscountJSON valueConditionalValue determined by screen and configuration.
couponJSON valueConditionalValue determined by screen and configuration.
promoGiftJSON valueConditionalValue determined by screen and configuration.
discountJSON valueConditionalValue determined by screen and configuration.
discountedSubtotalJSON valueConditionalValue determined by screen and configuration.
vatRateJSON valueConditionalValue determined by screen and configuration.
vatJSON valueConditionalValue determined by screen and configuration.
checkoutTotalJSON valueConditionalValue determined by screen and configuration.
walletRestrictedbooleanConditionalWhether the player's wallet use is restricted.
couponErrorstring or nullConditionalError code from the last coupon action.
couponInputstringConditionalEntered coupon text.
checkoutAgreementJSON valueConditionalValue determined by screen and configuration.
agreementAcceptedbooleanConditionalAcceptance state for the current agreement.
couponMinimuminteger or nullConditionalMinimum cart amount for the coupon, if applicable.
availableCreditJSON valueConditionalValue determined by screen and configuration.
siteWalletJSON valueConditionalValue determined by screen and configuration.
appliedCreditJSON valueConditionalValue determined by screen and configuration.
dueJSON valueConditionalValue determined by screen and configuration.
useCreditJSON valueConditionalValue determined by screen and configuration.
allowBalancebooleanConditionalWhether balance can be used for this cart.
onlyBalancebooleanConditionalWhether the cart requires site balance.
paymentMethodsobject or arrayConditionalActive methods keyed by provider and method ID.
paymentDisplayJSON valueConditionalValue determined by screen and configuration.
paymentJSON valueConditionalValue determined by screen and configuration.
paymentSessionJSON valueConditionalValue determined by screen and configuration.
checkoutErrorstring or nullConditionalCheckout start error code.
quoteJSON valueConditionalValue determined by screen and configuration.
lines[].product.idintegerConditionalField from this record, when available.
lines[].product.slugstring or nullConditionalField from this record, when available.
lines[].product.namestring or nullConditionalField from this record, when available.
lines[].product.descriptionJSON valueConditionalField from this record, when available.
lines[].product.description_htmlstring or nullConditionalField from this record, when available.
lines[].product.categoryJSON valueConditionalField from this record, when available.
lines[].product.serverJSON valueConditionalField from this record, when available.
lines[].product.stockinteger or nullConditionalField from this record, when available.
lines[].product.durationDaysinteger or nullConditionalNumber of days for a timed product.
lines[].product.currencystring or nullConditionalField from this record, when available.
lines[].product.pricesobjectConditionalSelling prices keyed by currency code.
lines[].product.originalPricesobjectConditionalPrices before discount, keyed by currency code.
lines[].product.requiredRankJSON valueConditionalField from this record, when available.
lines[].product.rankLockedbooleanConditionalWhether the required rank blocks purchase.
lines[].product.purchaseLimitinteger or nullConditionalField from this record, when available.
lines[].product.kindJSON valueConditionalField from this record, when available.
lines[].product.imageJSON valueConditionalField from this record, when available.
lines[].product.imageSlugJSON valueConditionalField from this record, when available.
lines[].product.toneJSON valueConditionalField from this record, when available.
lines[].product.upgradeFromJSON valueConditionalField from this record, when available.
lines[].product.upgradeToJSON valueConditionalField from this record, when available.
lines[].product.discountPercentnumberConditionalField from this record, when available.
promoGift.product.idintegerConditionalField from this record, when available.
promoGift.product.slugstring or nullConditionalField from this record, when available.
promoGift.product.namestring or nullConditionalField from this record, when available.
promoGift.product.descriptionJSON valueConditionalField from this record, when available.
promoGift.product.description_htmlstring or nullConditionalField from this record, when available.
promoGift.product.categoryJSON valueConditionalField from this record, when available.
promoGift.product.serverJSON valueConditionalField from this record, when available.
promoGift.product.stockinteger or nullConditionalField from this record, when available.
promoGift.product.durationDaysinteger or nullConditionalNumber of days for a timed product.
promoGift.product.currencystring or nullConditionalField from this record, when available.
promoGift.product.pricesobjectConditionalSelling prices keyed by currency code.
promoGift.product.originalPricesobjectConditionalPrices before discount, keyed by currency code.
promoGift.product.requiredRankJSON valueConditionalField from this record, when available.
promoGift.product.rankLockedbooleanConditionalWhether the required rank blocks purchase.
promoGift.product.purchaseLimitinteger or nullConditionalField from this record, when available.
promoGift.product.kindJSON valueConditionalField from this record, when available.
promoGift.product.imageJSON valueConditionalField from this record, when available.
promoGift.product.imageSlugJSON valueConditionalField from this record, when available.
promoGift.product.toneJSON valueConditionalField from this record, when available.
promoGift.product.upgradeFromJSON valueConditionalField from this record, when available.
promoGift.product.upgradeToJSON valueConditionalField from this record, when available.
promoGift.product.discountPercentnumberConditionalField from this record, when available.
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.

For a balance-only or zero-due order, next points to the receipt. An eligible payment method is required when an amount remains due.

When checkout validation fails, next can point back to the cart. Read checkoutError from cart.read for details.

Shared error and authentication contract