Question: I am creating a PO receipt via my own custom endpoint using the rest API. I can create the receipt and add the lines ok and even assign a PO Nbr, Line Nbr etc to the line as well. But when I view the PO Receipt in Acumatica the the PO Receipt Order Link does not appear under the Purchase Orders tab.

Is there something I have to do to get this link there? As I think it affects tax amounts when the bill is created.

Thanks

Answer: 
What Acumatica version are you working with?

I created a PO Receipt via Postman using [this](https://stackoverflow.com/questions/63251817/acumatica-purchase-order-receipt-api-can-not-find-po-order-nbr) reference.

I adapted it to my data (Acumatica Sales Demo data) as follows:
[![enter image description here](https://i.stack.imgur.com/KXRoD.png)](https://i.stack.imgur.com/KXRoD.png)

The result looks correct in Acumatica:

* We have the Purchase Receipt with the correct reference to the source PO:
[![enter image description here](https://i.stack.imgur.com/Eb3jW.png)](https://i.stack.imgur.com/Eb3jW.png)
* We have the reference to the Purchase Receipt in the PO page:
[![enter image description here](https://i.stack.imgur.com/xwWy1.png)](https://i.stack.imgur.com/xwWy1.png)
Not really an answer and not sure if this is a bug in Acumatica.

But if make the call

```
{
"CreateBill": {"value": true},
"VendorID": {"value": "500508"},
"VendorRef": {"value": "VendorREF"},
"Details": [
    {
        "InventoryID": {"value":"E/104038"},
        "ReceiptQty": {"value": 1},
        "POOrderNbr": {"value": "40393" },
        "POLineNbr": {"value": 1},
        "POOrderType": {"value": "Normal"}

    }
]

```

}

On the Default API endpoint, the receipt appears on the PO.

If I make the same call on my own custom endpoint it doesnt