Skip to content

Commit 144966f

Browse files
committed
sample
1 parent 290b59c commit 144966f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Source/FikaAmazonAPI.SampleCode/Program.cs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ static async Task Main(string[] args)
4646
IsActiveLimitRate = true
4747
});
4848

49+
CreateShipmentPlan(amazonConnection);
50+
4951

5052

5153
var aha = amazonConnection.ProductType.SearchDefinitionsProductTypes(new Parameter.ProductTypes.SearchDefinitionsProductTypesParameter()
@@ -269,6 +271,34 @@ static async Task Main(string[] args)
269271
}
270272

271273

274+
public static void CreateShipmentPlan(AmazonConnection amazonConnection)
275+
{
276+
FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.CreateInboundShipmentPlanRequest oCreateInboundShipmentPlanRequest = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.CreateInboundShipmentPlanRequest();
277+
278+
oCreateInboundShipmentPlanRequest.ShipToCountryCode = "AE";
279+
oCreateInboundShipmentPlanRequest.LabelPrepPreference = FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.LabelPrepPreference.SELLERLABEL;
280+
281+
282+
oCreateInboundShipmentPlanRequest.ShipFromAddress = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.Address();
283+
oCreateInboundShipmentPlanRequest.ShipFromAddress.AddressLine1 = "Add";
284+
oCreateInboundShipmentPlanRequest.ShipFromAddress.AddressLine2 = "ADD2";
285+
oCreateInboundShipmentPlanRequest.ShipFromAddress.City = "City";
286+
oCreateInboundShipmentPlanRequest.ShipFromAddress.CountryCode = "AE";
287+
oCreateInboundShipmentPlanRequest.ShipFromAddress.PostalCode = "0000";
288+
oCreateInboundShipmentPlanRequest.ShipFromAddress.Name = "Name";
272289

290+
291+
292+
oCreateInboundShipmentPlanRequest.InboundShipmentPlanRequestItems = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.InboundShipmentPlanRequestItemList();
293+
FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.InboundShipmentPlanRequestItem oInboundShipmentPlanRequestItem = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.InboundShipmentPlanRequestItem();
294+
oInboundShipmentPlanRequestItem.SellerSKU = "16118";
295+
oInboundShipmentPlanRequestItem.ASIN = "B08BXH6234";
296+
oInboundShipmentPlanRequestItem.Quantity = 1;
297+
oInboundShipmentPlanRequestItem.Condition = FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.Condition.NewItem;
298+
299+
oCreateInboundShipmentPlanRequest.InboundShipmentPlanRequestItems.Add(oInboundShipmentPlanRequestItem);
300+
FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInbound.CreateInboundShipmentPlanResult oResult = amazonConnection.FulFillmentInbound.CreateInboundShipmentPlan(oCreateInboundShipmentPlanRequest);
301+
302+
}
273303
}
274304
}

0 commit comments

Comments
 (0)