postnl / postnl-magento2

This is the official Magento 2 extension for the logistics company PostNL. Add shipping options and parcelshops to your checkout. Create labels with track and trace functionality from the backend.
59 stars 60 forks source link

[BUG] API Shippingmethod endpoint method name #395

Open downforce80 opened 1 month ago

downforce80 commented 1 month ago

We are currently integrating a connector between Magento and our CRM/ERP system. We have encountered an issue with the shipping method names not matching.

When we query the endpoint rest/V1/shippingmethod, it returns the shipping method name as "tig_postnl_tig_postnl". However, in the Order details, the shipping method name appears as "tig_postnl_regular".

Steps to Reproduce: To Reproduce Query the rest/V1/shippingmethod endpoint. Compare the result with the shipping method name listed in the Order details or query rest/V1/orders/{orderId}

Expected result The rest/V1/shippingmethod endpoint should return "tig_postnl_regular" as it appears in the Order details.|

Actual result The endpoint returns "tig_postnl_tig_postnl", leading to a mismatch that causes our integration process to fail.

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information