SendCloud / SendCloud-API-PHP-Wrapper

Official SendCloud API PHP Wrapper
MIT License
15 stars 12 forks source link

Unable to cancel shipment #14

Closed jschram closed 7 years ago

jschram commented 7 years ago

When I try to cancel a shipment I get the following error:

{
  "error": {
    "request": "api/v2/parcels/1234567",
    "code": 405,
    "message": "Method \"DELETE\" not allowed."
  }
}

(Obviously, I've removed the id of the parcel)

I'm calling the DELETE method on the mentioned request. Shouldn't this be possible?

Ecno92 commented 7 years ago

Canceling shipments is only possible through the SendCloud Panel web interface. It may become supported through the API in the future, but for now using the browser is the only way to cancel a shipment.

jschram commented 7 years ago

Good to know. Please update the API documentation accordingly, as it still mentions support for DELETE on the Parcels resource: image

Ecno92 commented 7 years ago

@jschram Thanks for your feedback. I've registered an internal issue to get it fixed in the near future. :smiley: