Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weight error #132

Open
shekhar092 opened this issue Jun 15, 2018 · 1 comment
Open

Weight error #132

shekhar092 opened this issue Jun 15, 2018 · 1 comment

Comments

@shekhar092
Copy link

shipper = { :name => "Developer",
:company => "Sunlight",
:phone_number => "555-555-5555",
:address => "450 Grim Ln",
:city => "York",
:state => "PA",
:postal_code => "17406",
:country_code => "US" }

recipient = { :name => "Ty Po",
:company => "Sunfarm",
:phone_number => "555-555-5555",
:address => "5913-C NE 127th Ave, Suite 800 Suite 800",
:city => "Vancouver",
:state => "WA",
:postal_code => "98682",
:country_code => "US",
:residential => "true" }

packages = []

packages << {
:weight => {:units => "LB", :value => 160},
:dimensions => {:length => 10, :width => 5, :height => 4, :units => "IN" }
}

rate = fedex.rate(:shipper=>shipper,
:recipient => recipient,
:packages => packages,
:service_type => "GROUND_HOME_DELIVERY"
)

Getting Package 1 - Weight is missing or invalid error. How to insert quantity here if I have 2 same package?

@reymon29
Copy link

reymon29 commented Jul 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants