Invoice
Represents an invoice issued to a customer for products or services.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier for the record. | |
| OwnerId | String | False |
ID of the user who owns the record. | |
| IsDeleted | Bool | True |
Indicates whether the record has been moved to the Recycle Bin. | |
| DocumentNumber | String | True |
Document identification number. | |
| CurrencyIsoCode | String | False |
ISO code for the currency in which the revenue amount is expressed. | |
| CreatedDate | Datetime | True |
Date and time when the record was created. | |
| CreatedById | String | True |
User.Id |
ID of the user who created the record. |
| LastModifiedById | String | True |
User.Id |
ID of the user who last modified the record. |
| LastViewedDate | Datetime | True |
Date and time when the record was last viewed in the user interface. | |
| LastReferencedDate | Datetime | True |
Date and time when the record was last referenced. | |
| ReferenceEntityId | String | False |
ID of the ReferenceEntity associated with this record. | |
| InvoiceNumber | String | False |
Invoice identification number. | |
| BillingAccountId | String | False |
Account.Id |
ID of the BillingAccount associated with this record. |
| TotalAmount | Decimal | True |
Total amount of the invoice. | |
| TotalAmountWithTax | Decimal | True |
Total amount of the invoice, including tax. | |
| TotalChargeAmount | Decimal | True |
Total charge amount included on the invoice. | |
| TotalAdjustmentAmount | Decimal | True |
Total adjustment amount applied to the invoice. | |
| TotalTaxAmount | Decimal | True |
Total tax amount included on the invoice. | |
| Status | String | True |
Status of the record. | |
| InvoiceDate | Date | False |
Date associated with Invoice. | |
| DueDate | Date | False |
Due date for the task or activity. | |
| BillToContactId | String | False |
Contact.Id |
ID of the BillToContact associated with this record. |
| Description | String | False |
Text description of the record. | |
| Balance | Decimal | True |
Field containing Balance information. | |
| TaxLocaleType | String | False |
Type classification for TaxLocale. | |
| TotalChargeTaxAmount | Decimal | True |
Field containing TotalChargeTaxAmount information. | |
| TotalChargeAmountWithTax | Decimal | True |
Field containing TotalChargeAmountWithTax information. | |
| TotalAdjustmentTaxAmount | Decimal | True |
Field containing TotalAdjustmentTaxAmount information. | |
| TotalAdjustmentAmountWithTax | Decimal | True |
Field containing TotalAdjustmentAmountWithTax information. | |
| NetCreditsApplied | Decimal | True |
Net amount of credits applied to the invoice. | |
| NetPaymentsApplied | Decimal | True |
Net amount of payments applied to the invoice. | |
| IsInvoiceLocked | Bool | True |
Indicates whether the record has the InvoiceLocked characteristic. | |
| InvoiceLockedDateTime | Datetime | True |
Field containing InvoiceLockedDateTime information. | |
| WriteOffStatus | String | True |
Status of the WriteOff. | |
| WriteOffTotalChargeAmount | Decimal | True |
Field containing WriteOffTotalChargeAmount information. | |
| WriteOffTotalTaxAmount | Decimal | True |
Field containing WriteOffTotalTaxAmount information. | |
| TotalTaxesCapturedAtHeader | Decimal | False |
Total tax amount captured at the header level of the invoice. | |
| SystemModstamp | Datetime | True |
Date and time when the record was last modified by a user or by an automated process. | |
| LastModifiedDate | Datetime | True |
Date and time when the record was last modified. |
Pseudocolumns
Pseudocolumn fields are used in the WHERE clause of SELECT statements and offer more granular control over the data returned from the data source.
| Name | Type | Description |
| OwnerIdType | String |
Specifies the type of the 'OwnerId' polymorphic field to use in the statement. |
| OwnerIdExternalFieldName | String |
Specifies the external field name of the 'OwnerId' polymorphic field to use in an INSERT/UPDATE/UPSERT statement |
| ReferenceEntityIdType | String |
Specifies the type of the 'ReferenceEntityId' polymorphic field to use in the statement. |
| ReferenceEntityIdExternalFieldName | String |
Specifies the external field name of the 'ReferenceEntityId' polymorphic field to use in an INSERT/UPDATE/UPSERT statement |
| SOQL | String |
Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. |
| ExternalIdColumn | String |
Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. |
| FilterScope | String |
Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. |