Invoice

An invoice transaction creates a bill for goods, services (or both) sold to a customer for which payment is not received at the time of delivery. The invoice indicates terms of payment that specify payment is to be received. Invoice aging tracks how long the amount has been due as payable. Each invoice consists of multiple line items whose sales amounts add up to the total of the invoice. Companies that bill costs back to customers can identify billable costs, mark them up and add them to invoices.

For more details about this type of transaction, see Custom Workflow Based Invoice Approval.

The invoice record is defined in the tranSales (sales) XSD.

Supported Operations

The following operations can be used with the invoice record:

add | addList | attach / detach | delete | deleteList | get | getDeleted | getList | getSavedSearch | getSelectValue | initialize / initializeList | search | update | updateList | upsert | upsertList

Note:

You can also use the asynchronous equivalents of SOAP web services list operations. For information about asynchronous operations, see SOAP Web Services Asynchronous Operations. For more information about request processing, see Synchronous Versus Asynchronous Request Processing.

Field Definitions

The SOAP Schema Browser includes definitions for all body fields, sublist fields, search filters, and search joins available to this record. For details, see the SOAP Schema Browser’s invoice reference page.

Note:

For information about using the SOAP Schema Browser, see SOAP Schema Browser.

Usage Notes

Initializing Invoices

You can initialize an invoice from a Customer, an Estimate/Quote, an Opportunity, or a Sales Order.

The SOAP web services initialize operation emulates the UI workflow by prepopulating fields on transaction line items with values from a related record. For information about creating a single invoice from multiple sales orders, see Creating Invoices or Cash Sales from Sales Orders. For more information about the initialize operation, see initialize / initializeList.

Working with Invoice Sublists

The SOAP Schema Browser includes all sublists associated with the Invoice record. See the following information for usage notes regarding specific Invoice sublists. Usage notes are not provided for every sublist type.

InvoiceSalesTeamList

The InvoiceSalesTeam list defines the sales team for a specific invoice. This list is only available when the Team Selling feature is enabled in the account.

On add, a single line item is entered by default when a sales rep is currently associated with the entity set in the entity field. When a sales group is currently associated with the entity, the list is populated by the group.

InvoiceItemCostList

These fields map to the Billable Items subtab on the Item list of an invoice record. This is where you define how and when to bill item costs back to a customer. Billing items back to customers enables you to purchase items and supplies for an order or job, and then bill the cost to the customer. The Bill Costs To Customers feature must be enabled to use this list.

InvoiceExpCostList

These fields map to the Billable Expenses subtab on the Item list of an invoice record. This is where you define how and when to bill expenses back to a customer. The Bill Costs To Customers feature must be enabled to use this list.

InvoiceTimeList

These fields map to the Billable Time subtab on the Item list of an invoice record. This is where you define how and when to bill time back to a customer. The Bill Costs To Customers feature must be enabled to use this list.

GiftCertRedemptionList

This sublist is available on the invoice, sales order, and cash sale records.

Associating Invoices with Opportunities

You can associate estimates, cash sales, sales orders, and invoices with opportunities. After a transaction other than an estimate is associated with an opportunity, the opportunity's status is automatically set to Closed Won. After an opportunity's status is set to Closed Won, it is no longer available to be selected on other cash sale, sales order, or invoice records.

Accessing Serial/Lot or Bin Data for Line Items

As of the 2011.2 endpoint, code to access serial number, lot number, and bin number data varies according to whether the Advanced Bin Management / Numbered Inventory Management feature is enabled.

For more details, see Updating SOAP Web Services Code When Advanced Bin / Numbered Inventory Management is Enabled.

Related Topics

General Notices