cart.read
Returns current cart contents, totals and payment options.
GET
/api/v1/{locale}/cartAPI scope cart.read
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. |
This endpoint takes no request body.
Run samples from your application server. See Quickstart for variables and sessions.
curl --fail-with-body --request GET \
-H "Authorization: Bearer $MINEXON_API_KEY" \
-b "$MINEXON_COOKIE_JAR" -c "$MINEXON_COOKIE_JAR" \
"${MINEXON_BASE_URL}/api/v1/en/cart"Response
HTTP 200 · application/json
The fields below are inside the response’s data object.
| 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 | string | Required | Transaction currency code. |
cartCount | integer | Required | Total store cart quantity. |
quantities | object | array | Required | Quantities by product slug. |
communityGoal | object or null | Conditional | Configured community goal. |
categoryPath | string or null | Conditional | Store category path. |
lines | object | array | Required | Store cart lines. |
marketLines | object | array | Required | Market cart lines. |
marketTotal | integer | Required | Market total in minor units. |
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 | integer | Required | Subtotal in minor units. |
merchandiseDiscount | integer | Required | Merchandise discount in minor units. |
coupon | object | null | Conditional | Coupon and applicability status. |
promoGift | object | null | Conditional | Gift product granted by a coupon. |
discount | integer | Required | Coupon discount in minor units. |
discountedSubtotal | integer | Required | Discounted subtotal in minor units. |
vatRate | JSON value | Conditional | Value determined by screen and configuration. |
vat | integer | Required | VAT in minor units. |
checkoutTotal | integer | Required | Checkout total in minor units. |
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 | object | null | Conditional | Agreement text and acceptance token, when configured. |
agreementAccepted | boolean | Conditional | Acceptance state for the current agreement. |
couponMinimum | integer or null | Conditional | Minimum cart amount for the coupon, if applicable. |
availableCredit | integer | Required | Available credit in minor units. |
siteWallet | JSON value | Conditional | Value determined by screen and configuration. |
appliedCredit | integer | Required | Applied credit in minor units. |
due | integer | Required | Amount due in minor units. |
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 | array | Required | Configured payment methods and pricing terms keyed by ID. |
paymentDisplay | JSON value | Conditional | Value determined by screen and configuration. |
payment | JSON value | Conditional | Value determined by screen and configuration. |
paymentSession | string | null | Conditional | Current payment session identifier. |
checkoutError | string | null | Conditional | Error code from the last checkout attempt. |
quote | string | Required | Cart quote verification value. |
Nested fields
| Field | Type | Requirement | Description |
|---|---|---|---|
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. |
Selected fields from an example response
{
"data": {
"locale": "en",
"currency": "TRY",
"cartCount": 1,
"quantities": {},
"communityGoal": {}
}
}