Report whether a code worked
report_code_resultTell Papyras Coupons whether a code or deal worked at checkout. Call it once for each offer the user (or you) actually tried, with worked true or false and, if it failed, a short reason. Reports are shown with the offer to the next shopper and help remove dead codes. Sends no personal data.
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": {
"offer_id": "<offer_id>",
"worked": "<worked>"
},
"name": "report_code_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | No | Optional, when it failed: e.g. "expired", "minimum spend not met", "not valid in my country". | |
| worked | Yes | true if the discount applied, false if it did not. | |
| offer_id | Yes | The id of the offer that was tried (from an earlier result). |