Skip to main content

Invoice Master Input Model

Fields

FieldDescriptionType
docDateDocument date. Value must be within the date range of Fiscal Year.daterequired for new records
debtorCodeDebtor code. Value must be an existing customer code in Cloud Accounting web application.stringrequired for new records
debtorNameDebtor name.string, maxLength(100)required for new records
creditTermCredit term. Value must be an existing credit term in Cloud Accounting web application.stringrequired for new records
salesLocationSales location. Value must be an existing location in Cloud Accounting web application.stringrequired for new records
Optional Fields
FieldDescriptionType
docNoDocument number of record. More information can be found here.string, maxLength(50)
docNoFormatNameDocument numbering format. Value must be an existing numbering format name in Cloud Accounting web application. More information can be found here.string
taxDateTax date. Value must be on or after docDate.datenullable
emailEmail address.string, maxLength(255)
emailCCEmail address CC.string, maxLength(255)
emailBCCEmail address BCC.string, maxLength(255)
addressAddress.string, maxLength(200)
attentionCustomer name (for billing).string, maxLength(40)
phone1Phone number.string, maxLength(25)
fax1Fax number.string, maxLength(25)
deliverAddressDelivery address.string, maxLength(200)
deliverContactCustomer name (for delivery).string, maxLength(40)
deliverPhone1Delivery phone number.string, maxLength(25)
deliverFax1Delivery fax number.string, maxLength(25)
refDocument reference.string, maxLength(40)
descriptionInvoice document description.string, maxLength(80)
taxExemptionNoTax exemption number.string, maxLength(60)nullable
taxExemptionExpiryDateTax exemption expiry datedatenullable
noteDocument notes. (HTML)string
remark1Document remarks.string, maxLength(40)
remark2Document remarks.string, maxLength(40)
remark3Document remarks.string, maxLength(40)
remark4Document remarks.string, maxLength(40)
salesAgentSales agent. Value must be an existing sales agent in Cloud Accounting web application.string
currencyRateRate of document currency against local currency.number
inclusiveTaxInclusive tax flag.boolean
isRoundAdjRounding adjustment flag. More information can be found here.boolean
paymentMethodPayment method. Value must be an existing payment method in Cloud Accounting web application.string
toBankRateConversion rate from document currency to payment method's bank account currency. More information can be found here.number
paymentAmtPayment amount.number
paymentRefPayment reference.string, maxLength(20)
ReferenceNumberOfCustomsFormNo1And9Reference Number of Customs Form No.1, 9, etc.string, maxLength(20)nullable
IncotermsIncoterms.string, maxLength(3)nullable
FreeTradeAgreementInformationFree Trade Agreement (FTA) Information.string, maxLength(100)nullable
AuthorisationNumberForCertifiedExporterAuthorisation Number for Certified Exporter.string, maxLength(100)nullable
ReferenceNumberOfCustomsFormNo2Reference Number of Customs Form No.2.string, maxLength(12)nullable
ShippingRecipientTaxEntityShipping recipient's tax entity.string, maxLength(100)nullable
FreightAllowanceChargeOther charges amount.numbernullable
FreightAllowanceChargeReasonReason of other charges.string, maxLength(300)nullable
submitEInvoiceSubmit e-Invoice.boolean
submitConsolidatedEInvoiceSubmit Consolidated e-Invoice.boolean
eInvoiceIssueDateTimee-Invoice issue datetime.datenullable
eInvoiceUuide-Invoice UUID.stringnullable
info

The paymentMethod, paymentAmt and paymentRef fields are used for quick payment action.

When partial payments are made, the remaining amount will be forwarded and an outstanding transaction will be created.

Example scenario

A customer buys $200 worth of products which will be collected 10 days later. The customer pays $100 upfront and will pay $100 upon picking up the products.

In this case paymentMethod is "CASH" and paymentAmt is 100.

The remaining $100 will be forwarded and an outstanding transaction of $100 will be created.