web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Find Purchase Order created via REST API

(0) ShareShare
ReportReport
Posted on by 115

hi,

I have created some purchase orders via REST API (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/api/dynamics_purchaseorder_create). While I can see them when I use the REST API, I cannot find them using the browser interface (https://businesscentral.dynamics.com/)
Am I missing anything?

many thanks,

JG

  • JAngle Profile Picture
    161 on at

    Are you accessing the correct company within the database?

  • IB-29041624-0 Profile Picture
    1,191 Moderator on at

    Are you sure you have assigned the correct document type?  The place then show up in the web client can variate with what document type you have assigned to the document. If you provide us with the statement you used we should be able to figure it iout.

  • Javier Profile Picture
    115 on at

    hi,

    thx for the answer... I think i am... I got the company id using the REST call

    api.businesscentral.dynamics.com/.../companies

    with the appropiate OAuth2 credentials...

    I use the id corresponding to the "CRONOS" company, which is the one I see as well in the browser UI.

  • Javier Profile Picture
    115 on at

    what do you mean with "assign the correct document type"? To create the PO I use the REST call

    POST -> api.businesscentral.dynamics.com/.../purchaseOrders

    after that, with the returned PO id, I add a purchase order line to it...

    when using the REST call to get back the list of POs, I can see both the ones I create via REST API and those ones I create using the browser UI. From the data structure, I can see no difference between them

  • Verified answer
    Javier Profile Picture
    115 on at

    ok, while answering your question I came up to the problem... in my API calls I have been using the "sandbox" environment... in the browser UI the environment being used is the "production" one... once I switched this, all works as expected.

    many thanks!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 664 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 446 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 282 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans