-
-
Notifications
You must be signed in to change notification settings - Fork 101
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
Canada Post - Individual Group IDs Created for Each Shipment, Causing Inefficient Use of End-of-Day Manifests #679
Comments
@danh91 what do you think about using todays date or the let the api pass the also I think we need to remove karrio/modules/connectors/canadapost/karrio/providers/canadapost/shipment/create.py Line 93 in 5b235d9
canada post docs:
|
That's one way to appro
Yes using the date can be a way to address it.
The Once the uniq issue is solved, Is there a reason to completely remove it? |
p.s. I release now that you use group_id for mulit-parcel shipment 🤔 |
also we need to change the cancel method that instead of void it request shipment refund. |
😅 It is way more complex than that. It is supposed to:
If it is not behaving like this then we have a bug. In fact if you call cancel for something that has been submitted it will fail because it needs a refund call prior |
exactly! and even worse it show in dashboard that it's canceled, as stated in #682 Shipment is marked as purchased I don't see a type submitted also noticed another bug where the manifest dashboard take the first shipments reference and set it as the reference for the manifest |
when you don't submit and add a At least that's how I understood it. |
oh my bad, I thought you have submitted status in karrio. that's correct, but I can't find the logic of canceling in the codebase, but this is how it supposed to be. |
Here is the current implementation. it is done in the proxy.py file karrio/modules/connectors/canadapost/karrio/mappers/canadapost/proxy.py Lines 106 to 192 in 5b235d9
|
We also need to account for the possibility of multiple accounts for the same carrier, such as Canada Post. Therefore, the manifesting process must be exclusive per account to avoid conflicts or errors when generating manifests. |
Description:
A representative from Canada Post has reported an issue with how Karrio handles Group IDs for Canada Post shipments. The concern is that each shipment is being assigned its own Group ID, which quickly leads to hitting the limits for End-of-Day (EOD) manifests. This is inefficient compared to the expected behavior of grouping multiple shipments under a single Group ID.
Expected Behavior:
Current Behavior:
Steps to Reproduce:
Impact:
This behavior can lead to faster consumption of the EOD manifest limits and makes shipment management less efficient, forcing users to manage multiple manifests instead of a single grouped one. Updating the manifest GUI to work by groups rather than individual shipments would further improve efficiency.
For reference from Canada Post:
Performance limitations
To avoid a timeout of our servers, please follow these recommendations:
· Do not include more than 30 groups per manifest (i.e., maximum of 30 group-ids in one Transmit Shipments request.)
· Do not put more than 5,000 shipments in one group.
System limitations
To avoid an error, please do not exceed the following limits before performing a Transmit Shipments call:
· Maximum of 50 groups per manifest (error 9109 if exceeded).
· Maximum of 10,000 shipments in one group (error 9110 if exceeded).
· Maximum of 10,000 shipments across multiple groups (error 9108 if exceeded).
Body (REST)
The text was updated successfully, but these errors were encountered: