Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to successfully get FulfillmentInboundService getLabels call to work #739

Open
solverware opened this issue May 30, 2024 Discussed in #738 · 0 comments
Open

unable to successfully get FulfillmentInboundService getLabels call to work #739

solverware opened this issue May 30, 2024 Discussed in #738 · 0 comments

Comments

@solverware
Copy link

Discussed in #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;

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant