Skip to content

Place Order API is not working properly #574

Description

@harshit-webkul

Describe the bug
The Place Order API is not functioning as expected. When the API is called, the order is either not created successfully, returns an incorrect response, or fails without proper error handling.

To Reproduce
Steps to reproduce the behavior:

  1. Add products to the cart (customer or guest).
  2. Set required checkout details (address, shipping method, payment method).
  3. Hit the Place Order API
  4. Observe the API response.

Response:

{
"errors": [
{
"message": "Warning: Something went wrong.",
"locations": [
{
"line": 2,
"column": 5
}
],
"path": [
"placeOrder"
],

Expected behavior
Order should be placed successfully.

  • API should return:
    -> Order ID
    -> Order number
    -> Success message
  • Cart should be cleared after order placement.

Actual Result:

  • Order is not placed successfully or
  • API returns incorrect/null response or
  • API throws an error without a meaningful message.

Screenshots
If applicable, add screenshots to help explain your problem.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions