---
schema_version: "1"
id: d179387d48b27134c4b2107970b3d89a3b10404679eb9ea13dfdeed21a498d7b
title: SalesforceInvoice
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_salesforceinvoice.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_salesforceinvoice.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fa69102b38297dd4bab66c2c6ae2aeb6dd35b93ca1b0735e7c56eedc3472eb21
description: Read-only virtual object used in the Your Account App. Represents information about your organization’s invoices with Salesforce.
---
# SalesforceInvoice

Read-only virtual object used in the Your Account App. Represents information about your organization’s invoices with Salesforce.

## Supported Calls

describeLayout(), describeSObjects(), query()

## Fields

| Field | Details |
| --- | --- |
| Balance | 
Type

double

Properties

Filter, Nillable, Sort

Description

The outstanding balance for this invoice. Equal to the invoice’s total amount with tax, ignoring payments and adjustments.



 |
| DueDate | 

Type

date

Properties

Filter, Group, Nillable, Sort

Description

The customer must pay the invoice by the due date. Unpaid invoices past the due date can be sent to collections.



 |
| ExternalId | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

External reference ID set by Salesforce.



 |
| InvoiceCurrency | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Currency associated with this invoice.



 |
| InvoiceDate | 

Type

date

Properties

Filter, Group, Nillable, Sort

Description

The date that the invoice was posted. Used with payment terms to determine the invoice’s DueDate. For example, an invoice with an InvoiceDate of April 1 and Net 30 payment terms would have a DueDate of May 1.



 |
| InvoiceNumber | 

Type

string

Properties

Filter, Group, idLookup, Nillable, Sort

Description

System-created ID for this invoice.



 |
| SalesforceContractId | 

Type

reference

Properties

Filter, Group, Nillable, Sort

Description

Salesforce Contract ID

This field is a relationship field.

Relationship Name

SalesforceContract

Relationship Type

Lookup

Refers To

SalesforceContract



 |
| SalesforceInvoiceStatus | 

Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The state of the invoice.

Possible values are:

- DueSoon—
- Paid
- PastDue—
- Pending





 |
| TotalAmount | 

Type

double

Properties

Filter, Nillable, Sort

Description

The sum TotalAmount of the invoice items.



 |

## Usage

Used by Your Account to manage invoices for your organization’s Salesforce contract. Read-only.

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[SalesforceContract](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_salesforcecontract.htm "Read-only virtual object used in the Your Account App. Represents contract information related to your organization’s Salesforce subscription.")

[SalesforcePayment](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_salesforcepayment.htm "Read-only virtual object used in the Your Account App. Represents information about payments related to your organization’s Salesforce invoice.")

[SalesforceQuote](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_salesforcequote.htm "Read-only virtual object used in the Your Account App. Represents information about your organization’s quotes with Salesforce.")