create_customer_charge_credit
Create a charge or credit for a customer. Specify amount in cents, type, category, and currency ID.
Instructions
Create a charge or credit for a customer. POST /customers/{customerId}/charges_credits. IMPORTANT: amount is in CENTS (e.g. 10000 = $100.00). Required: amount (integer, in cents), type (charge or credit), companyCurrencyId, category (physical or digital). Optional: description, qty (default 1), isFreeShipping, taxable, weight (required by API when category is physical).
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": {
"customerId": "<customerId>",
"amount": "<amount>",
"type": "<type>",
"companyCurrencyId": "<companyCurrencyId>",
"category": "<category>"
},
"name": "create_customer_charge_credit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | Customer ID (required) | |
| amount | Yes | Amount in CENTS (required). Example: 1000 = $10.00, 500 = $5.00. Must be a positive integer. | |
| description | No | Description (max 200 chars) | |
| type | Yes | Type (required): charge or credit | |
| companyCurrencyId | Yes | Company currency ID (required, must be > 0) | |
| category | Yes | Category (required): physical or digital | |
| qty | No | Quantity (default 1) | |
| isFreeShipping | No | Free shipping | |
| taxable | No | Whether the line is taxable | |
| weight | No | Weight (required by API when category is physical) |