Skip to content

Commit 4b61e68

Browse files
committed
add Sample CreateShipment MerchantFulfillment #128
1 parent 6195e8e commit 4b61e68

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

README.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,62 @@ var amazonConnection = new AmazonConnection(new AmazonCredential()
383383
});
384384
```
385385

386+
---
387+
388+
## Sample for create shipment operation from MerchantFulfillment
389+
390+
```CSharp
391+
ShipmentRequestDetails shipmentRequestDetails = new ShipmentRequestDetails()
392+
{
393+
AmazonOrderId = "999-9999-999999",
394+
ItemList = new ItemList()
395+
{
396+
new FikaAmazonAPI.AmazonSpApiSDK.Models.MerchantFulfillment.Item()
397+
{
398+
OrderItemId = "52986411826454",
399+
Quantity = 1
400+
}
401+
402+
},
403+
ShipFromAddress = new Address()
404+
{
405+
AddressLine1 = "300 St",
406+
City = "City",
407+
PostalCode = "48123",
408+
409+
Phone = "999999999",
410+
StateOrProvinceCode = "MI",
411+
CountryCode = "US",
412+
Name = "FirstName LastName"
413+
},
414+
PackageDimensions = new PackageDimensions()
415+
{
416+
Height = 10,
417+
Width = 10,
418+
Length = 10,
419+
Unit = UnitOfLength.Inches
420+
},
421+
Weight = new Weight()
422+
{
423+
Value = 10,
424+
Unit = UnitOfWeight.Oz
425+
},
426+
ShippingServiceOptions = new ShippingServiceOptions()
427+
{
428+
DeliveryExperience = DeliveryExperienceType.NoTracking,
429+
CarrierWillPickUp = false,
430+
CarrierWillPickUpOption = CarrierWillPickUpOption.ShipperWillDropOff
431+
}
432+
};
433+
434+
var shipmentRequest = new CreateShipmentRequest(
435+
shipmentRequestDetails,
436+
shippingServiceId: "UPS_PTP_2ND_DAY_AIR",
437+
shippingServiceOfferId: "WHgxtyn6qjGGaC");
438+
439+
var shipmentResponse = amazonConnection.MerchantFulfillment.CreateShipment(shipmentRequest);
440+
```
441+
386442
---
387443
## Q & A
388444

0 commit comments

Comments
 (0)