Amazon-SP-API-CSharp icon indicating copy to clipboard operation
Amazon-SP-API-CSharp copied to clipboard

unable to successfully get FulfillmentInboundService getLabels call to work

Open solverware opened this issue 1 year ago • 0 comments

Discussed in https://github.com/abuzuhri/Amazon-SP-API-CSharp/discussions/738

Originally posted by solverware May 29, 2024 I am trying to verify I'm using the GetLabels method from the FulFillmentInboundService to work. I am using the test case that Amazon provides for their sandbox. I get the error message:

"Parameter shipmentId has been specified as both a path parameter and a query parameter." Please advise!

public string GetLabelUrl(string shipmentID, AmazonCredential amazonCredential) { var service = new FulFillmentInboundService(amazonCredential); var label = new ParameterGetLabels(); label.PageType = FikaAmazonAPI.Utils.Constants.PageType.PackageLabel_Letter_2; label.LabelType = FikaAmazonAPI.Utils.Constants.LabelType.BARCODE_2D; label.shipmentId = "348975493";
LabelDownloadURL url = null; try { url = service.GetLabels(label); } catch (Exception exc) { throw; }

return url.DownloadURL;

}

solverware avatar May 30 '24 21:05 solverware