Skip to main content

Notifications

Business Central forum
Suggested answer

How to apply a payment to multiple vendor ledger entries via API

Posted on by

I could apply payments to multiple vendor ledger entries via MSBC UI like described here gyde.ai/.../how-to-apply-a-payment-to-a-single-or-multiple-vendor-ledger-entries

But which API endpoints I can use to do it programmatically?

What I already tried (both REST and OData APIs):

  1. Tried to create a Vendor Payment entity, but it could be created with only one applied PI.
  2. Tried to update Vendor_Ledger_Entries entity, but it doesn't contain a field to link the payment number
  3. Tried to call applyVendorEntries API, but it has only GET and PATCH verbs, POST is not supported  learn.microsoft.com/.../dynamics_applyvendorentry_get
Categories:
  • PK-20051639-0 Profile Picture
    PK-20051639-0 11 on at
    How to apply a payment to multiple vendor ledger entries via API
    Hi. Were you able to find a way to achieve this? We also have similar use case.
    Regards.
  • Andrew1986 Profile Picture
    Andrew1986 421 on at
    How to apply a payment to multiple vendor ledger entries via API
    But this example only for applyVendorEntries.
     
    I would like to use it for customers Payments.

    But API method applyCustomerEntries doesn't work.

    How I can use it? Could you provide the example?

     
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 62,529 Super User on at
    RE: How to apply a payment to multiple vendor ledger entries via API

    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

Helpful resources

Quick Links

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Blog subscriptions now enabled!

Follow your favorite blogs

TechTalk: How Dataverse and Microsoft Fabric powers ...

Explore the latest advancements in data export and integration within ...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 284,217 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,202 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans