create_invoice
Create payment invoices via Xendit by providing an external ID and amount. Supports currencies IDR, PHP, USD.
Instructions
Create a payment invoice via Xendit.
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": {
"external_id": "<external_id>",
"amount": "<amount>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Invoice amount | |
| currency | No | Currency code (IDR, PHP, USD) | IDR |
| description | No | Invoice description | |
| external_id | Yes | Unique invoice ID from your system | |
| payer_email | No | Customer email |