cart.confirm-payment
Confirms payment for a current cart checkout session.
POST
/api/v1/{locale}/cart/paymentAPI scope cart.confirm-payment
Request
Send Authorization: Bearer <key> with each request.
Requires a signed-in player and applicable permission.
Path parameters
| Field | Type | Requirement | Description |
|---|---|---|---|
locale | tr or en | Required | Request locale. |
Request body
| Field | Type | Requirement | Description |
|---|---|---|---|
payment_session | string | Required | The paymentSession value from the review response. |
payment_customer | object | Optional | Customer information when required by the provider. Use the method’s customerDetails field. |
payment_customer.first_name | string | Optional | Given name. |
payment_customer.last_name | string | Optional | Family name. |
payment_customer.phone | string | Optional | Telephone number. |
payment_customer.address | string | Optional | Billing address when required. |
payment_customer.city | string | Optional | Billing city when required. |
payment_customer.country | string | Optional | Two-letter country code when required. |
payment_customer.postal_code | string | Optional | Postal code when required. |
payment_customer.identity_number | string | Optional | Identification 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 '{
"payment_session": "<paymentSession from GET>"
}' \
"${MINEXON_BASE_URL}/api/v1/en/cart/payment"Response
HTTP 200 · application/json
| Field | Type | Requirement | Description |
|---|---|---|---|
next | string | Conditional | 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. |
data.type | string | Conditional | The constant hosted_payment_form. |
data.method | string | Conditional | The constant POST. |
data.action | string | Conditional | Provider form submission URL. |
data.fields | object | Conditional | Provider-specific fields to send with the form. |
data | object | Conditional | Form 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
| 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. |
cartCount | integer | Conditional | Number of cart items. |
quantities | JSON value | Conditional | Value determined by screen and configuration. |
communityGoal | object or null | Conditional | Configured community goal. |
categoryPath | string or null | Conditional | Store category path. |
lines | JSON value | Conditional | Value determined by screen and configuration. |
marketLines | JSON value | Conditional | Value determined by screen and configuration. |
marketTotal | JSON value | Conditional | Value determined by screen and configuration. |
marketBlocked | boolean | Conditional | Whether a market line blocks checkout. |
stockBlocked | boolean | Conditional | Checkout blocked due to stock. |
rankBlocked | boolean | Conditional | Checkout blocked due to rank requirements. |
upgradeBlocked | boolean | Conditional | Checkout blocked due to an upgrade conflict. |
subtotal | JSON value | Conditional | Value determined by screen and configuration. |
merchandiseDiscount | JSON value | Conditional | Value determined by screen and configuration. |
coupon | JSON value | Conditional | Value determined by screen and configuration. |
promoGift | JSON value | Conditional | Value determined by screen and configuration. |
discount | JSON value | Conditional | Value determined by screen and configuration. |
discountedSubtotal | JSON value | Conditional | Value determined by screen and configuration. |
vatRate | JSON value | Conditional | Value determined by screen and configuration. |
vat | JSON value | Conditional | Value determined by screen and configuration. |
checkoutTotal | JSON value | Conditional | Value determined by screen and configuration. |
walletRestricted | boolean | Conditional | Whether the player's wallet use is restricted. |
couponError | string or null | Conditional | Error code from the last coupon action. |
couponInput | string | Conditional | Entered coupon text. |
checkoutAgreement | JSON value | Conditional | Value determined by screen and configuration. |
agreementAccepted | boolean | Conditional | Acceptance state for the current agreement. |
couponMinimum | integer or null | Conditional | Minimum cart amount for the coupon, if applicable. |
availableCredit | JSON value | Conditional | Value determined by screen and configuration. |
siteWallet | JSON value | Conditional | Value determined by screen and configuration. |
appliedCredit | JSON value | Conditional | Value determined by screen and configuration. |
due | JSON value | Conditional | Value determined by screen and configuration. |
useCredit | JSON value | Conditional | Value determined by screen and configuration. |
allowBalance | boolean | Conditional | Whether balance can be used for this cart. |
onlyBalance | boolean | Conditional | Whether the cart requires site balance. |
paymentMethods | object or array | Conditional | Active methods keyed by provider and method ID. |
paymentDisplay | JSON value | Conditional | Value determined by screen and configuration. |
payment | JSON value | Conditional | Value determined by screen and configuration. |
paymentSession | JSON value | Conditional | Value determined by screen and configuration. |
checkoutError | string or null | Conditional | Checkout start error code. |
quote | JSON value | Conditional | Value determined by screen and configuration. |
lines[].product.id | integer | Conditional | Field from this record, when available. |
lines[].product.slug | string or null | Conditional | Field from this record, when available. |
lines[].product.name | string or null | Conditional | Field from this record, when available. |
lines[].product.description | JSON value | Conditional | Field from this record, when available. |
lines[].product.description_html | string or null | Conditional | Field from this record, when available. |
lines[].product.category | JSON value | Conditional | Field from this record, when available. |
lines[].product.server | JSON value | Conditional | Field from this record, when available. |
lines[].product.stock | integer or null | Conditional | Field from this record, when available. |
lines[].product.durationDays | integer or null | Conditional | Number of days for a timed product. |
lines[].product.currency | string or null | Conditional | Field from this record, when available. |
lines[].product.prices | object | Conditional | Selling prices keyed by currency code. |
lines[].product.originalPrices | object | Conditional | Prices before discount, keyed by currency code. |
lines[].product.requiredRank | JSON value | Conditional | Field from this record, when available. |
lines[].product.rankLocked | boolean | Conditional | Whether the required rank blocks purchase. |
lines[].product.purchaseLimit | integer or null | Conditional | Field from this record, when available. |
lines[].product.kind | JSON value | Conditional | Field from this record, when available. |
lines[].product.image | JSON value | Conditional | Field from this record, when available. |
lines[].product.imageSlug | JSON value | Conditional | Field from this record, when available. |
lines[].product.tone | JSON value | Conditional | Field from this record, when available. |
lines[].product.upgradeFrom | JSON value | Conditional | Field from this record, when available. |
lines[].product.upgradeTo | JSON value | Conditional | Field from this record, when available. |
lines[].product.discountPercent | number | Conditional | Field from this record, when available. |
promoGift.product.id | integer | Conditional | Field from this record, when available. |
promoGift.product.slug | string or null | Conditional | Field from this record, when available. |
promoGift.product.name | string or null | Conditional | Field from this record, when available. |
promoGift.product.description | JSON value | Conditional | Field from this record, when available. |
promoGift.product.description_html | string or null | Conditional | Field from this record, when available. |
promoGift.product.category | JSON value | Conditional | Field from this record, when available. |
promoGift.product.server | JSON value | Conditional | Field from this record, when available. |
promoGift.product.stock | integer or null | Conditional | Field from this record, when available. |
promoGift.product.durationDays | integer or null | Conditional | Number of days for a timed product. |
promoGift.product.currency | string or null | Conditional | Field from this record, when available. |
promoGift.product.prices | object | Conditional | Selling prices keyed by currency code. |
promoGift.product.originalPrices | object | Conditional | Prices before discount, keyed by currency code. |
promoGift.product.requiredRank | JSON value | Conditional | Field from this record, when available. |
promoGift.product.rankLocked | boolean | Conditional | Whether the required rank blocks purchase. |
promoGift.product.purchaseLimit | integer or null | Conditional | Field from this record, when available. |
promoGift.product.kind | JSON value | Conditional | Field from this record, when available. |
promoGift.product.image | JSON value | Conditional | Field from this record, when available. |
promoGift.product.imageSlug | JSON value | Conditional | Field from this record, when available. |
promoGift.product.tone | JSON value | Conditional | Field from this record, when available. |
promoGift.product.upgradeFrom | JSON value | Conditional | Field from this record, when available. |
promoGift.product.upgradeTo | JSON value | Conditional | Field from this record, when available. |
promoGift.product.discountPercent | number | Conditional | Field from this record, when available. |
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
A hosted provider form returns data. Outcomes that require navigation return next.
When checkout validation fails, next can point back to the cart. Read checkoutError from cart.read for details.