create_charge
Create a Pix charge and get the copy-and-paste code and payment link to send to the payer; use your order ID as correlation_id so retries don't create duplicates.
Instructions
Create a Pix charge and return the Pix copy-and-paste code (brCode) and payment link to send to the payer. Use correlation_id = your order id so retries never create a duplicate.
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": {
"value_cents": "<value_cents>"
},
"name": "create_charge"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | No | Configured account name; omit for the default account. | |
| comment | No | Shown to the payer. | |
| customer | No | Payer: name plus tax_id, email or phone. | |
| value_cents | Yes | Amount in centavos: R$ 10,50 = 1050. | |
| correlation_id | No | Your order id; makes the call idempotent (same id returns the existing charge). | |
| additional_info | No | Up to 10 key/value pairs. | |
| expires_in_seconds | No | Default: Woovi's (1 day). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||