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

Create payment with g/l account by business central rest api

(1) ShareShare
ReportReport
Posted on by 11
In web UI of business central on page Payment Journals we can create new entries. One of column for fill up is /Account Type/. Here, among other we can select option /G/L Account/. 
I'm trying to find a way how to create payment in payment journal with account type g/l account. I found endpoints /vendorPaymentJournals and indeed - GET /vendorPaymentJournals is returning list of payment journal batches. Problem i have now is inside that endpoint namespace can see only endpoint /vendorPaymentJournals(:journal_id)/vendorPayments which is returning ONLY entries with account type vendor. How I can - using API - create and fetch entries with other account type than vendor ?
 
-- edit
I found that payment journal entries with g/l account type can be created by using just POST /jounals(:journal_id)/journalLines endpoint. But unfortunately here i cannot define paymentMethodId nor documentType. 
 
 
Recap is: I need to create following entry in payment journal:
Document type: Payment
Account type: G/L account
G/L account no: (one of my gl account here)
Payment method code: (one of my payment methods here)
 
How I should approach that problem ?
 
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, the only standard API that can be used is journalLines.
    But if there are insufficient fields, unfortunately, as of now, you can only customize a new API page.
    More details: Dynamics 365 Business Central: Can we extend standard APIs? – Download Standard Source Code for APIs
     
     
    Thanks.
    ZHU

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,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans