Skip to main content

Notifications

Community site session details

Community site session details

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

Creating payments via API

(1) ShareShare
ReportReport
Posted on by 25
Hi there,
 
Can someone point me please to any available documentation on posting payments via API?
Here are the 2 questions I've got on the topic:
  1. I want to be able to create a payment applied to the invoice with one request - is it possible?
    Currently, I've managed to create what looks like a draft payment, but I had to manually post it from the Payment journal so that it is added to the Customer's balance.
  2. Is it possible to create a Lump Customer Payment to allocate multiple invoices in one payment via API? Can you direct me to an example payload? I assume there should be an AppliesTo array to list all paid invoices.
Many thanks.
  • Milla Profile Picture
    25 on at
    Creating payments via API
    Hi Gerardo @gdrenteria,
     
    Even though I need to create and post customer payments, not the vendor ones, I got through to the moment where I can locate the journal and send the unposted payment to it. But I struggled with the further steps of applying invoices to the payment: where the author used the applyVendorEntries method, I tried to replace it with the applyCustomerEntries method, which I found here Page "Apply Customer Entries" | Microsoft Learn and expected it to work as well.
     
    Here's the error message that I received from API:
    {
        "error": {
            "code": "BadRequest_NotFound",
            "message": "No HTTP resource was found that matches the request URI
     
    Can you recommend something about it?
    Or maybe there's another way for the customer payments?
     
    Thanks,
    Milla
  • Judy Profile Picture
    Microsoft Employee on at
    Creating payments via API
    Hi, please refer to the MS document regarding Creates a customer payment object in Business Central.
  • Gerardo Rentería García Profile Picture
    19,937 Most Valuable Professional on at

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 1,452

#2
YUN ZHU Profile Picture

YUN ZHU 1,313 Super User 2025 Season 1

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 1,083 Most Valuable Professional

Featured topics

Product updates

Dynamics 365 release plans