Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

API interface Cloud Version

(0) ShareShare
ReportReport
Posted on by 5

Hi All,

i have question regarding API connection/interface.

We want to connect our E-Commerce Project with the MS D 365 BC. So far I understand, is the API interface in the cloud version ready. XML or json.

We want to go json.

My question:

Is the API interface standard ready to use? So we just build our connector to the API from BC?

Or must this be at first setup via scripting in the MS D 365 BC for the cloud too?

THX

TELLO

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: API interface Cloud Version

    If you want to minimize the job in Business Central them you need to let your e-commerce platform consume the Business Central API's.

    Then the E-commerce plattform will push data to Business Central and pull data from Business Central when needed.

    If you want Business Central to be the one that push and / or pull data then you will need to write some AL code to handle that.

    Some also put power automate in between - but I am not sure i would recommend that for a e-commerce integration especially not if the order volumes are high.  Power Automate will then transform the request from the E-commerce system into something that is compatible with Business Central.

    I hope that made it more clear.

  • TELLO0815 Profile Picture
    TELLO0815 5 on at
    RE: API interface Cloud Version

    Inge, sorry I must go in detail again. I just look for the best way to connect.

    Our idea is, to setup/change our E-Commerce API with a connector to the standard REST API from MS.

    So we are super flexible with our E-Commerce System. And we want to minimize the work on the MS side.

    I guess this is possible? Just write stuff in AL, where we was changing in MS BC 365 from standard?

    Correct?

    And thank you for your great help!

    TELLO

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: API interface Cloud Version

    No, the standard API's are not ready only.  Most of them can both read and update data.

    Like sales order API f.ex.

    Yes if you want to consume an API published by the E-commerce the you need to write AL code.

    This will for example be in a scenario where your e-commerce plattform is exposing a sales order API that you need to pull sales orders from e-commerce to Business Central.

    Some e-commerce platforms have out of the box connectors to Business Central. One example of this is Shopify.

  • TELLO0815 Profile Picture
    TELLO0815 5 on at
    RE: API interface Cloud Version

    Thanks for the rich answer.

    Not sure I got one point correct.

    The standard API is read only? To exchange/consume from E-Commerce need to be written in AL.

    THX

    TELLO

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,748 Super User 2024 Season 1 on at
    RE: API interface Cloud Version

    The standard API's are rest json based.

    And there are a set of standard API's that are ready to use.

    The documentation for those API's are found here.

    learn.microsoft.com/.../

    In addition you can build custom API's if the standard API does not provide the functionality you need. These custom API's requires development to be done in Business Central using the AL programming language.

    If you want Business Central to consume the API\s that your e-commerce plattform publish you normally would have to do programming in AL to consume those as well. The AL programming language provided a HTTP client data type that will normally be used for that.

    learn.microsoft.com/.../httpclient-data-type

    I hope you find this helpful.

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!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans