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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Sales order Get API for single sales order-Error

(0) ShareShare
ReportReport
Posted on by 134

Hi,

I am getting all sales order data using below URL, and how to get single sales order data using Get API

api.businesscentral.dynamics.com/.../Company('CRONUS USA, Inc.')/SalesOrder

If i give URL like

api.businesscentral.dynamics.com/.../systemID/Sandbox/ODataV4/Company('CRONUS USA, Inc.')/SalesOrder('S-100001'), i am getting below error

code""BadRequest_NotFound",
        "message""The number of keys specified in the URI does not match number of key properties for the resource 'NAV.SalesOrder'
I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    Can you please please put the filters at the end of your api and check ?

    ?$filters=No_="<your so no.>”

  • Suggested answer
    JAngle Profile Picture
    159 on at

    Maybe the v2 api page is a good idea to use. Will avoid the need to pass in primary key values which seems to be the OData pages issue: docs.microsoft.com/.../dynamics_salesorder_get

  • Suggested answer
    YUN ZHU Profile Picture
    102,476 Super User 2026 Season 1 on at

    Hi, you can using "id" (keys) or add filters.

    For example,

    All Sales orders.

    api.businesscentral.dynamics.com/.../salesOrders

    pastedimage1654218484193v1.png

    Using id:

    api.businesscentral.dynamics.com/.../salesOrders(5554a3c6-7dd6-ec11-8e7e-000d3a50628c)

    pastedimage1654218507807v2.png

    Using filter:

    api.businesscentral.dynamics.com/.../salesOrders eq '101006'

    pastedimage1654218573495v3.png

    More details abou filter in APIs: https://yzhums.com/6117/#toc8

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    raobc@bnopentext.onmicrosoft.com Profile Picture
    134 on at

    Issue is resolved,

    i used as below

    api.businesscentral.dynamics.com/.../Company('CRONUS USA, Inc.')/SalesOrder('Order','S-ORD101001')

  • Suggested answer
    raobc@bnopentext.onmicrosoft.com Profile Picture
    134 on at

    issue resolved

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

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 707 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 481 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 328 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans