---
title: "Codeunit 2105 O365 Sales Invoice Payment"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2105-o365-sales-invoice-payment/
type: codeunit
id: 2105
name: "O365 Sales Invoice Payment"
app: "Base Application"
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/2105-o365-sales-invoice-payment/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 2105 O365 Sales Invoice Payment

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2105-o365-sales-invoice-payment/

| | |
| --- | --- |
| App | Base Application |
| Versions | 17-28 |
| Source file | Invoicing/O365SalesInvoicePayment.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ShowHistory | (Code[20]) | Boolean | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |
| MarkAsPaid | (Code[20]) | Boolean | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |
| CancelSalesInvoicePayment | (Code[20]) | Boolean | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |
| CancelCustLedgerEntry | (Integer) | - | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |
| GetPaymentCustLedgerEntry | (var Record Cust. Ledger Entry, Code[20]) | Boolean | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |
| CalculatePaymentRegistrationBuffer | (Code[20], var Record Payment Registration Buffer) | Boolean | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |
| CollectRemainingPayments | (Code[20], var Record Payment Registration Buffer) | Boolean | public | 17-28 | - | - |
| SetPaypalDefault | () | - | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |
| SetMspayDefault | () | - | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |
| UpdatePaymentServicesForInvoicesQuotesAndOrders | () | - | public | 17-28 | - | - |
| OnPayPalEmailSetToEmpty | () | - | public | 17-23 | Pending 21.0 | Microsoft Invoicing has been discontinued. |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
