Skip to main content
Solved

Purchase Receipt via Rest API

  • Jun 17, 2021 7:29 AM UTC
  • 2 replies
  • 577 views
  • Translate All

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

Best answer by andrewm80

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

      }

    }

  ]

}

View original

2 replies

  • Author
  • Freshman II
  • Answer
  • Jun 18, 2021 7:38 AM UTC

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

      }

    }

  ]

}

Translate

peterpino91
Freshman I
  • Freshman I
  • May 28, 2022 5:25 PM UTC

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

Translate