Create Payment
create_paymentRecord income or expense payments and link them to a document or contact for accurate Billin accounting.
Instructions
Record a payment (income or expense). Link it to a document via documentsIds or to a contact via contactId (mutually exclusive — provide one or neither).
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": {
"operationDate": "<operationDate>",
"amount": "<amount>",
"type": "<type>"
},
"name": "create_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | INCOME = payment received, EXPENSE = payment made | |
| amount | Yes | Payment amount (minimum 0.01) | |
| method | No | Payment method | |
| contactId | No | Contact UUID to link this payment to. Mutually exclusive with documentsIds. | |
| description | No | Payment description (max 250 chars) | |
| documentsIds | No | Array with a single document/invoice UUID to link this payment to. Mutually exclusive with contactId. | |
| operationDate | Yes | Payment date in YYYY-MM-DD format (required) | |
| accountingAccountId | No | Related accounting account UUID |