web
You’re offline. This is a read only version of the page.
close
Skip to main content
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.
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    23,590 Most Valuable Professional on at
  • 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.
  • 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

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,828

#2
Sumit Singh Profile Picture

Sumit Singh 2,617

#3
YUN ZHU Profile Picture

YUN ZHU 1,861 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans