Hello developers,
I want to post customer payment through API. Anybody have done this? Please provide any reference. Do i need to create own on bound function?
Hi Aisf,
I would suggest to create a custom table and publish its page as web service. Insert your relevant data using api call.
Then make a code-unit to handle the posting as an extension after validating the relevant data in your custom table . Finally schedule it in a job queue.
Now when you enter the data in your custom table using page api service, the scheduled job will take care of it and post the entery using journal (the logic you have written in your code-unit)
Hope it will work for you. I would suggest to handle posting routine from inside Business Central.
Hi,
You can follow the provided examples on the API documentation:
docs.microsoft.com/.../dynamics_create_customerpayment
You may have to create and call your own API if it does not exist in the standard list.
Sohail Ahmed
953
YUN ZHU
921
Super User 2025 Season 1
Mansi Soni
602