Skip to Content
MinexonMinexon

cart.coupon-remove

Removes the applied coupon from the cart session.

POST/api/v1/{locale}/cart/coupon/remove

API scope cart.coupon-remove

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
coupon_checkoutbooleanOptionalRetains checkout selections in the cart session.
use_creditbooleanOptionalApplies available balance when eligible.
paymentstringOptionalPayment method identifier.

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 '{}' \
  "${MINEXON_BASE_URL}/api/v1/en/cart/coupon/remove"

Response

HTTP 200 · application/json

FieldTypeRequirementDescription
dataobjectRequiredCoupon operation result.
data.codestring | nullRequiredApplied coupon code or null after removal.
{
  "data": {
    "code": null
  }
}

Flow and error cases

Shared error and authentication contract