xpayr_apply_payment_coupon
Validates a merchant discount coupon and applies it to an active pending payment session, then recalculates the effective crypto price.
Instructions
Validate and apply a merchant discount coupon code to an active pending payment session and recalculate the effective crypto price.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"session_id": "<session_id>",
"coupon_code": "<coupon_code>"
},
"name": "xpayr_apply_payment_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Target payment session ID. | |
| coupon_code | Yes | Discount coupon code to apply. |