Record Billing Adjustment
agency_billing_record_adjustmentRecord an already-issued provider credit note or debit invoice against an existing agency billing line. Platform finance operators only: requires the existing admin key and wildcard scope; agency owner status is insufficient. Verifies exact provider receipt, currency and amount before recording bookkeeping. Creates no invoice, payment or subscription.
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": {
"partnerId": "<partnerId>",
"lineId": "<lineId>",
"amountCents": "<amountCents>",
"reason": "<reason>"
},
"name": "agency_billing_record_adjustment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lineId | Yes | The billing line to correct. | |
| reason | Yes | Why the correction is made. | |
| partnerId | Yes | The agency (partner) workspace ID. | |
| amountCents | Yes | Correction in cents: negative for a credit, positive for a debit; not zero. | |
| providerCreditNoteId | No | Provider credit note ID; required for a credit. | |
| providerDebitInvoiceId | No | Provider invoice ID; required for a debit. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when success is false | |
| receipt | No | ||
| success | Yes | Whether the tool completed successfully |