payments_get_coupon
Fetch coupon details by ID and code to verify payment discounts and eligibility.
Instructions
Fetch Coupon
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": {
"id": "<id>",
"code": "<code>"
},
"name": "payments_get_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Coupon id | |
| code | Yes | Coupon code | |
| altId | No | Location Id Defaults to GHL_LOCATION_ID when omitted. | |
| altType | No | Alt Type Defaults to GHL_LOCATION_ID when omitted. |