Error while creating the purchase order through API
https://demowp.glansadigital.com/wp-json/wc/v3/atum/purchase-orders
JSON:
{
"supplier":null,
"multiple_suppliers": true,
"description": " ",
"date_expected": "2024-02-08T15:26:41",
"status": "atum_received",
"line_items": [
{
"product_id": 1338,
"quantity": 100
},
{
"product_id": 862,
"quantity": 20
}
]
}
Response:
{
"code": "internal_server_error",
"message": "<p>There has been a critical error on this website.</p><p><a href=\"https://wordpress.org/documentation/article/faq-troubleshooting/\">Learn more about troubleshooting WordPress.</a></p>",
"data": {
"status": 500
},
"additional_errors": []
}