InvoiceOrder

Property Type Description
OrderId Int32 Can be specified in requests to SaveInvoices, otherwise set by the system. If an existing orderId is set the request is treated as an update for an InvoiceOrder. Default value: Int32.MinValue
CustomerId Int32 Required. Must exist in system. Default value: Int32.MinValue
CustomerName String Default value: “”. Max length 100 characters.
CustomerDeliveryName String Default value: “”Use this property for the Customer delivery name. the Delivery Name property under ‘Addresses’ cannot be used for this purpose.
DeliveryAlternative String Default value: “”. Max length 250 characters
Addresses Common.Addresses Default value: null
OrderStatus OrderSlipStateType Default value: Web
InvoiceId Int32 Cannot be specified in requests to SaveInvoices, this is always defined by the system. Default value: Int32.MinValue
DateOrdered DateTime Default value: DateTime.MinValue
DateInvoiced DateTime Default value: DateTime.MinValue
PaymentTime Int32 Default value: Int32.MinValue (Customer default), 0: number of days, 0: no credit time, -1: end of month + 30 days, -2: end of month + 60 days, -3: end of month + 90 days, -4: end of month
CustomerReferenceNo String Default value: “”. Max length 50 characters
ProjectId Int32 If set, must exist in system. Default value: Int32.MinValue
OurReference Int32 EmployeeId. If set, must exist in system. Default value: Int32.MinValue
IncludeVAT Boolean? Default value: null
YourReference String Default value: “”. Max length 50 characters
OrderTotalIncVat Decimal Default value: Decimal.MinValue. Read only
OrderTotalVat Decimal Default value: Decimal.MinValue. Read only
InvoiceTitle String Default value: “”. Max length 300 characters
InvoiceText String Default value: “”. Max length 750 characters
Paid DateTime Default value: DateTime.MinValue
OCR String Default value: “”
CustomerOrgNo String Default value: “”
Currency Currency Default value: null
PaymentMethodId Int32 Default value: Int32.MinValue
PaymentAmount Decimal Default value: Decimal.MinValue
ProductionManagerId Int32 If set, must exist in system. Default value: Int32.MinValue
SalesOpportunityId Int32 If set, must exist in system. Default value: Int32.MinValue
TypeOfSaleId Int32 Default value: Int32.MinValue
Distributor Common.Distributor Default value: Default
DistributionMethod Common.DistributionMethod Default value: Unchanged
DepartmentId Int32 If set, must exist in system. Default value: Int32.MinValue
ExternalStatus Int32 Default value: Int32.MinValue
DeliveryDate DateTime Default value: DateTime.MinValue
SkipStock Boolean Default value: false
ProductionNumber String Default value: “”. Max length 20 characters
ReferenceInvoiceId Int32 Default value: Int32.MinValue. Used for reference to original invoice when making a credit note.
ReferenceOrderId Int32 Default value: Int32.MinValue. Used for reference to original order when making a credit note.
ReferenceNumber String Default value: “”. Max length 50 characters
InvoiceEmailAddress String Default value: “”
AccrualDate DateTime Default value: DateTime.MinValue
AccrualLength Int32 Default value: Int32.MinValue
RoundFactor Decimal Default value: Decimal.MinValue. May be set to 0.1, 0.5 or 1.0
InvoiceTemplateId Guid Default value: 00000000-0000-0000-0000-000000000000
VippsNumber String Default value: “”
DeliveryMethod Common.DeliveryMethod Default value: null
SendToFactoring Boolean? Default value: true
InvoiceRows InvoiceRow[] Default value: null
APIException Common.APIException Default value: null

InvoiceSearchParameters

CustomerIdsInt32[]Max 1000 values. Default value: null

Property Type Description
ChangedAfter DateTime Default value: DateTime.MinValue
InvoiceIds Int32[] Max 1000 values. Default value: null
OrderIds Int32[] Max 1000 values. Default value: null
OrderStates Office24Seven.Library.Economy.Invoice.OrderSlipStateType[] Default value: null

 

InvoiceRow

Property Type Description
ProductId Int32 Required for Row Type Normal. Must exist in system. Default value: Int32.MinValue
RowId Int32 Used when editing an already existing order. Default value: Int32.MinValue
VatRate Decimal Default value: Decimal.MinValue. Read only
Price Decimal Default value: Decimal.MinValue
Name String Default value: “”. Max length 300 characters
DiscountRate Decimal Default value: Decimal.MinValue
Quantity Decimal Default value: Decimal.MinValue
Cost Decimal Default value: Decimal.MinValue
InPrice Decimal Default value: Decimal.MinValue
SequenceNumber Int16 Default value: Int16.MinValue
Hidden Boolean Default value: false. Makes the row hidden on the actual invoice statement.
Type RowType Normal or Text. Default value: Normal. Please note that TextBold is deprecated
AccrualDate DateTime Default value: DateTime.MinValue
AccrualLength Int32 Default value: Int32.MinValue
ChangeState ChangeState This property must be used when editing an already exisiting order. Default value: ChangeState.None
TypeGroupId Int32

DistributionLog

Property Type Description
DateReg DateTime
Status Office24Seven.Library.InvoiceDistributionLogStatus
DistributionMethodId Int32
StatusText String
Id Int32
InvoiceId Int64
DateInvoiced DateTime

TemplateModel

Property Type Description
FileName String Template File name
Name String Template name
Id Guid Template Id, used for specifying templates in SaveInvoices
Language String Two character country code
IsSystemTemplate Boolean System Templates are standard templates set up in the system
IsDefault Boolean Specifies if Template is set as default. Multiple Templates can be set to default
Modified DateTime Last date modified
Customers Int[] An array of CustomerIds that are linked to the Invoice Template