Check which shipping method a shipping configuration would select for a postcode
curl --request GET \
--url https://api.cubbo.com/v1/shipping-methods/configuration-coverage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cubbo.com/v1/shipping-methods/configuration-coverage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cubbo.com/v1/shipping-methods/configuration-coverage', 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.cubbo.com/v1/shipping-methods/configuration-coverage",
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.cubbo.com/v1/shipping-methods/configuration-coverage"
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.cubbo.com/v1/shipping-methods/configuration-coverage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cubbo.com/v1/shipping-methods/configuration-coverage")
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{
"id": 12,
"carrier_name": "ESTAFETA",
"shipping_type": "national",
"delivery_type": "Ground",
"country": "MX",
"is_cod": false
}Shipping methods
Check which shipping method a shipping configuration would select for a postcode
Simulates routing an order to the given postcode through one of the store’s shipping
configurations (shipping groups, matched by name, case-insensitive) and returns the
shipping method that would be selected. Use it to validate coverage before creating
orders. When no shipping method in the configuration covers the destination, the
response is still HTTP 200 with id: null and a message.
countryaccepts an English country name or an ISO 3166-1 two-letter code. Colombia is not supported by this endpoint.shipping_scopemust beinternationalwhen the destination country differs from the warehouse country.is_codin the response names a dedicated cash-on-delivery shipping method; it does not indicate whether cash on delivery can be offered at checkout.
GET
/
shipping-methods
/
configuration-coverage
Check which shipping method a shipping configuration would select for a postcode
curl --request GET \
--url https://api.cubbo.com/v1/shipping-methods/configuration-coverage \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cubbo.com/v1/shipping-methods/configuration-coverage"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cubbo.com/v1/shipping-methods/configuration-coverage', 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.cubbo.com/v1/shipping-methods/configuration-coverage",
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.cubbo.com/v1/shipping-methods/configuration-coverage"
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.cubbo.com/v1/shipping-methods/configuration-coverage")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cubbo.com/v1/shipping-methods/configuration-coverage")
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{
"id": 12,
"carrier_name": "ESTAFETA",
"shipping_type": "national",
"delivery_type": "Ground",
"country": "MX",
"is_cod": false
}Authorizations
Query Parameters
Response
The selected shipping method, or id: null with a message when none covers the destination
- Option 1
- Option 2
Result of a coverage check. Either the selected shipping method, or id: null with a message when nothing covers the destination.