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

API 2.0 for applyCustomerEntries

(0) ShareShare
ReportReport
Posted on by 12

On the latest 2.0 API, we are using the vendorPaymentJournal and vendorPayment to apply to purchaseInvoices

There is an applyVendorEntry 

https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_applyvendorentry

that seems to be able to do this (but still NOT sure how to POST the vendorPaymentJournal once applied) but that can be manual

However, on the salesInvoices side of things, we were expecting something similar which is applyCustomerEntry but however that seems to NOT be available (yet or planned?) and not sure how to accomplish this.  It should function almost exactly as the vendor side of things and there are mentions of it in the old SOAP (on-prem which is not applicable here) but the 2.0 API and 1.0 API does not seem to have it.  On the screen, this is called the Cash Receipt Journal (mirrors the Payment Journal for vendor side)

1) How would you go about doing the applyCustomerEntry?

2) Can this be accomplished by just creating journal + journalLines then POST? (unlikely)

Once we actually get this figured out, the other thing we need to handle is the prepayment invoice that we need to tag against salesOrder

3) How do you POST a prepayment invoice against a salesOrder via the API?

If this is not possible via the API, are there any other workarounds like ODATA or something called "AL" (not sure what is)

I can't imagine people doing data entry on this using the screens (but maybe using the EDIT in Excel function) or maybe even being able to upload something.  Are there instructions for this?

  • nickgru Profile Picture
    10 on at
    RE: API 2.0 for applyCustomerEntries

    Thank you for the response, I'll let you know if I find anything.

  • chrisgoman Profile Picture
    12 on at
    RE: API 2.0 for applyCustomerEntries

    Hi, not really ... I am super deep into the Dynamics 365 BC API Page thing and the AL Extension + VSCode (kind of hard to deal with in VSCode) but have not really gotten anywhere.  From what I have read, it seems like all the "out-of-the-box" endpoints are somewhere in Github so all you have to do is copy it, change the "table" they are hitting and you are good to go but  

    Even getting the list of tables (search for "Table Information") in the sandbox took about 5 minutes to generate so I can just figure out what "Table Name" I am supposed to type into this AL thing

    I don't think they are here

    * github.com/.../ALAppExtensions

    * github.com/.../AL

    So I am still searching ...

  • nickgru Profile Picture
    10 on at
    RE: API 2.0 for applyCustomerEntries

    chrisgoman Were you able to find a solution for item #1.  We are also trying to do this through the API but not getting much help.  Thanks.

  • Suggested answer
    Marco Mels Profile Picture
    on at
    RE: API 2.0 for applyCustomerEntries

    Hello,

    Maybe this helps:

    learn.microsoft.com/.../devenv-develop-custom-api

    Thanks.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,017 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans