Skip to content

Commit 69dbd77

Browse files
committed
fix #429
1 parent 1ad1680 commit 69dbd77

File tree

8 files changed

+176
-380
lines changed

8 files changed

+176
-380
lines changed

Source/FikaAmazonAPI.SampleCode/FulFillmentInboundSample.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,35 @@ public void GetPrepInstructions()
3434
amazonConnection.FulFillmentInbound.GetPrepInstructions(parm);
3535
}
3636

37+
public void CreateShipmentPlan()
38+
{
39+
FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.CreateInboundShipmentPlanRequest oCreateInboundShipmentPlanRequest = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.CreateInboundShipmentPlanRequest();
40+
41+
oCreateInboundShipmentPlanRequest.ShipToCountryCode = "AE";
42+
oCreateInboundShipmentPlanRequest.LabelPrepPreference = FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.LabelPrepPreference.SELLERLABEL;
43+
44+
45+
oCreateInboundShipmentPlanRequest.ShipFromAddress = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.Address();
46+
oCreateInboundShipmentPlanRequest.ShipFromAddress.AddressLine1 = "Add";
47+
oCreateInboundShipmentPlanRequest.ShipFromAddress.AddressLine2 = "ADD2";
48+
oCreateInboundShipmentPlanRequest.ShipFromAddress.City = "City";
49+
oCreateInboundShipmentPlanRequest.ShipFromAddress.CountryCode = "AE";
50+
oCreateInboundShipmentPlanRequest.ShipFromAddress.PostalCode = "0000";
51+
oCreateInboundShipmentPlanRequest.ShipFromAddress.Name = "Name";
52+
53+
54+
55+
oCreateInboundShipmentPlanRequest.InboundShipmentPlanRequestItems = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.InboundShipmentPlanRequestItemList();
56+
FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.InboundShipmentPlanRequestItem oInboundShipmentPlanRequestItem = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.InboundShipmentPlanRequestItem();
57+
oInboundShipmentPlanRequestItem.SellerSKU = "16118";
58+
oInboundShipmentPlanRequestItem.ASIN = "B08BXH6234";
59+
oInboundShipmentPlanRequestItem.Quantity = 1;
60+
oInboundShipmentPlanRequestItem.Condition = FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.Condition.NewItem;
61+
62+
oCreateInboundShipmentPlanRequest.InboundShipmentPlanRequestItems.Add(oInboundShipmentPlanRequestItem);
63+
var oResult = amazonConnection.FulFillmentInbound.CreateInboundShipmentPlan(oCreateInboundShipmentPlanRequest);
64+
65+
}
66+
3767
}
3868
}

0 commit comments

Comments
 (0)