1

I am able to buy Shipment for Priority using

 shipment.Buy(shipment.LowestRate(includeCarriers: new List<string> { "USPS" }, includeServices: new List<string>() { "Priority" }));

How can I buy Media Mail instead of Priority?

I tried shipment.Create() and checked shipment.rates but there only available option are Priority and Express.

Manjay_TBAG
  • 2,176
  • 3
  • 23
  • 43

1 Answers1

2

Check out the Options object on a Shipment. You'll see the special_rates_eligibility property where you can pass USPS.MEDIAMAIL.

KFunk
  • 2,956
  • 22
  • 33