# Posted Sales Invoices _(Realtime-enabled)_

`GET` _(Table: Sales Invoice Header)_

```
eOne/core/v1.0/postedSalesInvoices
```

Read-only feed of posted sales invoice headers, the posted-transaction counterpart of the writable [Sales Invoices](https://eonesolutions.github.io/eone-bc-integration/core-salesInvoices.md) endpoint. Its `integrationId` is mirrored from the source order at post time, so you can fetch a posted invoice by your own store key; see [Posted Documents](https://eonesolutions.github.io/eone-bc-integration/posted-documents.md) for the read-only rationale and how lines work.

## Lines

Two selectable line collections, `$expand=salesInvoiceLines` for the lightweight lines, or `$expand=salesInvoiceTrackingLines` when you need serial/lot/package numbers (heavier, resolved per line). See [Posted Documents](https://eonesolutions.github.io/eone-bc-integration/posted-documents.md) for why tracking is a separate, costlier collection. `$expand=documentAttachments` for attached files.

> **Note:** Read-only. Filter with `$filter` on `number`, `orderNumber`, `sellToCustomerNumber`, `postingDate`, or your `integrationId`. `currencyCode` is blank for LCY.

## The work description

`workDescription` returns the free-text note the document was posted with. It is read-only here: the note belongs to the open document, and posting carries it across.

## Posted Sales Invoices fields

_API column → BC field._

**Legend**

- _(req)_ required on create
- _(res)_ resolver
- _(cur)_ currency-translated
- _(ro)_ read-only
- _(ext)_ added to this endpoint by another extension (BC field name shown; its API column name is not known here)

| API | BC field | Notes |
| --- | --- | --- |
| `id` | SystemId | BC record GUID; the OData key. _(ro)_ |
| `bcCompanyId` | bcCompanyId | The company this row belongs to - the same GUID that appears in the request URL. Present on every endpoint so a store pooling several companies can keep them apart without relying on which URL it called. _(ro)_ |
| `bcCompanyName` | bcCompanyName | The name of the company this row belongs to. _(ro)_ |
| `number` | No. | Posted invoice number. _(ro)_ |
| `integrationId` | EONE Integration Id | Your external key, mirrored from the order at post time by the post handler. _(ro)_ |
| `orderNumber` | Order No. | Originating sales order number. _(ro)_ |
| `postingDate` | Posting Date | _(ro)_ |
| `documentDate` | Document Date | _(ro)_ |
| `dueDate` | Due Date | _(ro)_ |
| `externalDocumentNumber` | External Document No. | _(ro)_ |
| `yourReference` | Your Reference | _(ro)_ |
| `workDescription` | workDescription | The free-text work description the document was posted with. _(ro)_ |
| `sellToCustomerNumber` | Sell-to Customer No. | _(ro)_ |
| `sellToCustomerName` | Sell-to Customer Name | _(ro)_ |
| `billToCustomerNumber` | Bill-to Customer No. | _(ro)_ |
| `billToName` | Bill-to Name | _(ro)_ |
| `currencyCode` | Currency Code | Blank means the local currency (LCY). _(cur)_ |
| `amount` | Amount | Net of tax. _(ro)_ |
| `amountIncludingTax` | Amount Including VAT | _(ro)_ |
| `pricesIncludingTax` | Prices Including VAT | _(ro)_ |
| `paymentTermsCode` | Payment Terms Code | _(ro)_ |
| `paymentMethodCode` | Payment Method Code | _(ro)_ |
| `salespersonCode` | Salesperson Code | _(ro)_ |
| `locationCode` | Location Code | _(ro)_ |
| `shortcutDimension1Code` | Shortcut Dimension 1 Code | See dimensions. _(ro)_ |
| `shortcutDimension2Code` | Shortcut Dimension 2 Code | See dimensions. _(ro)_ |
| `dimensionSetId` | Dimension Set ID | The dimension set this record carries. Join it to the dimensionSetEntries endpoint to resolve the full set of dimension codes and values, including any beyond the eight shortcut dimension columns. _(ro)_ |
| `lastModifiedDateTime` | SystemModifiedAt | _(ro)_ |

## Related pages

Collections nested under this endpoint:

- [Posted Sales Invoice Lines](https://eonesolutions.github.io/eone-bc-integration/core-postedSalesInvoiceLines.md)
- [Posted Sales Invoice Tracking Lines](https://eonesolutions.github.io/eone-bc-integration/core-postedSalesInvoiceTrackingLines.md)
