Using the Ruby Gem - Peddler to access the MWS API. We have to send the ship from address. The documentation says it needs to be a hash, but I can't get this to work..
ship_from_address = { name: "Schmo", addressline1: "929 Whatever Dr.", city: "Fun Town", stateorprovincecode: "XX", postalcode: "12345"}
And here is the actual call to the API with the client setup correctly, because I can access other data where the request is more simple..
plan = client.create_inbound_shipment_plan(ship_from_address, inbound_shipment_plan_request_items)
And here is the link to the amazon documentation..
This is what the format of the address field looks like when I request it from the API..
{"ShipmentData"=>{"member"=>{"LabelPrepType"=>"SELLER_LABEL","DestinationFulfillmentCenterId"=>"IND2", "ShipFromAddress"=>{"City"=>"XXX", "CountryCode"=>"XX", "PostalCode"=>"12345", "Name"=>"Schmo", "AddressLine1"=>"3434 Smitherens Rd.", "StateOrProvinceCode"=>"YY", "AddressLine2"=>"#13A"}, "ShipmentId"=>"FBA37ZLXXX", "AreCasesRequired"=>"false", "ShipmentName"=>"2015-12-22 09:58", "ShipmentStatus"=>"IN_TRANSIT"}}}
Any ideas?