---
id: object/page/30083
type: object
title: Page 30083 "APIV2 - Purchase Credit Memos"
summary: Page 30083 "APIV2 - Purchase Credit Memos" in APIV2 (Microsoft.API.V2). 2 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: ede991fa9624a1396fb18051e761a459f70e47c9ddcfdf2183f88a634895970b
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV2/app/src/pages/APIV2PurchaseCreditMemos.Page.al
    title: src/Apps/W1/APIV2/app/src/pages/APIV2PurchaseCreditMemos.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_purchasecreditmemo_create
    title: Create purchaseCreditMemos
    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_purchasecreditmemo_delete
    title: Delete purchaseCreditMemos
    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_purchasecreditmemo_get
    title: Get purchaseCreditMemos
    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_purchasecreditmemo_update
    title: Update purchaseCreditMemos
    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_purchasecreditmemo
    title: purchaseCreditMemo 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_purchasecreditmemo_create
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_delete
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_update
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_purchasecreditmemo
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 30083
name: APIV2 - Purchase Credit Memos
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_purchasecreditmemo_create.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_delete.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_get.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_update.md
  - docs/learn-devitpro/dev-itpro/api-reference/v2.0/resources/dynamics_purchasecreditmemo.md
counts:
  fields: 0
  procedures: 18
  events: 0
  subscribers: 0
  controls: 47
  actions: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 0
  implements: 0
---

# Page 30083 "APIV2 - Purchase Credit Memos"

> Page 30083 "APIV2 - Purchase Credit Memos" in APIV2 (Microsoft.API.V2). 2 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/APIV2PurchaseCreditMemos.Page.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Extensible | false |
| SourceTable | Purch. Cr. Memo 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/5508.md#fields) | — |
|  | No. | [No.](../table/5508.md#fields) | — |
|  | Credit Memo Date | [Document Date](../table/5508.md#fields) | — |
|  | Posting Date | [Posting Date](../table/5508.md#fields) | — |
|  | Due Date | [Due Date](../table/5508.md#fields) | — |
|  | Vendor Id | [Vendor Id](../table/5508.md#fields) | — |
|  | Vendor No. | [Buy-from Vendor No.](../table/5508.md#fields) | — |
|  | Vendor Name | [Buy-from Vendor Name](../table/5508.md#fields) | — |
|  | Vendor Credit Memo No. | [Vendor Cr. Memo No.](../table/5508.md#fields) | — |
|  | Pay-to Vendor Id | [Pay-to Vendor Id](../table/5508.md#fields) | — |
|  | Pay-to Vendor No. | [Pay-to Vendor No.](../table/5508.md#fields) | — |
|  | Pay-to Name | [Pay-to Name](../table/5508.md#fields) | — |
|  | Buy-from Address Line 1 | [Buy-from Address](../table/5508.md#fields) | — |
|  | Buy-from Address Line 2 | [Buy-from Address 2](../table/5508.md#fields) | — |
|  | Buy-from City | [Buy-from City](../table/5508.md#fields) | — |
|  | Buy-from Country/Region Code | [Buy-from Country/Region Code](../table/5508.md#fields) | — |
|  | Buy-from State | [Buy-from County](../table/5508.md#fields) | — |
|  | Buy-from Post Code | [Buy-from Post Code](../table/5508.md#fields) | — |
|  | Pay-to Address Line 1 | [Pay-to Address](../table/5508.md#fields) | — |
|  | Pay-to Address Line 2 | [Pay-to Address 2](../table/5508.md#fields) | — |
|  | Pay-to City | [Pay-to City](../table/5508.md#fields) | — |
|  | Pay-to Country/Region Code | [Pay-to Country/Region Code](../table/5508.md#fields) | — |
|  | Pay-to State | [Pay-to County](../table/5508.md#fields) | — |
|  | Pay-to Post Code | [Pay-to Post Code](../table/5508.md#fields) | — |
|  | Shortcut Dimension 1 Code | [Shortcut Dimension 1 Code](../table/5508.md#fields) | — |
|  | Shortcut Dimension 2 Code | [Shortcut Dimension 2 Code](../table/5508.md#fields) | — |
|  | Currency Id | [Currency Id](../table/5508.md#fields) | — |
|  | Currency Code | `CurrencyCodeTxt` | — |
|  | Payment Terms Id | [Payment Terms Id](../table/5508.md#fields) | — |
|  | Shipment Method Id | [Shipment Method Id](../table/5508.md#fields) | — |
|  | Purchaser | [Purchaser Code](../table/5508.md#fields) | — |
|  | Prices Include Tax | [Prices Including VAT](../table/5508.md#fields) | — |
|  | discountAmount | [Invoice Discount Amount](../table/5508.md#fields) | — |
|  | Discount Applied Before Tax | [Discount Applied Before Tax](../table/5508.md#fields) | — |
|  | Total Amount Excluding Tax | [Amount](../table/5508.md#fields) | — |
|  | Total Tax Amount | [Total Tax Amount](../table/5508.md#fields) | — |
|  | Total Amount Including Tax | [Amount Including VAT](../table/5508.md#fields) | — |
|  | Status | [Status](../table/5508.md#fields) | — |
|  | Last Modified Date | `Rec.SystemModifiedAt` | — |
|  | Invoice Id | `PurchaseInvoiceId` | — |
|  | Invoice No. | [Applies-to Doc. No.](../table/5508.md#fields) | — |
|  | Vendor Return Reason Id | [Reason Code Id](../table/5508.md#fields) | — |
|  | Dimension Set Lines | part [Page 30022 "APIV2 - Dimension Set Lines"](../page/30022.md) | — |
|  | Lines | part [Page 30084 "APIV2 - Purch. Cr. Memo Lines"](../page/30084.md) | — |
|  | PDF Document | part [Page 30056 "APIV2 - PDF Document"](../page/30056.md) | — |
|  | 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)`
- `Cancel(var ActionContext: WebServiceActionContext)`

Plus 16 local procedures.

## Triggers

OnAfterGetRecord, OnDeleteRecord, OnInsertRecord, OnModifyRecord, OnNewRecord, OnOpenPage

## Relations

- source table [Table 5508 "Purch. Cr. Memo Entity Buffer"](../table/5508.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 5511 "Graph Mgt - Purch. Cr. Memo"](../codeunit/5511.md) (9 calls: `Cancel → GetPurchaseCrMemoHeaderId`, `GetPostedCreditMemo → GetPurchaseCrMemoHeaderFromId`, `OnAfterGetRecord → RedistributeCreditMemoDiscounts`, …)
- [Codeunit 1402 "Cancel Posted Purch. Cr. Memo"](../codeunit/1402.md) (2 calls: `CancelCreditMemo → (object)`, `CheckCreditMemoCanBeCancelled → TestCorrectCrMemoIsAllowed`)
- [Codeunit 1320 "Lines Instruction Mgt."](../codeunit/1320.md) (1 call: `PostCreditMemo → PurchaseCheckAllLinesHaveQuantityAssigned`)
- [Codeunit 5465 "Graph Mgt - General Tools"](../codeunit/5465.md) (1 call: `SetCalculatedFields → TranslateNAVCurrencyCodeToCurrencyCode`)
- [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) (1 call: `SetInvoiceId → GetPurchaseInvoiceHeaderId`)
- [Codeunit 66 "Purch - Calc Disc. By Type"](../codeunit/66.md) (1 call: `UpdateDiscount → ApplyInvDiscBasedOnAmt`)
- [Codeunit 9998 "Upgrade Tag Definitions"](../codeunit/9998.md) (1 call: `CheckDataUpgrade → GetPurchaseCreditMemoUpgradeTag`)
- [Codeunit 9999 "Upgrade Tag"](../codeunit/9999.md) (1 call: `CheckDataUpgrade → HasUpgradeTag`)

## Across versions

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

## Documented on Microsoft Learn

- [Create purchaseCreditMemos](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_create)
- [Delete purchaseCreditMemos](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_delete)
- [Get purchaseCreditMemos](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_get)
- [Update purchaseCreditMemos](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchasecreditmemo_update)
- [purchaseCreditMemo resource type](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_purchasecreditmemo)

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