credits_purchase
Create a charge to buy avulso invoice credits (R$ 1.14 per note, minimum 6 notes, they never expire). Unit price is 1.14 BRL. method "pix" returns a QR Code image, the copy-and-paste code and a payment link; method "card" returns a Stripe checkout link. This tool only creates the charge: the payment is completed by the person, and the server never moves money. Without confirm: true it changes nothing and returns a preview; with confirm: true it runs. The preview shows the quantity, the total in BRL and the method.
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": {
"units": "<units>",
"method": "<method>"
},
"name": "credits_purchase"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Pix only: name of the buyer. Omit to use the company name. | |
| units | Yes | Number of invoices to buy (at least 6). | |
| method | Yes | How the person will pay. | |
| tax_id | No | Pix only: CPF or CNPJ of the buyer, who receives the invoice for these credits. Omit to use the first company of the workspace. | |
| confirm | No | true runs the action. Without it nothing changes and only a preview is returned. |