create_contract
Creates a new Fakturia contract using a required customer number, with optional billing recurrence, trial periods, payment methods, tax settings, and custom invoice, credit note, and email text.
Instructions
Create a new contract in Fakturia. Requires at minimum a customerNumber. The contract can be configured with billing recurrence, trial periods, payment methods, tax settings, and custom text for invoices, credit notes, and emails.
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": {
"customerNumber": "<customerNumber>"
},
"name": "create_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | A human-readable name for the contract. | |
| recur | No | The recurrence interval (e.g. 1 for monthly if recurUnit is MONTH). | |
| dueUnit | No | The payment due period unit. | |
| duePeriod | No | The payment due period value. | |
| issueDate | No | The issue date of the contract in YYYY-MM-DD format. | |
| recurUnit | No | The recurrence unit (e.g. MONTH, YEAR). | |
| taxConfig | No | Tax configuration for this contract. | |
| trialUnit | No | The trial period unit. | |
| couponCode | No | A coupon code to apply to this contract. | |
| projectName | No | The project name to associate with this contract. | |
| trialPeriod | No | The trial period length. | |
| accountNumber | No | The billing account number to associate with this contract. | |
| paymentMethod | No | The payment method for this contract (e.g. INVOICE, DIRECT_DEBIT). | |
| customerNumber | Yes | The customer number who owns this contract. Required. | |
| hasTrialperiod | No | Whether this contract has a trial period. | |
| zugferdProfile | No | The ZUGFeRD e-invoice profile to use. | |
| documentDeliveryMode | No | How documents should be delivered (e.g. EMAIL, MAIL). | |
| trialPeriodEndAction | No | Action to take when the trial period ends. | |
| ccDisallowTermination | No | Whether to disallow termination from the customer center. | |
| extraTextInvoiceEmail | No | Extra text to include in the invoice email. | |
| extraTextInvoiceFooter | No | Extra text to include in the invoice footer. | |
| extraTextInvoiceHeader | No | Extra text to include in the invoice header. | |
| extraTextCreditnoteEmail | No | Extra text to include in the credit note email. | |
| extraTextCreditnoteFooter | No | Extra text to include in the credit note footer. | |
| extraTextCreditnoteHeader | No | Extra text to include in the credit note header. |