Creates a new sales or purchase invoice in Firmao CRM. This action generates an invoice transaction with line items, customer information, pricing details, and payment terms. It can auto-create customers if needed and supports automatic invoice numbering.
modestringDocument mode; 'SALE' for sales invoices
paidbooleanWhether the invoice is already paid
typestringFixed to 'INVOICE' to create an invoice
emailsarrayList of emails for new customer
phonesarrayList of phone numbers for new customer
currencyRequiredstringInvoice currency code in ISO 4217 format (e.g., 'PLN', 'EUR', 'USD', 'GBP')
customerintegerExisting customer ID from Firmao (mutually exclusive with createNewCustomerIfNeeded)
paidValuenumberAmount already paid
autoNumberbooleanLet system assign invoice number automatically (recommended); set to false to provide explicit transactionNumber
invoiceDateRequiredstringInvoice issue date (YYYY-MM-DD)
paymentDatestringPayment/due date (YYYY-MM-DD)
paymentTypestringPayment method: 'CASH' for cash payment, 'TRANSFER' for bank transfer, or other payment type
dataRequiredData from the action execution
errorstringError if any occurred during the execution of the action
successfulRequiredbooleanWhether or not the action execution was successful or not
API key connection. Risk level 2 of 5.
Free Action
No published Skills explicitly reference this Action yet.