List Shipping Zones
curl --request GET \
--url https://api.launchmystore.io/api/v1/shipping_zones.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/shipping_zones.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/shipping_zones.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/shipping_zones.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/shipping_zones.json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/shipping_zones.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/shipping_zones.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"state": "success",
"message": null,
"data": {
"shipping_zones": [
{
"shippingZoneId": "9c2e1f4a-8b33-4d71-a0e6-1f2c3d4e5b6a",
"shippingName": "Domestic",
"zone": ["US"],
"description": "Standard domestic delivery",
"price": "5.99",
"type": "Simple",
"digitalProd": true,
"minWeight": null,
"maxWeight": null,
"minPrice": null,
"maxPrice": null,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
},
{
"shippingZoneId": "1a7d3c9e-4f22-4b08-9c15-6e8f0a2b1d4c",
"shippingName": "International",
"zone": ["CA", "GB", "AU", "DE", "FR"],
"description": "International delivery",
"price": "24.99",
"type": "Price",
"digitalProd": false,
"minWeight": null,
"maxWeight": null,
"minPrice": "50.00",
"maxPrice": null,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
]
},
"count": null,
"pagination": null
}
Shipping Zones
List Shipping Zones
Get all shipping zones
GET
/
api
/
v1
/
shipping_zones.json
List Shipping Zones
curl --request GET \
--url https://api.launchmystore.io/api/v1/shipping_zones.json \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/shipping_zones.json"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/shipping_zones.json', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/shipping_zones.json",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/shipping_zones.json"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/shipping_zones.json")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/shipping_zones.json")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"state": "success",
"message": null,
"data": {
"shipping_zones": [
{
"shippingZoneId": "9c2e1f4a-8b33-4d71-a0e6-1f2c3d4e5b6a",
"shippingName": "Domestic",
"zone": ["US"],
"description": "Standard domestic delivery",
"price": "5.99",
"type": "Simple",
"digitalProd": true,
"minWeight": null,
"maxWeight": null,
"minPrice": null,
"maxPrice": null,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
},
{
"shippingZoneId": "1a7d3c9e-4f22-4b08-9c15-6e8f0a2b1d4c",
"shippingName": "International",
"zone": ["CA", "GB", "AU", "DE", "FR"],
"description": "International delivery",
"price": "24.99",
"type": "Price",
"digitalProd": false,
"minWeight": null,
"maxWeight": null,
"minPrice": "50.00",
"maxPrice": null,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
]
},
"count": null,
"pagination": null
}
Response
Returns the standard response envelope. All shipping zones for the store are returned as an array underdata.shipping_zones.
integer
HTTP status code.
string
Response state:
success or error.string
Human-readable message, or
null on success.object
Show properties
Show properties
array
Show zone object
Show zone object
string
Zone ID (UUID)
string
Zone name
array
ISO 3166-1 alpha-2 country codes in this zone
string
Zone description
string
Flat shipping price (decimal string)
string
Rate model:
Simple, Weight, or Priceboolean
Whether the zone applies to digital products
number
Minimum order weight (when
type is Weight)number
Maximum order weight (when
type is Weight)number
Minimum order subtotal (when
type is Price)number
Maximum order subtotal (when
type is Price)string
Creation timestamp
string
Last update timestamp
{
"status": 200,
"state": "success",
"message": null,
"data": {
"shipping_zones": [
{
"shippingZoneId": "9c2e1f4a-8b33-4d71-a0e6-1f2c3d4e5b6a",
"shippingName": "Domestic",
"zone": ["US"],
"description": "Standard domestic delivery",
"price": "5.99",
"type": "Simple",
"digitalProd": true,
"minWeight": null,
"maxWeight": null,
"minPrice": null,
"maxPrice": null,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
},
{
"shippingZoneId": "1a7d3c9e-4f22-4b08-9c15-6e8f0a2b1d4c",
"shippingName": "International",
"zone": ["CA", "GB", "AU", "DE", "FR"],
"description": "International delivery",
"price": "24.99",
"type": "Price",
"digitalProd": false,
"minWeight": null,
"maxWeight": null,
"minPrice": "50.00",
"maxPrice": null,
"createdAt": "2024-01-01T00:00:00Z",
"updatedAt": "2024-01-01T00:00:00Z"
}
]
},
"count": null,
"pagination": null
}