Cancel unpaid credit purchase
cancel_billing_orderCancel this unpaid order. If payment already settled, return its paid outcome; this does not refund a settled payment. Check status after a cancellation or payment race.
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": {
"orderId": "<orderId>"
},
"name": "cancel_billing_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Payment and credit fulfillment state. | |
| seller | No | Seller of record. | |
| teamId | No | Beneficiary team id. | |
| credits | No | Credits purchased by this order. | |
| orderId | Yes | Client-generated order UUID. | |
| currency | No | Order currency. | |
| revision | Yes | Quote revision to approve when completing. | |
| taxMinor | No | Tax in minor units. | |
| teamName | No | Beneficiary team name. | |
| expiresAt | No | Quote expiry in Unix seconds. | |
| feesMinor | No | Fees in minor units. | |
| receiptUrl | No | Receipt URL once paid. | |
| totalMinor | No | Total to approve, in minor units. | |
| refundTerms | No | Refund terms to show before approval. | |
| refundStatus | No | Refund request status, separate from the payment state. | |
| discountMinor | No | Discount in minor units. | |
| retryGuidance | No | How to safely resolve or retry this order. | |
| subtotalMinor | No | Subtotal in minor units. | |
| verificationUrl | No | Secure verification continuation for the purchaser, when required. |