Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Unanswered

Creating payments via API

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.
Categories:
  • Milla Profile Picture
    Milla 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
    Judy Microsoft Employee on at
    Creating payments via API
    Hi, please refer to the MS document regarding Creates a customer payment object in Business Central.
  • gdrenteria Profile Picture
    gdrenteria 12,167 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans