Sandbox: customer rejects invoice
sandbox_rejectSANDBOX ONLY (sk_test_ key): simulate the customer rejecting the invoice in Kaspi. The operation becomes "cancelled" with failure_reason "payer_refused" a few seconds later; check with get_operation. Use in tests for a declined invoice; for an unpaid timeout use sandbox_expire, for success sandbox_pay.
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": {
"operation_id": "<operation_id>"
},
"name": "sandbox_reject"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operation_id | Yes | Sandbox operation id. |