picqer/sendcloud-php-client

Invalid shipping_method error whene creating a new parcel

davalb opened this issue · 2 comments

Hi,

when I try the example from the readme-file $parcel->shipment = 10;
I get this error

SendCloud error: shipping_method: "Invalid shipping method"

Any help much appreciated! Thanks

You probably do not have access to shipping method number 10. As mentioned in the readme you can retrieve all the valid shipping methods in your account with $sendCloud->shippingMethods()->all()

You're right, thanks a lot.