Logistics API
ebay · Commerce
Note: This is a (Limited Release) API available only to select developers approved by business units. The Logistics API resources offer the following capabilities: shipping_quote – Consolidates into a
Authentication
Sample Requests
This method retrieves the shipment details for the specified shipment ID. Call createFromShippingQuote to generate a shipment ID.
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This method retrieves the complete details of the shipping quote associated with the specified shippingQuoteId value. A "shipping quote" pertains to a single specific package and contains a set of shipping "rates" that quote the cost to ship the package by different shipping carriers
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipping_quote/{shippingQuoteId}"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipping_quote/{shippingQuoteId}",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipping_quote/{shippingQuoteId}';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipping_quote/{shippingQuoteId}"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipping_quote/{shippingQuoteId}")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipping_quote/{shippingQuoteId}";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This method returns the shipping label file that was generated for the shipmentId value specified in the request. Call createFromShippingQuote to generate a shipment ID. Use the Accept HTTP header to specify the format of the returned file. The default file format
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}/download_label_file"import requests
response = requests.get(
"https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}/download_label_file",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}/download_label_file';
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}/download_label_file"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}/download_label_file")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/ebay.com/sell-logistics/v1_beta.0.0/shipment/{shipmentId}/download_label_file";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Logistics API?
Logistics API is a Commerce API. Developers commonly use commerce APIs for:
- syncing product catalogues and inventory levels
- building price comparison and deal-finder tools
- processing orders and tracking shipments
- managing customer wishlists and reviews
- automating abandoned-cart and promotional emails
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Logistics API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide · Learn about API keys · What is REST?