-
Hi,
We tried that but got 400 Response stating "You must provide either a destination_country_iso code or a destination_region". $api->createShopShippingProfileDestination([
'params' => [
'shop_id' => $shopId,
'shipping_profile_id' => $shippingProfileId,
],
'data' => [
'primary_cost' => round($regular1ItemDelivery, 2),
'secondary_cost' => round(max(0, min($regular1ItemDelivery, $regular2thItemDelivery)), 2),
'min_delivery_days' => $minDeliveryDays,
'max_delivery_days' => $maxDeliveryDays,
],
]); Is it something wrong with our request or is it a bug? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Try setting |
Beta Was this translation helpful? Give feedback.
Try setting
destination_country_iso
to null in your request. Might act differently then.