UpdateUnissuedInvoice

Updates the various details associated with an unissued invoice. Unissued invoices can be uniquely identified with an invoice number.

Request

The service request contains: 

Name

Data Type

Required?

Default Value

Description

InvoiceNumber

String(20)

yes


The invoice number is a unique identifier for an Invoice.

InvoiceName

String (100)

no


The name of the invoice. This is not a unique identifier for an invoice.

InvoiceDate

DateTime

no


This date is used to determine the accounting period that the invoice issue transaction will be placed in when it is queued for transmission to the accounting system. This date is also used as the start date for payment terms, such as net 30.

PurchaseOrderNumber

string

no


The optional purchase order number associated with this invoice

BillingInstructions

String (1000)

no


Optional workflow Instructions to people within your organization regarding this invoice. These instructions will not appear on the invoice.

TaxTypeCode1

Int32

no


The code of the first tax type to be applied to the invoice

TaxableAmount1

Double

no

0

The tax amount to be applied to the invoice in association with the first tax type code (see above)

TaxTypeCode2

Int32

no


The code of the second tax type to be applied to the invoice

TaxableAmount2

Double

no

0

The tax amount to be applied to the invoice in association with the second tax type code (see above)

TaxTypeCode3

Int32

no


The code of the third tax type to be applied to the invoice

TaxableAmount3Doubleno0The tax amount to be applied to the invoice in association with the third tax type code (see above)
InvoiceTimestampStringno
This is a Base64 encoded timestamp optionally utilized for time card locking. If specified, it must match the existing timestamp on the invoice or the save operation will fail
ApprovedByFinanceFlagBooleannofalseIf set to 'true', the invoice will be considered to be approved by finance
ApprovedByPMFlagBooleannofalseIf set to 'true', the invoice will be considered to be approved by project management
ApprovedByMgmtFlagBooleannofalseIf set to 'true', the invoice will be considered to be approved by management
InvoiceDateClearFlagBooleannofalseIf set to 'true', the invoice date will be set to null
PurchaseOrderNumberClearFlagBooleannofalseIf set to 'true,' the purchase order number will be set to null
BillingInstructionsClearFlagBooleannofalseIf set to 'true, the billing instructions will be set to null
Tax1ClearFlagBooleannofalseIf set to 'true', the tax type code for the first tax type will be set to null
Tax2ClearFlagBooleannofalseIf set to 'true', the tax type code for the second tax type will be set to null
Tax3ClearFlagBooleannofalseIf set to 'true', the tax type code for the third tax type will be set to null
StealLockFlagBooleannofalseIf set to 'true', any locks on the invoice will be stolen if it is currently locked, otherwise, if it is set to 'false' and a lock is in place the service will fail
addressAttentionString (50)no
The intended recipient / department of the invoice
addressCompanyNameString (50)no
The company name in the address
addressLine1String (50)no
The primary address information (i.e. Street Address)
addressLine2String (50)no
The secondary address information (i.e. Apartment Number or Floor)
addressCityString (50)no
The city name
addressStateOrProvinceString (20)no
The state or province name
addressZipOrPostalCodeString (20)no
The zip or postal code
addressCountryString (20)no
The country name
addressClearFlagBooleannofalseIf set to 'true', the fields associated with invoice address will be set to null

Response

The following data is returned (in addition to what is documented in Responses describing the common elements of each web service response): 



Name

Data Type

Description

Example Data

InvoiceTimestamp

StringThe current timestamp (row version) of the invoice, in Base64 format. This can be used for optimistic locking.

LockOwnerDisplayName

String (90)

The display name of the user that is currently holding lock on the invoice

John Doe