---
id: object/page/20038
type: object
title: Page 20038 "APIV1 - Sales Credit Memos"
summary: Page 20038 "APIV1 - Sales Credit Memos" in APIV1 (Microsoft.API.V1). 5 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - page
  - apiv1
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: dbd393015d0d63ee4345bdad76f88997ffc90312309205928eedf4d4b9de8546
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/APIV1/app/src/pages/APIV1SalesCreditMemos.Page.al
    title: src/Apps/W1/APIV1/app/src/pages/APIV1SalesCreditMemos.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/v1.0/api/dynamics_salescreditmemo_delete
    title: (v1.0) Delete salesCreditMemos
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_get
    title: (v1.0) Get salesCreditMemos
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_pdfdocument
    title: (v1.0) Get salesCreditMemo pdfDocument
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_update
    title: (v1.0) Update salesCreditMemos
    date: null
    commit: null
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/resources/dynamics_salescreditmemo
    title: (v1.0) salesCreditMemos resource type
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_delete
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_get
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_pdfdocument
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_update
    - https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/resources/dynamics_salescreditmemo
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 20038
name: APIV1 - Sales Credit Memos
namespace: Microsoft.API.V1
app: APIV1
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/v1.0/api/dynamics_salescreditmemo_delete.md
  - docs/learn-devitpro/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_get.md
  - docs/learn-devitpro/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_pdfdocument.md
  - docs/learn-devitpro/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_update.md
  - docs/learn-devitpro/dev-itpro/api-reference/v1.0/resources/dynamics_salescreditmemo.md
counts:
  fields: 0
  procedures: 24
  events: 0
  subscribers: 0
  controls: 34
  actions: 0
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 0
  implements: 0
---

# Page 20038 "APIV1 - Sales Credit Memos"

> Page 20038 "APIV1 - Sales Credit Memos" in APIV1 (Microsoft.API.V1). 5 public procedures. Introduced in BC29, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Caption | 'salesCreditMemos', Locked = true |
| Extensible | false |
| SourceTable | Sales 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/5507.md#fields) | — |
|  | number | [No.](../table/5507.md#fields) | — |
|  | externalDocumentNumber | [External Document No.](../table/5507.md#fields) | — |
|  | creditMemoDate | [Document Date](../table/5507.md#fields) | — |
|  | postingDate | [Posting Date](../table/5507.md#fields) | — |
|  | dueDate | [Due Date](../table/5507.md#fields) | — |
|  | customerId | [Customer Id](../table/5507.md#fields) | — |
|  | contactId | [Contact Graph Id](../table/5507.md#fields) | — |
|  | customerNumber | [Sell-to Customer No.](../table/5507.md#fields) | — |
|  | customerName | [Sell-to Customer Name](../table/5507.md#fields) | — |
|  | billToName | [Bill-to Name](../table/5507.md#fields) | — |
|  | billToCustomerId | [Bill-to Customer Id](../table/5507.md#fields) | — |
|  | billToCustomerNumber | [Bill-to Customer No.](../table/5507.md#fields) | — |
|  | sellingPostalAddress | `SellingPostalAddressJSONText` | Specifies the selling address of the Sales Invoice. |
|  | billingPostalAddress | `BillingPostalAddressJSONText` | Specifies the billing address of the Sales Credit Memo. |
|  | currencyId | [Currency Id](../table/5507.md#fields) | — |
|  | currencyCode | `CurrencyCodeTxt` | — |
|  | paymentTermsId | [Payment Terms Id](../table/5507.md#fields) | — |
|  | shipmentMethodId | [Shipment Method Id](../table/5507.md#fields) | — |
|  | salesperson | [Salesperson Code](../table/5507.md#fields) | — |
|  | pricesIncludeTax | [Prices Including VAT](../table/5507.md#fields) | — |
|  | salesCreditMemoLines | part [Page 20046 "APIV1 - Sales Credit Mem Lines"](../page/20046.md) | — |
|  | pdfDocument | part [Page 20057 "APIV1 - PDF Document"](../page/20057.md) | — |
|  | discountAmount | [Invoice Discount Amount](../table/5507.md#fields) | — |
|  | discountAppliedBeforeTax | [Discount Applied Before Tax](../table/5507.md#fields) | — |
|  | totalAmountExcludingTax | [Amount](../table/5507.md#fields) | — |
|  | totalTaxAmount | [Total Tax Amount](../table/5507.md#fields) | Specifies the total tax amount for the sales credit memo. |
|  | totalAmountIncludingTax | [Amount Including VAT](../table/5507.md#fields) | — |
|  | status | [Status](../table/5507.md#fields) | Specifies the status of the Sales Credit Memo (cancelled, paid, on hold, created). |
|  | lastModifiedDateTime | [Last Modified Date Time](../table/5507.md#fields) | — |
|  | invoiceId | `SalesInvoiceId` | — |
|  | invoiceNumber | [Applies-to Doc. No.](../table/5507.md#fields) | — |
|  | phoneNumber | [Sell-to Phone No.](../table/5507.md#fields) | — |
|  | email | [Sell-to E-Mail](../table/5507.md#fields) | — |

## Procedures

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

Plus 19 local procedures.

## Triggers

OnAfterGetRecord, OnDeleteRecord, OnInsertRecord, OnModifyRecord, OnNewRecord, OnOpenPage

## Relations

- source table [Table 5507 "Sales Cr. Memo Entity Buffer"](../table/5507.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 5508 "Graph Mgt - Sal. Cr. Memo Buf."](../codeunit/5508.md) (12 calls: `Cancel → GetSalesCrMemoHeaderId`, `CancelAndSend → GetSalesCrMemoHeaderId`, `GetPostedCreditMemo → GetSalesCrMemoHeaderFromId`, …)
- [Codeunit 5507 "Graph Mgt - Sales Credit Memo"](../codeunit/5507.md) (6 calls: `ProcessBillingPostalAddressOnInsert → ParseBillToCustomerAddressFromJSON`, `ProcessBillingPostalAddressOnModify → ParseBillToCustomerAddressFromJSON`, `ProcessSellingPostalAddressOnInsert → ParseSellToCustomerAddressFromJSON`, …)
- [Codeunit 20038 "APIV1 - Send Sales Document"](../codeunit/20038.md) (3 calls: `CancelAndSend → SendCreditMemo`, `PostAndSend → SendCreditMemo`, `Send → SendCreditMemo`)
- [Codeunit 1339 "Cancel Posted Sales Cr. Memo"](../codeunit/1339.md) (2 calls: `CancelCreditMemo → (object)`, `CheckCreditMemoCanBeCancelled → TestCorrectCrMemoIsAllowed`)
- [Codeunit 1320 "Lines Instruction Mgt."](../codeunit/1320.md) (1 call: `PostCreditMemo → SalesCheckAllLinesHaveQuantityAssigned`)
- [Codeunit 5465 "Graph Mgt - General Tools"](../codeunit/5465.md) (1 call: `SetCalculatedFields → TranslateNAVCurrencyCodeToCurrencyCode`)
- [Codeunit 5477 "Sales Invoice Aggregator"](../codeunit/5477.md) (1 call: `SetInvoiceId → GetSalesInvoiceHeaderId`)
- [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

- [(v1.0) Delete salesCreditMemos](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_delete)
- [(v1.0) Get salesCreditMemos](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_get)
- [(v1.0) Get salesCreditMemo pdfDocument](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_pdfdocument)
- [(v1.0) Update salesCreditMemos](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/api/dynamics_salescreditmemo_update)
- [(v1.0) salesCreditMemos resource type](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/api-reference/v1.0/resources/dynamics_salescreditmemo)

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