Skip to main content

remove_voucher

Removes a previously applied voucher or coupon from the cart, reverting the discount.

Platform Support​

PlatformStatusNotes
iOSYes—
AndroidYes—
Authentication Required

The user must be signed in to use this tool.

Description​

Remove a voucher from the cart

Parameters​

NameTypeRequiredDefaultDescription
voucher_idstringYes—Voucher ID to remove

Response​

FieldTypeDescription
successbooleanWhether the voucher was removed
cart_totalstringUpdated cart total

Error Codes​

CodeDescription
AUTH_REQUIREDUser must be signed in
INVALID_PARAMSMissing voucher_id

Source Files​

  • iOS: one-app-ios-chat/Chat/Sources/Chat/MCP/EcommerceMCPServer.swift
  • Android: chat-pnp-android/mcp-ecommerce/src/main/java/pnp/app/mcp/ecommerce/tools/EcommerceMCPTools.kt