goshippo / shippo-ruby-client

Shipping API Ruby library (USPS, FedEx, UPS and more)
https://goshippo.com/docs/
76 stars 72 forks source link

Fix "The property 'object_purpose' is not defined for Shippo::API::Ap… #65

Closed yauhenininjia closed 7 years ago

yauhenininjia commented 7 years ago

…iObject." error

According to the docs property object_purpose is required for successful creating shipments and shipping labels

mootrichard commented 7 years ago

This is actually a variance of your version of the API and the most recent version of the client library. If you upgrade your API to the latest version you won't receive this error. Additionally, you can use a previous version of the client library to avoid that error from appearing.