web
You’re offline. This is a read only version of the page.
close
Skip to main content
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)
  • ItayTip Profile Picture
    11 on at
    Cant see vendor payment when i am using vendorPayments GET API
    @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}})
  • Suggested answer
    YUN ZHU Profile Picture
    92,294 Super User 2025 Season 2 on at
    Cant see vendor payment when i am using vendorPayments GET API
    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

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 4,220

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,958

#3
Sumit Singh Profile Picture

Sumit Singh 2,961

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans