create_customer_charge_credit
Add charges or credits to customer accounts for subscription billing. Specify amount in cents, type (charge/credit), currency, and category (physical/digital) to process billing adjustments.
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).
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) |