I am using REST API and e-commerce api for this development.
My test merchant in PROD, is under Payment Plus Plan.
Here is my goal, each successful transaction, MUST attached to an Employee of my choice, and attached to a Customer of my choice.
I have an Employee, set in web portal.
I have an existed PaymentID, created by E-Comm /v1/charges endpoint.
I ran the following code in c#
--------------------
var client = new RestClient("https://api.clover.com/v3/merchants/mID/payments/paymentID?access_token=token");
var request = new RestRequest(Method.POST);
request.AddHeader("content-type", "application/json");
request.AddParameter("application/json", "{\"employee\":{\"id\":\""+ EmployeeIDOfMyChoice + "\"}}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
--------------------------
The status return as "SUCCESS", but nothing has changed........
Same story, but I want to attach a customer id of my choice to a payment, so reporting works perfectly.