Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

API salesInvoiceLines endpoint not working anymore

Posted on by 5

Hi,

I have been using the BC365 API to create Sales Invoices and Sales Invoice Lines. The solution was working fine for six months, all of a sudden I am getting an error. The salesInvoices endpoint still works and I can still create invoices. But I cannot add Sales invoice lines to them. Neither GET nor PUT request work now. It is like the salesInvoiceLines is not accessible.

Any ideas?

Thanks.

Error message below:
No HTTP resource was found that matches the request URI 'api.businesscentral.dynamics.com/.../salesInvoiceLines

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,296 Super User 2024 Season 2 on at
    RE: API salesInvoiceLines endpoint not working anymore

    Hi, I briefly tested Get, and there seems to be no problem. I think it might still be your URL issue, but you've been working fine for six months, maybe it's an environmental issue. I'm not sure.

    My Test URL:

    https://api.businesscentral.dynamics.com/v2.0/d8f36038-1f93-4543-affc-5dc92b6ee871/Sandbox213/api/v2.0/companies(de688871-0a8b-ed11-aad5-000d3a23152c)/salesInvoices(b00a4383-7091-ed11-bff5-000d3ace65d1)/salesInvoiceLines

    pastedimage1677023588279v1.png

    Hopefully other experts can give you better advice.

    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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,188 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,030 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans