Account API
ebay · Commerce
The Account API gives sellers the ability to configure their eBay seller accounts, including the seller's policies (eBay business policies and seller-defined custom policies), opt in and out of eBay seller programs, configure sales tax tables, and get account information. For details on the availability of the methods in this API, see Account API requirements and restrictions .
Authentication
Sample Requests
This method allows developers to check the seller eligibility status for eBay advertising programs.
Hover any highlighted part to learn what it does
| X-EBAY-C-MARKETPLACE-ID | example |
curl -X GET "https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/advertising_eligibility?program_types=example" \ -H "X-EBAY-C-MARKETPLACE-ID: example"
import requests
params = {
"program_types": "example"
}
headers = {
"X-EBAY-C-MARKETPLACE-ID": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/advertising_eligibility",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/advertising_eligibility');
url.searchParams.set('program_types', 'example');
const response = await fetch(url, {
headers: {
'X-EBAY-C-MARKETPLACE-ID': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/advertising_eligibility")
q := baseURL.Query()
q.Set("program_types", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("X-EBAY-C-MARKETPLACE-ID", "example")
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-account/v1.9.0/advertising_eligibility")
uri.query = URI.encode_www_form({
"program_types" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["X-EBAY-C-MARKETPLACE-ID"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/advertising_eligibility?" . http_build_query([
"program_types" => "example"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"X-EBAY-C-MARKETPLACE-ID: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This method retrieves the list of custom policies specified by the policy_types query parameter for the selected eBay marketplace. Note: The following eBay marketplaces support Custom Policies: Germany (EBAY_DE) Canada (EBAY
Hover any highlighted part to learn what it does
| X-EBAY-C-MARKETPLACE-ID | example |
curl -X GET "https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/custom_policy/?policy_types=example" \ -H "X-EBAY-C-MARKETPLACE-ID: example"
import requests
params = {
"policy_types": "example"
}
headers = {
"X-EBAY-C-MARKETPLACE-ID": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/custom_policy/",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/custom_policy/');
url.searchParams.set('policy_types', 'example');
const response = await fetch(url, {
headers: {
'X-EBAY-C-MARKETPLACE-ID': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/custom_policy/")
q := baseURL.Query()
q.Set("policy_types", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("X-EBAY-C-MARKETPLACE-ID", "example")
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-account/v1.9.0/custom_policy/")
uri.query = URI.encode_www_form({
"policy_types" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["X-EBAY-C-MARKETPLACE-ID"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/custom_policy/?" . http_build_query([
"policy_types" => "example"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"X-EBAY-C-MARKETPLACE-ID: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));This method retrieves all the fulfillment policies configured for the marketplace you specify using the marketplace_id query parameter. Marketplaces and locales Get the correct policies for a marketplace that supports multiple locales using the Content
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/fulfillment_policy?marketplace_id=example"
import requests
params = {
"marketplace_id": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/fulfillment_policy",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/fulfillment_policy');
url.searchParams.set('marketplace_id', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/ebay.com/sell-account/v1.9.0/fulfillment_policy")
q := baseURL.Query()
q.Set("marketplace_id", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
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-account/v1.9.0/fulfillment_policy")
uri.query = URI.encode_www_form({
"marketplace_id" => "example"
})
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-account/v1.9.0/fulfillment_policy?" . http_build_query([
"marketplace_id" => "example"
]);
$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 Account API?
Account 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. Account 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?