Business central API: How to get the general ledger entries of a posted sale invoice ?

Hello,

How can we get the general ledger entries of a posted sale invoice via the API of business central ?

We tried with the following request

..../api.businesscentral.dynamics.com/v1.0/api/beta/companies(id)/generalLedgerEntries?$top=100&$filter=(documentNumber eq '1910022') and (documentType eq 'Invoice')

but FILTER on documentNumber is not 100% correct because i assume documentNumber 1910022 could concern also a posted purchase invoice or even other thing.

Thank in advance for your help.

Regards.

Guy

Parents Reply Children
Related
Recommended