Solved

Purchase Receipt via Rest API

  • 17 June 2021
  • 2 replies
  • 459 views

Hi Guys, i am trying to process a purchase receipt of a purchase order but i keep getting this error below. Can you kindly help? I have followed the Acumatica example found here : https://help-2021r1.acumatica.com/(W(61))/Help?ScreenId=ShowWiki&pageid=81e5ec25-09f7-421a-8f80-01b6b71d38c9

 

EndPoint: baseURL/entity/Default/18.200.001/PurchaseReceipt

Request

{

  "VendorID": {"value": "DIG001"},

  "Location": {"value": "MAIN"},

  "Details": [

    {

      "POOrderNbr": {"value": "PODP003483"},

      "POOrderType": {"value": "Normal"}

    }

  ]

}

Error:

        "innerException": {

            "message": "An error has occurred.",

            "exceptionMessage": "PO line number, PO type, and PO number must be filled in for the system to add the purchase order to the details.",

icon

Best answer by andrewm80 18 June 2021, 09:38

View original

2 replies

RESOLVED

This is the request that worked for me

{

     "CreateBill": {

    "value": "true"

  },

  "VendorID": {

    "value": "3GM001"

  },

  "Location": {

    "value": "MAIN"

  },

  "Details": [

    {

      "POOrderNbr": {

        "value": "PODP003474"

      },

      "POOrderType": {

        "value": "Normal"

      },      "POLineNbr": {

        "value": 1

      }

    }

  ]

}

Userlevel 2

Hi Andrew, I have similar issue and maybe you already solved it. Your example will work only if your PO has just one LineNbr. What about if the PO has more than one line in the detail? did you get how to associate the POLineNbr in Purchase Receipt via Rest API?

I appreciate your comments.

Regards

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved