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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Is it possible to create purchase order receipts via Postman?

(0) ShareShare
ReportReport
Posted on by 45

I didn't find endpoint to create purchase orders in Microsoft Dynamics 365 Business Central API doc (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/api-reference/v2.0/resources/dynamics_purchasereceipt). When I tried to create a purchase order receipt via postman I'm getting the below in response 

"error": {
        "code": "BadRequest_MethodNotAllowed",
        "message": "Entity does not support insert.  CorrelationId:  4dab4377-3e2c-4c58-81cb-1413207ad7c1."
    }
Please let know if there a way to make this endpoint work.
Thank you!
I have the same question (0)
  • Suggested answer
    Vaishnavi J Profile Picture
    3,062 on at

    Hi,

    You can only get the Posted Purchase receipt.

    You cannot insert data in that entity since it is posted document.

    You can refer the below link for Purchase Order API in business central

    docs.microsoft.com/.../dynamics_purchaseorder

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

  • Suggested answer
    YUN ZHU Profile Picture
    95,647 Super User 2025 Season 2 on at

    Hi, I checked all the standard APIs, as shown below, you can create purchaseReceipts and purchaseReceiptLines through API, but not from Purchase Order.

    pastedimage1650419818748v1.png

    pastedimage1650419835644v2.png

    If you really need to create, you need a develop a new Custom API.

    Creating and Interacting with an OData V4 Bound Action

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action

    Or action in API

    https://yzhums.com/20111/

    PS: API page type cannot be extended by creating a page extension object. Instead, you must create a new API by adding a page object.

    More details: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-api-pagetype

    pastedimage1650420238980v3.png

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Try this repo: github.com/.../PostOrdersWebService

  • AAndras Profile Picture
    on at

    Dear Zhu,

    I havea a similar issue : i want to post a PO only for Receipt (without Invoice) from Power Automate using your way.

    pastedimage1679739509094v1.png

    What is the action what I need to run in API?

    PS I am really thanksful for your videos as I could learn many useful tricks from them.  

  • AAndras Profile Picture
    on at

    yzhums pls see my question above

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    You need to round the receive bound action as described here if you are using the standard API

    learn.microsoft.com/.../dynamics_purchaseorder

  • Suggested answer
    Govinda Kumar Profile Picture
    2,304 Moderator on at

    Hi,

    If you want to post the purchase order via postman, you can create a custom web service for your codeunit and hit the procedure that calls the 'Purch.-Post' codeunit. You can also use that web service in your power automate http request to trigger the posting of the purchase order.

    Regards

  • Suggested answer
    YUN ZHU Profile Picture
    95,647 Super User 2025 Season 2 on at

    Hi, Inge and People Eater are right.

    More Details:

    Creating and Interacting with an OData V4 Bound Action

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-creating-and-interacting-with-odatav4-bound-action

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,577

#2
YUN ZHU Profile Picture

YUN ZHU 888 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 778 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans