question

globaliwebsite avatar image
globaliwebsite asked David Marginian Deactivated edited

sandbox create order end point not working

Hello,


since yesterday create order point not working its giving 500 internal server error.


var client = new RestClient("https://scl-sandbox.dev.clover.com/v1/orders");
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json");
request.AddHeader("Content-Type", "application/json");
request.AddHeader("Authorization", "Bearer xxxxxxxxx");
request.AddParameter("application/json", "{\"items\":[{\"amount\":200,\"currency\":\"usd\",\"description\":\"item\",\"quantity\":1}],\"metadata\":{\"newKey\":\"testing\"},\"shipping\":{\"address\":{\"city\":\"Texas\",\"country\":\"US\",\"line1\":\"abc abc\",\"postal_code\":\"50001\",\"state\":\"TX\"},\"name\":\"nausss\",\"phone\":\"00000\"},\"currency\":\"usd\",\"email\":\"abc@gmail.com\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);


Error


{
"message":"500 Internal Server Error"
"error":{
"type":"api_error"
"code":"processing_error"
"message":"Internal Server Error."
}
}


Orders
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Marginian avatar image
David Marginian Deactivated answered David Marginian Deactivated edited

This is the same problem you already reported. The name is invalid, use a first/last name for "name" like "John Doe". I have already written this up as an issue on our side (you should get a validation error, not a 500).

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community