[BUG]:[API V3] Update shop shipping profile returns new error about origin_postal_code #749
Replies: 24 comments
-
I also have the same problem |
Beta Was this translation helpful? Give feedback.
-
We are aware of this issue. We are working on a fix that should be in place early next week. |
Beta Was this translation helpful? Give feedback.
-
This should be fixed now. Please let us know if you continue to get errors. |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen still getting same error for previous client. https://github.com/etsy/open-api/issues/433 |
Beta Was this translation helpful? Give feedback.
-
@amitshuklaCedcoss Can you give me the shop id and the error message you are getting? An updated UUID would be helpful too. Thanks! |
Beta Was this translation helpful? Give feedback.
-
[shop_id] => 20232052 hope this info will help you in debug. |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen any luck? |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen @jasonpincin can you plz re-open this case until it's resolved? |
Beta Was this translation helpful? Give feedback.
-
@amitshuklaCedcoss Can you give me the full payload and headers you are sending to the api for this (remove your api key and token)? |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen hopes this data will be sufficient for debugging. |
Beta Was this translation helpful? Give feedback.
-
@amitshuklaCedcoss Is this an In update, there is no I've been trying to recreate your issue and so far haven't been successful. Do I have your permission to log into the shop listed above (20232052) and attempt to make test create/update calls there to try to debug this? |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen please try to update the listing (listing_id: 793723890), I had tried after removing processing_min and processing_max from updateListing call. |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen did u tried to regenerate above bug? |
Beta Was this translation helpful? Give feedback.
-
@amitshuklaCedcoss Not yet. I've been backlogged on some stuff. Will try to get it done as soon as I can. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Oh my goodness. I can't believe I didn't see this before... The problem is that the item_length should be the greatest value of the item dimensions. So in your update you have item_length as 9 and item_width as 12. Swap those values and it will work. So sorry I didn't catch that before. I had to duplicate the problem to see it. I'll look at documentation and errors to see if we can get it to explain this better. |
Beta Was this translation helpful? Give feedback.
-
Thank you so much @etsyachristensen |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen again getting this error on different stores error details :
I had double-checked that item_length must be greater than width and height. I hope the above data will help in debugging this issue. |
Beta Was this translation helpful? Give feedback.
-
The error you are getting is that you don't have a domestic shipping profile. A domestic option is required when the profile is not set to ship for free domestically. I would check the shipping profile settings. |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen client had updated shipping profile for domestic option Here is the response header for issue debugging
|
Beta Was this translation helpful? Give feedback.
-
Hi @etsyachristensen , |
Beta Was this translation helpful? Give feedback.
-
Sorry for the delay. I just tried to look up that ID (27068452) and that shop has no apps attached. I'm not sure how you even got that error message given the shop owner hasn't authorized any apps. |
Beta Was this translation helpful? Give feedback.
-
may be client had removed my app from shop, but I'm still able to call getShop , getShopProductionPartners, getListing etc. please try once again to check the original error of Invalid Shipping Data Thanks @etsyachristensen |
Beta Was this translation helpful? Give feedback.
-
@etsyachristensen getting this error again while the length of the item is greater than other dimensions(height, width). Please help to find out the exact issue for this. error_details:
Step to reproduce:
Additional_details:
@etsyachristensen If any other data is required. please let me Know |
Beta Was this translation helpful? Give feedback.
-
@Deepshikha-cedcoss We are moving this issue to our Discussion board since we are closing down the issue board. |
Beta Was this translation helpful? Give feedback.
-
Is there an existing issue for this?
Describe the bug
Hi ,
I use api POST shop shipping profile to create a new one with the shipping origin is VIETNAM, the payload:
{ "title": "new shipping", "min_processing_time": 1, "max_processing_time": 2, "origin_country_iso": "VN", "destination_country_iso": "VN", "primary_cost": 1000, "secondary_cost": 888, "min_delivery_days": 1, "max_delivery_days": 2, "processing_time_unit": "business_days" }
then I get the success message:
{ "shipping_profile_id": 171330656318, "title": "new shipping", "user_id": 605453254, "min_processing_days": 1, "max_processing_days": 2, "processing_days_display_label": "1-2 business days", "origin_country_iso": "VN", "origin_postal_code": "", "profile_type": "manual", "is_deleted": false, "domestic_handling_fee": 0, "international_handling_fee": 0, "shipping_profile_destinations": [ { "shipping_profile_destination_id": 31928109603, "shipping_profile_id": 171330656318, "origin_country_iso": "VN", "destination_country_iso": "VN", "destination_region": "none", "primary_cost": { "amount": 100000, "divisor": 100, "currency_code": "USD" }, "secondary_cost": { "amount": 80000, "divisor": 100, "currency_code": "USD" }, "shipping_carrier_id": 0, "mail_class": null, "min_delivery_days": 1, "max_delivery_days": 2 } ], "shipping_profile_upgrades": [] }
BUT when I edit this shipping profile without or with origin_postal_code field, I get the error:
{ "error": "ZIP Code is invalid" }
{ "error": "We currently do not support submitting postal codes for this country: VN" }
Steps to reproduce
curl --location --request POST 'https://openapi.etsy.com/v3/application/shops/34481652/shipping-profiles' \ --header 'x-api-key: qilngv1u7vjydeq4p2aokq42' \ --header 'Authorization: Bearer 605453254.uWHafzJGni7LbL_VbPREHrDO7BtV3QbODFTDseCAHGp1QOdzklNfgEjsRbDoZ0OfBno-9ntx4zmksbCuJeOyt0n85C' \ --header 'Content-Type: application/json' \ --header 'Cookie: user_prefs=dKtcG6OQNjcPnP_q3R7C23PLy-pjZACCxKu8yjA6Oq80J0eHPCKWAQA.' \ --data-raw '{ "title": "new shipping", "min_processing_time": 1, "max_processing_time": 2, "origin_country_iso": "VN", "destination_country_iso": "VN", "primary_cost": 1000, "secondary_cost": 800, "min_delivery_days": 1, "max_delivery_days": 2, "processing_time_unit": "business_days" }'
Then edit with the specific id the system return:
curl --location --request PUT 'https://openapi.etsy.com/v3/application/shops/34481652/shipping-profiles/171330656318' \ --header 'x-api-key: qilngv1u7vjydeq4p2aokq42' \ --header 'Authorization: Bearer 605453254.OAzaT3F3wb-o3MM2ofLgsBWWBXrBl3Cyjy20IzIlUHH5VwqBXWGIlyoVgzMG1t5mcgFQB5rC5qKPgRFeWrneuwK1gl' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: user_prefs=dKtcG6OQNjcPnP_q3R7C23PLy-pjZACCxKu8yjA6Oq80J0eHPCKWAQA.' \ --data-urlencode 'origin_country_iso=VN' \ --data-urlencode 'min_processing_time=1' \ --data-urlencode 'max_processing_time=2' \ --data-urlencode 'processing_time_unit=business_days' \ --data-urlencode 'origin_postal_code=700000'
Expected behavior
Hope I can update shipping profile with the specific id
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions