web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

No “Amount to Apply” Control for Partial Vendor Payments and Credit Memos through API

(5) ShareShare
ReportReport
Posted on by 21
Hello community,
 

Issue: Lack of Granular “Amount to Apply” Control in Vendor Payments via Business Central APIs

 

Summary

When using Microsoft Dynamics 365 Business Central APIs to apply vendor payments or credit memos to invoices, there is no way to control partial application amounts per invoice or per credit memo.
This makes it impossible to implement common real-world payment allocation scenarios through the API, even though the UI fully supports them.
 

 

Problem Statement

Scenario 1: Paying Multiple Invoices with a Single Payment

 

Example

Payment amount: ₹1000

Invoice 1 remaining balance: ₹700

Invoice 2 remaining balance: ₹500

Expected behavior (UI supports this):

Apply ₹300 to Invoice 1

Apply ₹700 to Invoice 2

Actual API behavior:

 

The API automatically exhausts Invoice 1 fully (₹700)

Remaining ₹300 is applied to Invoice 2

No control over how much is applied to each invoice
 

➡️ There is no way to specify partial amounts per invoice via API.

 
 

Scenario 2: Partial Utilization of a Credit Memo

 

Example:

Credit Memo 1 balance: ₹1000

Want to apply only ₹100

Expected behavior:

Apply ₹100 from the credit memo

Keep ₹900 unused

Actual API behavior:

Credit memo is applied automatically

Partial usage cannot be specified

The system decides how much to apply



 

Scenario 3: Multiple Credit Memos with Selective Amounts

 

Example:

Credit Memo 1 balance: ₹1000 → want to use ₹100

Credit Memo 2 balance: ₹2000 → want to use ₹200

Total to apply: ₹300

 

Expected behavior:

₹100 from Credit Memo 1

₹200 from Credit Memo 2

Actual API behavior:

Entire ₹300 is consumed from Credit Memo 1

Credit Memo 2 is not touched

No ability to target specific credit memos



 

Root Cause (Technical Explanation)

 

The Apply Vendor Entries API:

APIV2 – Apply Vendor Entries (Page 30073)

Only exposes a boolean:

 
{ "applied": true )
Does NOT expose “Amount to Apply”
Uses Vendor Ledger Entry Buffer (temporary)Internally calls
 
 
 
 

Key Limitation: “Amount to Apply” is not a table field and is not exposed in the API

Even the discount applied for each invoices can't be specified.
I have the same question (0)
  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at
    Do I understand correctly that don't want to discuss anything; you just wanted to share a blog post? If so, please use a blogging platform and instead of a discussion forum.
     
    Moved from Integration, Dataverse, and general topics forum to Small and medium business | Business Central, NAV, RMS forum.
  • SM-18121141-0 Profile Picture
    21 on at
    Hi, I want a solution on the above if anyone has faced similar issue while integration with Dynamics. If so, please help me with the solution.
  • Suggested answer
    OussamaSabbouh Profile Picture
    6,340 on at
    Hello,
     
    The Apply Vendor Entries API only supports { applied: true } and does not expose “Amount to Apply”, partial amounts, discounts, or credit memo selection. Once applied, BC uses automatic application logic (oldest-first, full exhaustion). This is why scenarios that work in the UI cannot be replicated via API.
    Only real solution: custom AL/API to handle amounts manually.
     
    Regards,
    Oussama Sabbouh
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, here is a very detailed description, I hope to give you some tips.

    Apply multiple invoice entries against a payment entry through APIs in D365 Business Central

    https://mohana-dynamicsnav.blogspot.com/2022/02/apply-multiple-invoice-entries-against.html

     

    Thanks.

    ZHU

  • SM-18121141-0 Profile Picture
    21 on at
    Hi @YUN ZHU we have followed the blog https://mohana-dynamicsnav.blogspot.com/2022/02/apply-multiple-invoice-entries-against.html only, but partial payment is not handled here.
    Hi @Oussama Sabbouh do you have any design in mind with custom al which can help me achieve this. I tried various ways which was unsuccessful.
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,601 Super User 2025 Season 2 on at
    Custom APIs are required for granular control.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans