---
id: object/page/30012
type: object
title: Page 30012 "APIV2 - Sales Invoices"
summary: Page 30012 "APIV2 - Sales Invoices" in APIV2 (Microsoft.API.V2). 6 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - apiv2
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 4b726e0d54d3d4a2b9dbf10ff561e5df4cdb05ec556101ff01dd877a3545a406
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV2/app/src/pages/APIV2SalesInvoices.Page.al
    title: src/Apps/W1/APIV2/app/src/pages/APIV2SalesInvoices.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesInvoice_create
    title: Create salesInvoices
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_delete
    title: Delete salesInvoices
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_get
    title: Get salesInvoices
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_pdfdocument
    title: Get salesInvoice pdfDocument
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_update
    title: Update salesInvoices
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_salesinvoice
    title: salesInvoice resource type
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesInvoice_create
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_delete
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_pdfdocument
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_update
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_salesinvoice
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 30012
name: APIV2 - Sales Invoices
namespace: Microsoft.API.V2
app: APIV2
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_salesInvoice_create.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_delete.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_get.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_pdfdocument.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_update.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/resources/dynamics_salesinvoice.md
counts:
  fields: 0
  procedures: 29
  events: 0
  subscribers: 0
  controls: 61
  actions: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 0
  implements: 0
---

# Page 30012 "APIV2 - Sales Invoices"

> Page 30012 "APIV2 - Sales Invoices" in APIV2 (Microsoft.API.V2). 6 public procedures. Introduced in BC29, still in BC30.

APIV2 · Microsoft.API.V2 · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV2/app/src/pages/APIV2SalesInvoices.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Extensible | false |
| SourceTable | Sales Invoice Entity Aggregate |
| PageType | API |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| Group | Id | [Id](../table/5475.md#fields) | — |
|  | No. | [No.](../table/5475.md#fields) | — |
|  | External Document No. | [External Document No.](../table/5475.md#fields) | — |
|  | Invoice Date | [Document Date](../table/5475.md#fields) | — |
|  | Posting Date | [Posting Date](../table/5475.md#fields) | — |
|  | Due Date | [Due Date](../table/5475.md#fields) | — |
|  | Promised Pay Date | [Promised Pay Date](../table/5475.md#fields) | — |
|  | Customer Purchase Order Reference | [Your Reference](../table/5475.md#fields) | — |
|  | Customer Id | [Customer Id](../table/5475.md#fields) | — |
|  | Customer No. | [Sell-to Customer No.](../table/5475.md#fields) | — |
|  | Customer Name | [Sell-to Customer Name](../table/5475.md#fields) | — |
|  | Bill-To Name | [Bill-to Name](../table/5475.md#fields) | — |
|  | Bill-To Customer Id | [Bill-to Customer Id](../table/5475.md#fields) | — |
|  | Bill-To Customer No. | [Bill-to Customer No.](../table/5475.md#fields) | — |
|  | Ship-to Name | [Ship-to Name](../table/5475.md#fields) | — |
|  | Ship-to Contact | [Ship-to Contact](../table/5475.md#fields) | — |
|  | Sell-to Address Line 1 | [Sell-to Address](../table/5475.md#fields) | — |
|  | Sell-to Address Line 2 | [Sell-to Address 2](../table/5475.md#fields) | — |
|  | Sell-to City | [Sell-to City](../table/5475.md#fields) | — |
|  | Sell-to Country/Region Code | [Sell-to Country/Region Code](../table/5475.md#fields) | — |
|  | Sell-to State | [Sell-to County](../table/5475.md#fields) | — |
|  | Sell-to Post Code | [Sell-to Post Code](../table/5475.md#fields) | — |
|  | Bill-to Address Line 1 | [Bill-to Address](../table/5475.md#fields) | — |
|  | Bill-to Address Line 2 | [Bill-to Address 2](../table/5475.md#fields) | — |
|  | Bill-to City | [Bill-to City](../table/5475.md#fields) | — |
|  | Bill-to Country/Region Code | [Bill-to Country/Region Code](../table/5475.md#fields) | — |
|  | Bill-to State | [Bill-to County](../table/5475.md#fields) | — |
|  | Bill-to Post Code | [Bill-to Post Code](../table/5475.md#fields) | — |
|  | Ship-to Address Line 1 | [Ship-to Address](../table/5475.md#fields) | — |
|  | Ship-to Address Line 2 | [Ship-to Address 2](../table/5475.md#fields) | — |
|  | Ship-to City | [Ship-to City](../table/5475.md#fields) | — |
|  | Ship-to Country/Region Code | [Ship-to Country/Region Code](../table/5475.md#fields) | — |
|  | Ship-to State | [Ship-to County](../table/5475.md#fields) | — |
|  | Ship-to Post Code | [Ship-to Post Code](../table/5475.md#fields) | — |
|  | Currency Id | [Currency Id](../table/5475.md#fields) | — |
|  | Shortcut Dimension 1 Code | [Shortcut Dimension 1 Code](../table/5475.md#fields) | — |
|  | Shortcut Dimension 2 Code | [Shortcut Dimension 2 Code](../table/5475.md#fields) | — |
|  | Currency Code | `CurrencyCodeTxt` | — |
|  | Order Id | [Order Id](../table/5475.md#fields) | — |
|  | Order No. | [Order No.](../table/5475.md#fields) | — |
|  | Payment Terms Id | [Payment Terms Id](../table/5475.md#fields) | — |
|  | Shipment Method Id | [Shipment Method Id](../table/5475.md#fields) | — |
|  | Salesperson | [Salesperson Code](../table/5475.md#fields) | — |
|  | Dispute Status Id | [Dispute Status Id](../table/5475.md#fields) | — |
|  | Dispute Status | [Dispute Status](../table/5475.md#fields) | — |
|  | Prices Include Tax | [Prices Including VAT](../table/5475.md#fields) | — |
|  | Remaining Amount | `RemainingAmountVar` | — |
|  | Dimension Set Lines | part [Page 30022 "APIV2 - Dimension Set Lines"](../page/30022.md) | — |
|  | Lines | part [Page 30043 "APIV2 - Sales Invoice Lines"](../page/30043.md) | — |
|  | PDF Document | part [Page 30056 "APIV2 - PDF Document"](../page/30056.md) | — |
|  | Discount Amount | [Invoice Discount Amount](../table/5475.md#fields) | — |
|  | Discount Applied Before Tax | [Discount Applied Before Tax](../table/5475.md#fields) | — |
|  | Total Amount Excluding Tax | [Amount](../table/5475.md#fields) | — |
|  | Total Tax Amount | [Total Tax Amount](../table/5475.md#fields) | — |
|  | Total Amount Including Tax | [Amount Including VAT](../table/5475.md#fields) | — |
|  | Status | [Status](../table/5475.md#fields) | — |
|  | Last Modified Date | `Rec.SystemModifiedAt` | — |
|  | Phone No. | [Sell-to Phone No.](../table/5475.md#fields) | — |
|  | Email | [Sell-to E-Mail](../table/5475.md#fields) | — |
|  | Attachments | part [Page 30039 "APIV2 - Attachments"](../page/30039.md) | — |
|  | Document Attachments | part [Page 30080 "APIV2 - Document Attachments"](../page/30080.md) | — |

## Procedures

- `Post(var ActionContext: WebServiceActionContext)`
- `PostAndSend(var ActionContext: WebServiceActionContext)`
- `Send(var ActionContext: WebServiceActionContext)`
- `Cancel(var ActionContext: WebServiceActionContext)`
- `CancelAndSend(var ActionContext: WebServiceActionContext)`
- `MakeCorrectiveCreditMemo(var ActionContext: WebServiceActionContext)`

Plus 23 local procedures.

## Triggers

OnAfterGetRecord, OnDeleteRecord, OnInsertRecord, OnModifyRecord, OnNewRecord, OnOpenPage

## Relations

- source table [Table 5475 "Sales Invoice Entity Aggregate"](../table/5475.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 5477 "Sales Invoice Aggregator"](../codeunit/5477.md) (12 calls: `Cancel → GetSalesInvoiceHeaderId`, `CancelAndSend → GetSalesInvoiceHeaderId`, `GetPostedInvoice → GetSalesInvoiceHeaderFromId`, …)
- [Codeunit 1303 "Correct Posted Sales Invoice"](../codeunit/1303.md) (3 calls: `CancelInvoice → (object)`, `CheckInvoiceCanBeCanceled → TestCorrectInvoiceIsAllowed`, `MakeCorrectiveCreditMemo → CreateCreditMemoCopyDocument`)
- [Codeunit 2135 "O365 Setup Email"](../codeunit/2135.md) (3 calls: `SendCanceledInvoice → CheckMailSetup`, `SendDraftInvoice → CheckMailSetup`, `SendPostedInvoice → CheckMailSetup`)
- [Codeunit 1320 "Lines Instruction Mgt."](../codeunit/1320.md) (2 calls: `PostInvoice → SalesCheckAllLinesHaveQuantityAssigned`, `SendDraftInvoice → SalesCheckAllLinesHaveQuantityAssigned`)
- [Codeunit 30038 "APIV2 - Send Sales Document"](../codeunit/30038.md) (2 calls: `PostInvoice → CheckDocumentIfNoItemsExists`, `SendDraftInvoice → CheckDocumentIfNoItemsExists`)
- [Codeunit 453 "Job Queue - Enqueue"](../codeunit/453.md) (1 call: `SendCanceledInvoice → (object)`)
- [Codeunit 5465 "Graph Mgt - General Tools"](../codeunit/5465.md) (1 call: `SetCalculatedFields → TranslateNAVCurrencyCodeToCurrencyCode`)
- [Codeunit 56 "Sales - Calc Discount By Type"](../codeunit/56.md) (1 call: `UpdateDiscount → ApplyInvDiscBasedOnAmt`)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Documented on Microsoft Learn

- [Create salesInvoices](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesInvoice_create)
- [Delete salesInvoices](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_delete)
- [Get salesInvoices](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_get)
- [Get salesInvoice pdfDocument](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_pdfdocument)
- [Update salesInvoices](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_salesinvoice_update)
- [salesInvoice resource type](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_salesinvoice)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "page", object_name: "APIV2 - Sales Invoices")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
