create_order
Create a new Fakturia order with customer details, addresses, payment method, and line items, then use it as the basis for converting to a customer record or contract.
Instructions
Create a new order in Fakturia. Orders represent purchases made through signup pages and contain customer information, billing/postal addresses, payment details, and ordered items. After creation, the order can be converted into a customer record and/or a contract.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Email address of the person placing the order. Used for order confirmation and communications. | ||
| locale | No | Locale for the order (e.g. "de_DE", "en_US"). Controls language of order communications. | |
| mobile | No | Mobile phone number. | |
| phone1 | No | Primary phone number. | |
| phone2 | No | Secondary phone number. | |
| euTaxId | No | EU VAT identification number (e.g. "DE123456789"). | |
| referer | No | HTTP referer URL indicating where the order originated from. | |
| telefax | No | Fax number. | |
| lastName | No | Last name of the person placing the order. | |
| birthdate | No | Date of birth in ISO 8601 format (YYYY-MM-DD). | |
| firstName | No | First name of the person placing the order. | |
| ipAddress | No | IP address of the client that placed the order, for fraud prevention and logging. | |
| taxNumber | No | Tax number (national tax ID). | |
| couponCode | No | A coupon or discount code to apply to the order. | |
| orderItems | No | List of items included in the order. Each item specifies a quantity and item number at minimum. | |
| salutation | No | Salutation / title (e.g. "Herr", "Frau", "Mr.", "Ms."). | |
| companyName | No | Company name, if the order is placed by a business. | |
| customFields | No | Custom fields as key-value pairs for storing additional metadata on the order. | |
| customerType | No | Type of customer placing the order (e.g. "private", "business"). | |
| orderComment | No | A comment or note attached to the order by the customer. | |
| orderCurrency | No | Currency for the order in ISO 4217 format (e.g. "EUR", "USD"). | |
| paymentMethod | No | Payment method for the order (e.g. "invoice", "sepa_debit", "credit_card"). | |
| postalAddress | No | Postal / mailing address for the order. | |
| bankAccountBic | No | BIC / SWIFT code of the customer bank account. | |
| billingAddress | No | Billing address for the order. | |
| orderReference | No | An external reference identifier for the order (e.g. from an external system). | |
| bankAccountIban | No | IBAN of the customer bank account for SEPA payments. | |
| bankAccountOwner | No | Name of the bank account owner. | |
| orderTemplatePageId | No | The ID of the signup page template used to create this order. | |
| sepaMandateAgreement | No | Whether the customer has agreed to the SEPA direct debit mandate. |