addCredits
Add credits to a customer's credit balance at no charge, as an administrator allocation. Returns the created credits transaction. Credits must be turned on for the location; pass the customer's location as transaction.locationRef. Omit transaction.expirationDate for credits that never expire; otherwise pass an ISO datetime within the expiration day in the location's timezoneId, and the credits expire at the end of that day. Each call creates a new transaction: when a call fails or times out, list the customer's transactions before calling again, so the same amount is not applied twice. Call getLocations to list locations, or getLocation to fetch one by locationId. Call getCustomers to list valid customerRef values. Never invent UUIDs; only use values from prior tool responses.
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": {
"transaction": "<transaction>"
},
"name": "addCredits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction | Yes | Credits to add. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transaction | Yes |