ERP XT icon

ERP XT

Integracja z Comarch ERP XT (Betterfly) - faktury, kontrahenci, produkty

Faktura Sprzedaży → Utwórz

AI-generated

Summary

Create a sales invoice (faktura sprzedaży) in Comarch ERP XT

Inputs

  • purchasingPartyId (required) — Nabywca faktury (kontrahent/partner handlowy); loaded via getCustomers
  • paymentTypeId (required) — Forma płatności faktury; loaded via getPaymentTypes
  • items — Pozycje faktury; fixedCollection with multipleValues=true. Each item requires ProductId and Quantity; ProductCurrencyPrice auto-fetched from product card if empty; item-level Discount overrides header Discount
  • additionalOptions — Opcje dodatkowe nagłówka faktury. Supported fields: Discount (header-level, overridden by item-level), ReceivingPartyId, InvoiceType (0=Netto, 1=Brutto), PaymentStatus, PaymentDeadline, SalesDate, IssueDate, BankAccountId, Description

Output shape

The created invoice record as JSON, normalized by the node (PurchasingParty/ReceivingParty IDs moved into respective .Id sub-objects; PaymentDetails merged from PaymentTypeId via API fetch). Available via the node's main output connection.

No PDF is generated by this operation; use the separate 'getPdf' operation for Base64-encoded prints.

Examples

Example 1: Create a Netto sales invoice for customer C-001 with payment by bank transfer and one line item

purchasingPartyId=C-001, paymentTypeId=bankTransfer, items=[{ProductId=P-123, Quantity=5, ProductCurrencyPrice=25.50, VatRateId=23}], additionalOptions={InvoiceType: 0, PaymentStatus: 0, PaymentDeadline: 2024-12-31}

Links

Discussion