web
You’re offline. This is a read only version of the page.
close
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?

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    on at

    Hello,

    Maybe this helps:

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

    Thanks.

  • nickgru Profile Picture
    10 on at

    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.

  • chrisgoman Profile Picture
    12 on at

    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

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

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans