Replies: 1 comment
-
Hi @herolzwcj , Please Update Nuget to v1.0.28 and check this sample if will work with you , change data to real data AmazonConnection amazonConnection = new AmazonConnection(new AmazonCredential()
{
AccessKey = Environment.GetEnvironmentVariable("AccessKey"),
SecretKey = Environment.GetEnvironmentVariable("SecretKey"),
RoleArn = Environment.GetEnvironmentVariable("RoleArn"),
ClientId = Environment.GetEnvironmentVariable("ClientId"),
ClientSecret = Environment.GetEnvironmentVariable("ClientSecret"),
RefreshToken = Environment.GetEnvironmentVariable("RefreshToken"),
MarketPlace = MarketPlace.UnitedArabEmirates, //MarketPlace.GetMarketPlaceByID("A2VIGQ35RCS4UG")
IsActiveLimitRate = true
}) ;
GetEligibleShipmentServicesRequest getEligibleShipmentServicesRequest = new GetEligibleShipmentServicesRequest()
{
ShippingOfferingFilter = new ShippingOfferingFilter()
{
CarrierWillPickUp = CarrierWillPickUpOption.CarrierWillPickUp,
DeliveryExperience = DeliveryExperienceOption.NoTracking,
IncludePackingSlipWithLabel = true,
IncludeComplexShippingOptions = false
},
ShipmentRequestDetails = new ShipmentRequestDetails()
{
AmazonOrderId = "22-333333-3333333333",
ItemList = new ItemList()
{
new Item()
{
ItemDescription ="AAAAA",
Quantity=1,
OrderItemId="11111111"
}
},
ShipFromAddress =new Address()
{
AddressLine1 ="addd",
City="AAAA",
DistrictOrCounty="",
Email="sss@isskd.com",
Name="TEST",
PostalCode="97122",
CountryCode="AE",
Phone="+97150999999"
},
PackageDimensions=new PackageDimensions()
{
Height =1,
Length=1,
Width=1,
Unit=UnitOfLength.Centimeters
},
Weight=new Weight(1,UnitOfWeight.G),
ShippingServiceOptions=new ShippingServiceOptions()
{
DeliveryExperience=DeliveryExperienceType.NoTracking,
CarrierWillPickUp=false
}
},
};
var result=amazonConnection.MerchantFulfillment.GetEligibleShipmentServices(getEligibleShipmentServicesRequest); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thank you for providing such a powerful tool. I have put it into my program.
Can you write an example about geteligibleshipmentservices?
I have tried many times without success!!
Beta Was this translation helpful? Give feedback.
All reactions