Dynamics Business Central vendor payments API

Visitor
I created purchase invoice payments based on this article. I see that vendor balances decrease which is also confirmed through the vendors API endpoint, but when we call GET /vendorPayments it always returns an empty object. I am wondering if there is something I have to do to apply for these payments so they can show up in the API response but not sure. Is there anyone who can help?
1 Reply
I have an issue where call GET /vendorPayments but is asking for a batch

{
"error": {
"code": "Application_DialogException",
"message": "You must specify a journal batch ID or a journal ID to get a journal line. CorrelationId: e61e84e9-ab4f-4cdc-9ce6-3373ba9f651b."
}
}

IF I call get \vendorPaymentJournals - I can see an Id for the batch - if I put the Id in the vendorPayments(ID) I get an error

{
"error": {
"code": "BadRequest_ResourceNotFound",
"message": "Resource not found for the segment 'vendorPayments'. CorrelationId: 5f2d67bb-3573-40eb-96d6-ae7a12c7680d."
}
}

Were you able to get past this step to at least get an empty values[] back?