The OrderApi placeOrder method is responding with a blank message. There is neither an order ID nor a failure message or exception being triggered.
Orders are getting placed correctly, but with no response coming back, it’s uncertain whether the order failed or succeeded.
Api used
Here’s how it’s being called:
$result = $this->orderApi->placeOrder($order, “2.0”);
After debugging OrderApi, I can see this message, even when an order failed:
[{},200,{“Date”:[“Sun, 13 Apr 2025 08:11:07 GMT”],“Content-Type”:[“application/json”],“Transfer-Encoding”:[“chunked”],“Connection”:[“keep-alive”],“Vary”:[“Origin”,“Access-Control-Request-Method”,“Access-Control-Request-Headers”],“requestId”:[“f747491d-900c-47b4-a324-4ac5acec62d9”],“X-Content-Type-Options”:[“nosniff”],“X-XSS-Protection”:[“1; mode=block”],“Cache-Control”:[“no-cache, no-store, max-age=0, must-revalidate”],“Pragma”:[“no-cache”],“Expires”:[“0”],“Strict-Transport-Security”:[“max-age=31536000 ; includeSubDomains”],“X-Frame-Options”:[“DENY”]}]
Can you please help? OrderApi placeOrder method respond with empty response. #35
Edit