Creating a purchase order via API

Creating a purchase order via API

Hi

This is the payload:

{
"purchaseorder_number": "PO-1002",
"vendor_id": 239026000000448513,
"date": "2022-06-28",
"status_formatted": "Draft",
"line_items": [

{
"item_id": 239026000000040061,
"quantity": 1,
"purchase_rate": 10.5
}
]
}

I get the following Error:
The operation failed with an error. [404] Kontoauszug existiert nicht.

It could be, that I'm missing some of the parameters in the line_items. Unfortunately the documentation isn't clear on which ones are mandatory. which are the mandatory line_items parameters?

Regards
Raphael