InvoiceInsert: inputs | Moloni ON API
Moloni ONGuidesAPI ReferenceExplorer
API Reference

InvoiceInsert

input

Creates a new Invoices

Fields

NameTypeDescription
fiscalZoneString
documentCalculationsModeInt
documentSetIdInt!Document set to which this document belongs
countryIdIntCountry identifier of the entity
globalDiscountFloatGlobal discount percentage applied to the entire document
dateDateTime!Issue date of the document. Must follow sequential numbering rules per AT regulations
expirationDateDate!Due date for the document, typically derived from the maturity date
maturityDateIdIntMaturity date preset identifier, used to calculate the expiration date
timezoneIdIntTimezone identifier for the document issue date
customerIdInt!Customer to whom this document is issued
alternateAddressIdIntAlternate delivery/billing address for the entity
salespersonIdIntSalesperson assigned to this document for commission tracking
salespersonCommissionFloatCommission percentage for the salesperson on this document
relatedIn[RelatedDocumentInput]Documents originated from this document (e.g., receipts created from this invoice)
relatedWith[RelatedDocumentInput]Source documents that originated this document (e.g., invoice referenced by a credit note)
notesRelatedDocsStringNotes regarding related documents
products[DocumentProductInput!]!Line items (products/services) included in this document
currencyExchangeIdIntCurrency exchange rate identifier when document uses a foreign currency
notesStringFree-text observations or notes for this document
statusIntDocument status: 0 = draft, 1 = closed/finalized
suspendedBooleanWhether the document is suspended (temporarily on hold)
nullifiedBooleanWhether the document has been voided/cancelled. Nullified documents remain for audit but have no fiscal effect
retentionsValueFloatWithholding tax value applied to this document
yourReferenceStringCustomer's own reference for this document (e.g., purchase order number)
ourReferenceStringInternal reference for this document (e.g., contract number, project code)
currencyExchangeExchangeFloatExchange rate value applied when document uses a foreign currency
deliveryMethodIdIntDelivery/shipping method identifier
vehicleIdIntVehicle identifier used for goods transportation
deliveryLoadDateDateTimeDate and time when goods are loaded for transport. Required for AT transport documents
deliveryLoadAddressStringLoading address for goods transport. Required by AT for transport documents in Portugal
deliveryLoadCityStringLoading city for goods transport
deliveryLoadZipCodeStringLoading postal code for goods transport
deliveryLoadCountryIdIntLoading country for goods transport
deliveryUnloadAddressStringUnloading/delivery address for goods transport. Required by AT for transport documents in Portugal
deliveryUnloadCityStringUnloading/delivery city for goods transport
deliveryUnloadZipCodeStringUnloading/delivery postal code for goods transport
deliveryUnloadCountryIdIntUnloading/delivery country for goods transport
economicActivityClassificationCodeIdIntEconomic activity classification code (CAE) identifier, per AT SAF-T requirements