Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to create an Order #230

Open
champcbg opened this issue Jul 27, 2020 · 0 comments
Open

Trying to create an Order #230

champcbg opened this issue Jul 27, 2020 · 0 comments

Comments

@champcbg
Copy link

I am getting this error when attempting to create an order

"order placement": [
      "Order GUID is not generated"
    ]

I have looked through the code for API and this error is not generated in that project.

I attempted this and it didnt work either

 [JsonProperty("order_guid")]
        public Guid OrderGuid { get; set; }

This is the section in the CreateOrder Endpoint where the error is generated

            var placeOrderResult = PlaceOrder(newOrder, customer);

            if (!placeOrderResult.Success)
            {
                foreach (var error in placeOrderResult.Errors)
                {
                    ModelState.AddModelError("order placement", error);
                }

                return Error(HttpStatusCode.BadRequest);
            }

Seems like the error is being thrown in the nopCommerce not the API

Can I get some help around this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant