web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Cant see vendor payment when i am using vendorPayments GET API

(2) ShareShare
ReportReport
Posted on by 11
Hi All,

I'm facing a couple of issues with the Business Central API and would appreciate your assistance.

  1. applyVendorEntries Endpoint:
    I am encountering a problem when invoking the applyVendorEntries endpoint. The first call is successful; however, upon making a second call, I receive an error stating "segment not found." I have referred to the documentation for this endpoint here.

  2. Vendor Payments API:
    After "applyVendorEntries" on payment I am attempting to retrieve the last payment from the vendorPayments API using the following URL:

    companies({{companyId}})/vendorPaymentJournals({{paymentJournal}})/vendorPayments

    While this URL returns a list of payments, it consistently omits the last two payments.

Could you provide any insights into what might be going wrong in these scenarios? Any guidance or suggestions would be greatly appreciated.

Thank you for your time and support.


I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    101,250 Super User 2026 Season 1 on at
    Hi, It looks similar to the following question, hope it can give you some hints.
    Dynamics 365 Business Central: How to use standard customerPayment API to get customer payments (customerPayments/customerPaymentsJournals APIs returns empty records)
     
    Thanks
    ZHU
  • ItayTip Profile Picture
    11 on at
    @YUN ZHU

    Thank you for your response. I was able to successfully view the payment using the following request:
    GET
    companies({{companyId}})/vendorPaymentJournals({{paymentJournalId}})?$expand=vendorPayments

    However, I'm encountering an issue when attempting to delete this payment. The URL I am using for the deletion is not working, and it returns an error message:
    {
    "error": {
    "code": "BadRequest_ResourceNotFound",
    "message": "Resource not found for the segment 'vendorPayment'. CorrelationId: 1f39ec77-ad4a-4edb-963a-968b9e2d3149."
    }
    }
    Could you please advise on the correct method or endpoint for deleting a payment from the list?

    DELETE
    /api/v2.0/companies({{companyId}})/vendorPayments({{vendorPaymentId}})

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,140 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,362 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,216

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans