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...
Suggested Answer

How to create purchase quotes via API in BusinessCentral

(1) ShareShare
ReportReport
Posted on by 2
Header{
Authorization:"Bearer xxxxxxx"
}
The API response result is:
{
  "error": {
    "code": "BadRequest_NotFound",
    "message": "No HTTP resource was found that matches the request URI 'https://api.businesscentral.dynamics.com/v2.0/xxxxxx/api/v2.0/companies(xxxxxxx)/requestQuotes?$top=5&tenant=xxxxxx&aid=FIN'."
  }
}
 
I can use this method to retrieve purchaseOrder data.
 
 
I have the same question (0)
  • Suggested answer
    OussamaSabbouh Profile Picture
    11,974 Super User 2026 Season 1 on at
    Hello,
    requestQuotes is not a standard Business Central API v2.0 endpoint, so the 404/BadRequest_NotFound is expected; Microsoft documents salesQuotes for sales quotes, but for purchase quotes they document the feature in the UI, not a standard /requestQuotes or /purchaseQuotes API endpoint, which is why purchaseOrders works and requestQuotes does not. If you actually need sales quotes, use /api/v2.0/companies({companyId})/salesQuotes; if you need purchase quote data, you’ll need a custom API or OData page/query instead of the standard API.
    Regards,
    Oussama Sabbouh
  • Suggested answer
    Yi Yong Profile Picture
    2,641 Super User 2026 Season 1 on at
    Hello,
     
    You can create them in "Web Services" page.
     
     
    Use 9306 as the Object ID and you can put requestQuotes as the Service Name and then you need to check on "Published".
     
    You can post a GET request using the OData V4 URL.
     
    {
        "@odata.context": "xxx/requestQuotes",
        "value": [
            {
                "@odata.etag": "W/\"JzIwOzEwNDE5MTA1MDU0ODIyNTkxOTkzMTswMDsn\"",
                "Document_Type": "Quote",
                "No": "1005",
                "Buy_from_Vendor_No": "10000",
                "Order_Address_Code": "",
                "Buy_from_Vendor_Name": "Fabrikam, Inc.",
                "Vendor_Authorization_No": "",
                "Buy_from_Post_Code": "US-GA 31772",
                "Buy_from_Country_Region_Code": "US",
                "Buy_from_Contact": "Krystal York",
                "Pay_to_Vendor_No": "10000",
                "Pay_to_Name": "Fabrikam, Inc.",
                "Pay_to_Post_Code": "US-GA 31772",
                "Pay_to_Country_Region_Code": "US",
                "Pay_to_Contact": "Krystal York",
                "Ship_to_Code": "",
                "Ship_to_Name": "DEMO",
                "Ship_to_Post_Code": "W2 8HG",
                "Ship_to_Country_Region_Code": "GB",
                "Ship_to_Contact": "",
                "Posting_Date": "0001-01-01",
                "Shortcut_Dimension_1_Code": "",
                "Shortcut_Dimension_2_Code": "",
                "Location_Code": "",
                "Purchaser_Code": "",
                "Assigned_User_ID": "",
                "Currency_Code": "",
                "Document_Date": "2024-12-31",
                "Campaign_No": "",
                "Your_Reference": "",
                "Status": "Open",
                "Amount": 0,
                "Amount_Including_VAT": 0
            }
        ]
    }
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,870 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,138 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 915 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans