---
id: object/page/30066
type: object
title: Page 30066 "APIV2 - Purchase Orders"
summary: Page 30066 "APIV2 - Purchase Orders" in APIV2 (Microsoft.API.V2). 1 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: 510ccb49306b4c5d2d90563ecffc5a691695acf4d399ddcf5cf002cef1790425
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV2/app/src/pages/APIV2PurchaseOrders.Page.al
    title: src/Apps/W1/APIV2/app/src/pages/APIV2PurchaseOrders.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_purchaseorder_create
    title: Create purchaseOrders
    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_purchaseorder_delete
    title: Delete purchaseOrders
    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_purchaseorder_get
    title: Get purchaseOrders
    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_purchaseorder_update
    title: Update purchaseOrders
    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_purchaseorder
    title: purchaseOrder 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_purchaseorder_create
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_delete
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_update
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_purchaseorder
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 30066
name: APIV2 - Purchase Orders
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_purchaseorder_create.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_delete.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_get.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_update.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/resources/dynamics_purchaseorder.md
counts:
  fields: 0
  procedures: 11
  events: 0
  subscribers: 0
  controls: 52
  actions: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 5
  called_by: 0
  implements: 0
---

# Page 30066 "APIV2 - Purchase Orders"

> Page 30066 "APIV2 - Purchase Orders" in APIV2 (Microsoft.API.V2). 1 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/APIV2PurchaseOrders.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Extensible | false |
| SourceTable | Purchase Order Entity Buffer |
| 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/5496.md#fields) | — |
|  | No. | [No.](../table/5496.md#fields) | — |
|  | Order Date | [Document Date](../table/5496.md#fields) | — |
|  | Posting Date | [Posting Date](../table/5496.md#fields) | — |
|  | Vendor Id | [Vendor Id](../table/5496.md#fields) | — |
|  | Vendor No. | [Buy-from Vendor No.](../table/5496.md#fields) | — |
|  | Vendor Name | [Buy-from Vendor Name](../table/5496.md#fields) | — |
|  | Pay-to Name | [Pay-to Name](../table/5496.md#fields) | — |
|  | Pay-to Vendor Id | [Pay-to Vendor Id](../table/5496.md#fields) | — |
|  | Pay-to Vendor No. | [Pay-to Vendor No.](../table/5496.md#fields) | — |
|  | Ship-to Name | [Ship-to Name](../table/5496.md#fields) | — |
|  | Ship-to Contact | [Ship-to Contact](../table/5496.md#fields) | — |
|  | Buy-from Address Line 1 | [Buy-from Address](../table/5496.md#fields) | — |
|  | Buy-from Address Line 2 | [Buy-from Address 2](../table/5496.md#fields) | — |
|  | Buy-from City | [Buy-from City](../table/5496.md#fields) | — |
|  | Buy-from Country/Region Code | [Buy-from Country/Region Code](../table/5496.md#fields) | — |
|  | Buy-from State | [Buy-from County](../table/5496.md#fields) | — |
|  | Buy-from Post Code | [Buy-from Post Code](../table/5496.md#fields) | — |
|  | Pay-to Address Line 1 | [Pay-to Address](../table/5496.md#fields) | — |
|  | Pay-to Address Line 2 | [Pay-to Address 2](../table/5496.md#fields) | — |
|  | Pay-to City | [Pay-to City](../table/5496.md#fields) | — |
|  | Pay-to Country/Region Code | [Pay-to Country/Region Code](../table/5496.md#fields) | — |
|  | Pay-to State | [Pay-to County](../table/5496.md#fields) | — |
|  | Pay-to Post Code | [Pay-to Post Code](../table/5496.md#fields) | — |
|  | Ship-to Address Line 1 | [Ship-to Address](../table/5496.md#fields) | — |
|  | Ship-to Address Line 2 | [Ship-to Address 2](../table/5496.md#fields) | — |
|  | Ship-to City | [Ship-to City](../table/5496.md#fields) | — |
|  | Ship-to Country/Region Code | [Ship-to Country/Region Code](../table/5496.md#fields) | — |
|  | Ship-to State | [Ship-to County](../table/5496.md#fields) | — |
|  | Ship-to Post Code | [Ship-to Post Code](../table/5496.md#fields) | — |
|  | Shortcut Dimension 1 Code | [Shortcut Dimension 1 Code](../table/5496.md#fields) | — |
|  | Shortcut Dimension 2 Code | [Shortcut Dimension 2 Code](../table/5496.md#fields) | — |
|  | Currency Id | [Currency Id](../table/5496.md#fields) | — |
|  | Currency Code | `CurrencyCodeTxt` | — |
|  | Prices Include Tax | [Prices Including VAT](../table/5496.md#fields) | — |
|  | Payment Terms Id | [Payment Terms Id](../table/5496.md#fields) | — |
|  | Shipment Method Id | [Shipment Method Id](../table/5496.md#fields) | — |
|  | Purchaser | [Purchaser Code](../table/5496.md#fields) | — |
|  | Requested Receipt Date | [Requested Receipt Date](../table/5496.md#fields) | — |
|  | Lines | part [Page 30067 "APIV2 - Purchase Order Lines"](../page/30067.md) | — |
|  | Discount Amount | [Invoice Discount Amount](../table/5496.md#fields) | — |
|  | Discount Applied Before Tax | [Discount Applied Before Tax](../table/5496.md#fields) | — |
|  | Total Amount Excluding Tax | [Amount](../table/5496.md#fields) | — |
|  | Total Tax Amount | [Total Tax Amount](../table/5496.md#fields) | — |
|  | Total Amount Including Tax | [Amount Including VAT](../table/5496.md#fields) | — |
|  | Fully Received | [Completely Received](../table/5496.md#fields) | — |
|  | Status | [Status](../table/5496.md#fields) | — |
|  | Last Modified Date | `Rec.SystemModifiedAt` | — |
|  | PDF Document | part [Page 30056 "APIV2 - PDF Document"](../page/30056.md) | — |
|  | Attachments | part [Page 30039 "APIV2 - Attachments"](../page/30039.md) | — |
|  | Dimension Set Lines | part [Page 30022 "APIV2 - Dimension Set Lines"](../page/30022.md) | — |
|  | Document Attachments | part [Page 30080 "APIV2 - Document Attachments"](../page/30080.md) | — |

## Procedures

- `ReceiveAndInvoice(var ActionContext: WebServiceActionContext)`

Plus 10 local procedures.

## Triggers

OnAfterGetRecord, OnDeleteRecord, OnInsertRecord, OnModifyRecord, OnNewRecord, OnOpenPage

## Relations

- source table [Table 5496 "Purchase Order Entity Buffer"](../table/5496.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 5497 "Graph Mgt - Purch Order Buffer"](../codeunit/5497.md) (6 calls: `OnAfterGetRecord → RedistributeInvoiceDiscounts`, `OnDeleteRecord → PropagateOnDelete`, `OnInsertRecord → PropagateOnInsert`, …)
- [Codeunit 1320 "Lines Instruction Mgt."](../codeunit/1320.md) (1 call: `PostInvoice → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Codeunit 5465 "Graph Mgt - General Tools"](../codeunit/5465.md) (1 call: `SetCalculatedFields → TranslateNAVCurrencyCodeToCurrencyCode`)
- [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) (1 call: `ReceiveAndInvoice → GetPurchaseInvoiceHeaderId`)
- [Codeunit 66 "Purch - Calc Disc. By Type"](../codeunit/66.md) (1 call: `UpdateDiscount → ApplyInvDiscBasedOnAmt`)

## Across versions

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

## Documented on Microsoft Learn

- [Create purchaseOrders](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_create)
- [Delete purchaseOrders](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_delete)
- [Get purchaseOrders](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_get)
- [Update purchaseOrders](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_update)
- [purchaseOrder resource type](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_purchaseorder)

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 - Purchase Orders")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
