Credit subscription
agenta_subscriptions_creditAdd credit to one subscription in the plan's currency; it is deducted from the subscriber's next invoices, with a merchant-only reason.
Instructions
Put credit on a subscriber’s account, taken off their next invoice. Adds credit to one subscription, in the plan's currency; it is taken off the subscriber's next invoices. The reason is stored for the merchant only. Returns the credit given.
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>",
"amount": "<amount>",
"reason": "<reason>"
},
"name": "agenta_subscriptions_credit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The subscription id | |
| amount | Yes | Credit to give (e.g. 5.00), in the plan’s currency | |
| reason | Yes | Why you are giving it — for you, not the subscriber | |
| business | No | Act for this business you manage (its id). Omit to act as yourself. |