curl --request POST \
--url https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended \
--header 'Content-Type: application/json' \
--data '
{
"amount": 100,
"currencyCode": "USD",
"productCodes": null,
"cultureCode": "es"
}
'import requests
url = "https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended"
payload = {
"amount": 100,
"currencyCode": "USD",
"productCodes": None,
"cultureCode": "es"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({amount: 100, currencyCode: 'USD', productCodes: null, cultureCode: 'es'})
};
fetch('https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended', 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://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 100,
'currencyCode' => 'USD',
'productCodes' => null,
'cultureCode' => 'es'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended"
payload := strings.NewReader("{\n \"amount\": 100,\n \"currencyCode\": \"USD\",\n \"productCodes\": null,\n \"cultureCode\": \"es\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 100,\n \"currencyCode\": \"USD\",\n \"productCodes\": null,\n \"cultureCode\": \"es\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 100,\n \"currencyCode\": \"USD\",\n \"productCodes\": null,\n \"cultureCode\": \"es\"\n}"
response = http.request(request)
puts response.read_body[
{
"destinationCountry": "FO",
"status": "active",
"shippingRates": [
{
"shippingMethodLocalizedName": "Envío express",
"shippingMethodName": "Express Courier (Air)",
"rangeMinValue": 0,
"rangeMaxValue": 10000000000,
"shippingCost": 35,
"shippingCostCurrency": "USD",
"estimatedDeliveryDays": "3-10",
"specialOfferExpiryDate": null
}
]
},
{
"destinationCountry": "FR",
"status": "active",
"shippingRates": [
{
"shippingMethodLocalizedName": "Envío estándar",
"shippingMethodName": "Standard Courier",
"rangeMinValue": 40,
"rangeMaxValue": 440,
"shippingCost": 0,
"shippingCostCurrency": "EUR",
"estimatedDeliveryDays": "2-10",
"specialOfferExpiryDate": null
},
{
"shippingMethodLocalizedName": "Envío express",
"shippingMethodName": "Express Courier (Air)",
"rangeMinValue": 40,
"rangeMaxValue": 440,
"shippingCost": 15,
"shippingCostCurrency": "EUR",
"estimatedDeliveryDays": "1-2",
"specialOfferExpiryDate": null
}
]
}
]Get shipping details extended (Merchant to Global-e)
Returns all flat shipping-rate thresholds for all shipping services related to a product, per destination country.
curl --request POST \
--url https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended \
--header 'Content-Type: application/json' \
--data '
{
"amount": 100,
"currencyCode": "USD",
"productCodes": null,
"cultureCode": "es"
}
'import requests
url = "https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended"
payload = {
"amount": 100,
"currencyCode": "USD",
"productCodes": None,
"cultureCode": "es"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({amount: 100, currencyCode: 'USD', productCodes: null, cultureCode: 'es'})
};
fetch('https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended', 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://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 100,
'currencyCode' => 'USD',
'productCodes' => null,
'cultureCode' => 'es'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended"
payload := strings.NewReader("{\n \"amount\": 100,\n \"currencyCode\": \"USD\",\n \"productCodes\": null,\n \"cultureCode\": \"es\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 100,\n \"currencyCode\": \"USD\",\n \"productCodes\": null,\n \"cultureCode\": \"es\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://{globale_api_domain}/ShippingDetails/GetShippingDetailsExtended")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 100,\n \"currencyCode\": \"USD\",\n \"productCodes\": null,\n \"cultureCode\": \"es\"\n}"
response = http.request(request)
puts response.read_body[
{
"destinationCountry": "FO",
"status": "active",
"shippingRates": [
{
"shippingMethodLocalizedName": "Envío express",
"shippingMethodName": "Express Courier (Air)",
"rangeMinValue": 0,
"rangeMaxValue": 10000000000,
"shippingCost": 35,
"shippingCostCurrency": "USD",
"estimatedDeliveryDays": "3-10",
"specialOfferExpiryDate": null
}
]
},
{
"destinationCountry": "FR",
"status": "active",
"shippingRates": [
{
"shippingMethodLocalizedName": "Envío estándar",
"shippingMethodName": "Standard Courier",
"rangeMinValue": 40,
"rangeMaxValue": 440,
"shippingCost": 0,
"shippingCostCurrency": "EUR",
"estimatedDeliveryDays": "2-10",
"specialOfferExpiryDate": null
},
{
"shippingMethodLocalizedName": "Envío express",
"shippingMethodName": "Express Courier (Air)",
"rangeMinValue": 40,
"rangeMaxValue": 440,
"shippingCost": 15,
"shippingCostCurrency": "EUR",
"estimatedDeliveryDays": "1-2",
"specialOfferExpiryDate": null
}
]
}
]Headers
Body
Supported service level. Default (omitted): revert to all shipping rates available, for instance, if the request is passed with amount = 0. Values: 1 - Standard, 2 - Express, 3 - PriorityPost, 4 - Airmail, 5 - VirtualGoods, 6 - ExpressCourierWithoutSameDay, 7 - UntrackedPost, 8 - StoreCollection, 9 - StandardPost, 10 - StandardCourier, 11 - ExpressShipping, 12 - StandardShipping, 13 - CollectionPoint, 14 - MerchantOwnCarriage, 15 - TrackedStandard, 16 - ExpressPlus, 17 - StandardExpress, 18 - PremiumStandard, 19 - TrackedPostToPickupLocation. The default output covers all service levels (express / standard).
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 Response
An array of per-destination objects (ordered by destination country), each containing the destination, the shipping-methods availability status, and the array of available shipping rates by flat-rate shipping campaign.

