My Products
Help
ErikW
PARTNER

Transfer orders purchase receipt 400 error

by ErikW

Hi we are trying to create a purchase receipt and connect it to a transfer order using the v1 endpoint for purchase receipt.

This is the order:

 

unnamed (1).png

 This is the json of our request:
{
  "lines": [
    {
      "operation": "Insert",
      "transferOrderType": {
        "value": "TransferOrder"
      },
      "transferOrderNbr": {
        "value": "000087"
      },
      "transferOrderLineNbr": {
        "value": 1
      }
    }
  ],
  "receiptType": {
    "value": "TransferReceipt"
  },
  "hold": {
    "value": false
  },
  "date": {
    "value": "2024-02-05T07:26:56.335Z"
  },
  "warehouseId": {
    "value": "90"
  }
}


And this is the error we are getting: 
{
    "message": "Error creating purchase receipt. No Record found. TransferOrderNbr: '000087'"
}


It all seems to work as intended using the UI but we can not get it to work in the api. Any ideas?

1 REPLY 1
Sandra Anté
VISMA

by Sandra Anté

Hi Erik!

Can you please specify the workflow that you've used so far so that we can replicate it in our environment?
Please also include JSON for the transfer order if possible. Otherwise include screenshots from sales order (ScreenID=SO301000).

Thank you!

Kind regards
Sandra