Hi,
I'm trying to use boto to enter a fulfillment order using MWS. However, I get a "Bad request" error with the message "Top level element may not be treated as a list". My example code is below. I assume that there is a mistake with the way I submit "Items". Can anyone point me in the right direction?
Cheers,
Martin
from boto.mws.connection import MWSConnection
mws = MWSConnection(mws_access_key, mws_secret_key, Merchant=mws_seller_id)
address = dict(Name='John Doe', Line1='1 School Street', DistrictOrCounty='United States', City='Beverly Hills',
StateOrProvinceCode='CA', CountryCode='US', PostalCode='90210')
items = [dict(SellerSKU='2', SellerFulfillmentOrderItemId='2', Quantity='1')]
r = mws.create_fulfillment_order(SellerFulfillmentOrderId='XXX0911', DisplayableOrderId='XXX0911',
DisplayableOrderDateTime='2015-04-05T07:00:00Z',
DisplayableOrderComment='Thank you for your order!',
ShippingSpeedCategory='Expedited',
DestinationAddress=address,
Items=items, FulfillmentAction='Hold')