question

superdave avatar image
superdave asked David Marginian Deactivated commented

scl v1/charges pay for /v3/orders

Is it even possible?

When I tried, it displayed a message saying, "must be card present".


I can solely use scl v1 endpoints for all my orders but I need to associate an employee to an order created by v1/orders endpoint?


please instruct.


Thanks,
David

e-commerce api
2 comments
10 |2000

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

superdave avatar image superdave commented ·

I am receiving

"{"message":"400 Bad Request","error":{"type":"invalid_request_error","code":"invalid_request","message":"Please provide valid collection of items for this order"}}"


I am using:

client = new RestClient("https://scl.clover.com/v1/orders");

request = new RestRequest(Method.POST);

request.AddHeader("accept", "application/json");

request.AddHeader("authorization", "Bearer " + App.ACCESS_TOKEN);

request.AddHeader("content-type", "application/json");

request.AddParameter("application/json", "{\"amount\":10000,\"currency\":\"CAD\"}", ParameterType.RequestBody);

IRestResponse response =client.Execute(request);


It's a C#

0 Likes 0 ·
David Marginian avatar image David Marginian ♦♦ superdave commented ·

That error seems pretty self explanatory, add some items to the order.

0 Likes 0 ·

0 Answers

·

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