karrio icon indicating copy to clipboard operation
karrio copied to clipboard

Canadapost cancel error (Void) is not behing catched

Open jacobshilitz opened this issue 1 year ago • 6 comments

Describe the bug Canada post does not catch a void cancel error with empty message

<?xml version="1.0" encoding="UTF-8"?>

<messages xmlns="http://www.canadapost.ca/ws/messages"/>

as the docs say it return 404. I can't see the status code to be passed to the parse_error_response method

in addtion, we need to check if a menifest was already ishued, and if yes we need to do a shipmentrefund becouse a [voidshipment](https://www.canadapost-postescanada.ca/info/mc/business/productsservices/developers/services/shippingmanifest/voidshipment.jsf l) is not allowed after a manifest was issued

Wouldn't checking status codes be a good practice?

jacobshilitz avatar Sep 11 '24 20:09 jacobshilitz