Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

eBay Location API

The Location API from eBay — 5 operation(s) for location.

eBay Location API is one of 64 APIs that eBay publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Location. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, release notes, and an AsyncAPI specification.

This API exposes 7 operations across 5 paths, and defines 11 schemas. It is described by OpenAPI 3.0.0, at version v1.9.2.

Requests are made against a single base URL, https://api.ebay.com{basePath}.

7 operations 5 paths 11 schemas 1 DELETE2 GET4 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.0
API Version
v1.9.2
Base URL
https://api.ebay.com
Authentication
OAuth 2.0
Contact
eBay Inc,
Resource Areas
1

Authentication & Security 1

eBay Location API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (api_auth) using the authorizationCode flow, exposing 2 scopes.

  • api_auth — The security definitions for this API. Please check individual operations for applicable scopes.

Paths & Operations 7

Across 5 paths, the API surfaces 7 operations — 1 DELETE, 2 GET, 4 POST. Each is listed below with its method, path, parameters, and response codes.

Location 7
GET
/location/{merchantLocationKey}
This call retrieves all defined details of the inventory location that is specified by the merchantLocationKey path parameter. The authorization HTTP header is the only required request header for th…
getInventoryLocation 1 param → 200400404500
POST
/location/{merchantLocationKey}
Use this call to create a new inventory location. In order to create and publish an offer (and create an eBay listing), a seller must have at least one inventory location, as every offer must be asso…
createInventoryLocation 2 params body → 204400409500
DELETE
/location/{merchantLocationKey}
This call deletes the inventory location that is specified in the merchantLocationKey path parameter. Note that deleting a location will not affect any active eBay listings associated with the delete…
deleteInventoryLocation 1 param → 204400404500
POST
/location/{merchantLocationKey}/disable
This call disables the inventory location that is specified in the merchantLocationKey path parameter. Sellers can not load/modify inventory to disabled inventory locations. Note that disabling an in…
disableInventoryLocation 1 param → 200400404500
POST
/location/{merchantLocationKey}/enable
This call enables a disabled inventory location that is specified in the merchantLocationKey path parameter. Once a disabled inventory location is enabled, sellers can start loading/modifying invento…
enableInventoryLocation 1 param → 200400404500
GET
/location
This call retrieves all defined details for every inventory location associated with the seller's account. There are no required parameters for this call and no request payload. However, there are tw…
getInventoryLocations 2 params → 200400500
POST
/location/{merchantLocationKey}/update_location_details
Use this call to update non-physical location details for an existing inventory location. Specify the inventory location you want to update using the merchantLocationKey path parameter. You can updat…
updateInventoryLocation 2 params body → 204400404500

Schemas 11

The contract defines 11 schemas that model the data the API accepts and returns. The most detailed are InventoryLocationResponse (11 properties), InventoryLocationFull (10 properties), InventoryLocation (7 properties), Address (7 properties). Each schema is shown below with its type and property counts.

InventoryLocation
object
This type is used by the updateInventoryLocation call to update operating hours, special hours, phone number, and other minor details of an inventory location.
7 properties
InventoryLocationFull
object
This type is used by the createInventoryLocation call to provide details on the inventory location, including the location's name, physical address, operating…
10 properties
Address
object
This type is used to define the physical address of an inventory location.
7 properties
Location
object
A complex type that is used to provide the physical address of a location, and it geo-coordinates.
3 properties
OperatingHours
object
This type is used to express the regular operating hours of a merchant's store during the days of the week.
2 properties
SpecialHours
object
This type is used to express the special operating hours of a store location on a specific date. A specialHours container is needed when the store's opening ho…
2 properties
GeoCoordinates
object
This type is used to express the Global Positioning System (GPS) latitude and longitude coordinates of an inventory location.
2 properties
LocationDetails
object
This type is used by the createInventoryLocation call to provide an full or partial address of an inventory location.
2 properties
InventoryLocationResponse
object
This type is used by the base response of the getInventoryLocation and getInventoryLocations calls. These responses provide details about inventory location(s)…
11 properties
LocationResponse
object
This type is used by the base response payload for the getInventoryLocations call.
7 properties
Interval
object
This type is used by the intervals container to define the opening and closing times of a store's working day. Local time (in Military format) is used, with th…
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

ebay-location-api-openapi.yml Raw ↑

Other APIs eBay publishes across the network.

eBay Advertising_eligibility API
eBay Bidding API
eBay Category_tree API
eBay Charity_org API
eBay Config API
eBay Country API
eBay Custom_policy API
eBay Customer_service_metric API
eBay Customer_service_metric_task API
eBay Deal_item API
eBay Destination API
eBay Event API