Create a shipping zone location

PUT https://api.ecartapi.com/api/v2/shippings/zones/{{id}}/locations

Request Body

{"location"=>[{"code"=>"BR", "type"=>"country"}]}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring

RESPONSES

status: OK

{"success":true,"location":{"code":"BR","type":"country","collection":[{"href":"https://woocommerce2.envia.com/wp-json/wc/v3/shipping/zones/22/locations"}],"describes":[{"href":"https://woocommerce2.envia.com/wp-json/wc/v3/shipping/zones/22"}]}}