This is the complete posting i am doing and it return errors Please guide me to fix this
- var client = new RestClient("https://scl-sandbox.dev.clover.com/v1/orders/1P7VFVYXAHKFG/pay");
- var request = new RestRequest(Method.POST);
- request.AddHeader("Accept", "application/json");
- request.AddHeader("Content-Type", "application/json");
- request.AddHeader("Authorization", "Bearer <authtoken>");
- request.AddParameter("application/json", "{\"ecomind\":\"ecom\",\"source\":\"<token>\",\"external_reference_id\":\"256\"}", ParameterType.RequestBody);
- IRestResponse response = client.Execute(request);
- {
- "message":"404 Not Found"
- "error":{
- "type":"invalid_request_error"
- "code":"invalid_request"
- "message":"Invalid token or token not found"
- }
- }
Please advice me what is getting wrong so i can fix it and complete the integration.