Skip to main content

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.",

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

      }

    }

  ]

}


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