GET/inventory_item/{sku}/product_compatibility
This call is used by the seller to retrieve the list of products that are compatible with the inventory item. The SKU value for the inventory item is passed into the call URI, and a successful call with return the compatible vehicle list associated with this inventory item. Product compatibility is currently only applicable to motor vehicle parts and accessory categories, but more categories may be supported in the future.
Input
Resource URI
This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com
root URI with api.sandbox.ebay.com
URI parameters
Parameter | Type | Description |
---|---|---|
sku | string | This path parameter specifies the SKU (stock keeping unit) of the inventory item associated with the product compatibility list being retrieved. Use the getInventoryItems method to retrieve SKU values. Occurrence: Required |
HTTP request headers
All requests made to eBay REST operations require you to provide the Authorization
HTTP header for authentication authorization.
All other standard RESTful request headers are optional. For more information on standard RESTful request headers, see the HTTP request headers- opens rest request components page table.
OAuth scope
This request requires an access token created with the authorization code grant flow, using one or more scopes from the following list (please check your Application Keys page for a list of OAuth scopes available to your application):
https://api.ebay.com/oauth/api_scope/sell.inventory.readonly
https://api.ebay.com/oauth/api_scope/sell.inventory
See OAuth access tokens for more information.
Request payload
This call has no payload.
Request fields
This call has no field definitions.
Output
HTTP response headers
This call has no response headers.
Response payload
Response fields
Output container/field | Type | Description |
---|---|---|
compatibleProducts | array of CompatibleProduct | This container consists of an array of motor vehicles (make, model, year, trim, engine) that are compatible with the motor vehicle part or accessory specified by the sku value. Occurrence: Always |
compatibleProducts.compatibilityProperties | array of NameValueList | This container consists of an array of motor vehicles that are compatible with the motor vehicle part or accessory specified by the SKU value in the call URI. Each motor vehicle is defined through a separate set of name/value pairs. In the name field, the vehicle aspect (such as 'make', 'model', 'year', 'trim', or 'engine') will be identified, and the value field will be used to identify the value of each aspect. Occurrence: Conditional |
compatibleProducts.compatibilityProperties.name | string | This string value identifies the motor vehicle aspect, such as 'make', 'model', 'year', 'trim', and 'engine'. Typically, the make, model, and year of the motor vehicle are always required, with the trim and engine being necessary sometimes, but it will be dependent on the part or accessory, and on the vehicle class. Occurrence: Conditional |
compatibleProducts.compatibilityProperties.value | string | This string value identifies the motor vehicle aspect specified in the corresponding name field. For example, if the name field is 'make', this field may be 'Toyota', or if the name field is 'model', this field may be 'Camry'. Occurrence: Conditional |
compatibleProducts.notes | string | This field is used by the seller to input any notes pertaining to the compatible vehicle list being defined. The seller might use this field to specify the placement of the part on a vehicle or other applicable information. Occurrence: Conditional |
compatibleProducts.productFamilyProperties | ProductFamilyProperties | Important! The productFamilyProperties container is deprecated and should no longer be used. The compatibilityProperties container should be used instead. Occurrence: Conditional |
compatibleProducts.productFamilyProperties.engine | string | Important! The productFamilyProperties container is no longer supported. Occurrence: Conditional |
compatibleProducts.productFamilyProperties.make | string | Important! The productFamilyProperties container is no longer supported. Occurrence: Conditional |
compatibleProducts.productFamilyProperties.model | string | Important! The productFamilyProperties container is no longer supported. Occurrence: Conditional |
compatibleProducts.productFamilyProperties.trim | string | Important! The productFamilyProperties container is no longer supported. Occurrence: Conditional |
compatibleProducts.productFamilyProperties.year | string | Important! The productFamilyProperties container is no longer supported. Occurrence: Conditional |
compatibleProducts.productIdentifier | ProductIdentifier | This container is used in a createOrReplaceProductCompatibility call to identify a motor vehicle that is compatible with the inventory item. The user specifies either an eBay Product ID (ePID) or K-Type value to identify a vehicle, and if the motor vehicle is found in the eBay product catalog, the motor vehicle properties (make, model, year, trim, engine) will automatically be populated for the vehicle. If the vehicle cannot be found using these identifiers, the vehicle will not be added to the compatible vehicle list. Occurrence: NA |
compatibleProducts.productIdentifier.epid | string | This field can be used if the seller already knows the eBay catalog product ID (ePID) associated with the motor vehicle that is to be added to the compatible product list. If this eBay catalog product ID is found in the eBay product catalog, the motor vehicle properties (e.g. make, model, year, engine, and trim) will automatically get picked up for that motor vehicle. Occurrence: NA |
compatibleProducts.productIdentifier.gtin | string | This field can be used if the seller knows the Global Trade Item Number for the motor vehicle that is to be added to the compatible product list. If this GTIN value is found in the eBay product catalog, the motor vehicle properties (e.g. make, model, year, engine, and trim will automatically get picked up for that motor vehicle. Occurrence: NA |
compatibleProducts.productIdentifier.ktype | string | This field can be used if the seller knows the K Type Number for the motor vehicle that is to be added to the compatible product list. If this K Type value is found in the eBay product catalog, the motor vehicle properties (e.g. make, model, year, engine, and trim) will automatically get picked up for that motor vehicle. Occurrence: NA |
sku | string | The seller-defined SKU value of the inventory item that will be associated with the compatible vehicles. Occurrence: Always |
HTTP status codes
This call can return one of the following HTTP status codes. For an overview of the status codes, see HTTP status codes in Using eBay RESTful APIs.
Status | Meaning |
---|---|
200 | Success |
400 | Bad Request |
404 | Not Found |
500 | Internal Server Error |
Error codes
For more on errors, plus the codes of other common errors, see Handling errors.
Code | Domain | Category | Meaning |
---|---|---|---|
25001 | API_INVENTORY | APPLICATION | A system error has occurred. {additionalInfo} |
25702 | API_INVENTORY | REQUEST | {skuValue} could not be found or is not available in the system. |
25709 | API_INVENTORY | REQUEST | Invalid value for {fieldName}. {additionalInfo} |
25710 | API_INVENTORY | REQUEST | We didn't find the resource/entity you are requesting. Please verify the request |
Warnings
This call has no warnings.
Samples
New to making API calls? Please see Making a Call.
Note: Identifiers, such as order IDs or user IDs, and personal data in these samples might be anonymized or may no longer be active on eBay. If necessary, substitute current, relevant eBay data in your requests.
Sample 1: Retrieving a Product Compatibility List
This call will retrieve a product compatibility list that is associated with a particular SKU.
Input
The SKU value of the product whose product compatibility list will be retrieved is input into the end of the call URI. In this case, the SKU value for the product is A*****0
.
GEThttps://api.ebay.com/sell/inventory/v1/inventory_item/A*****0/product_compatibility
Output
Three compatible vehicles are returned for the product, 'A*****0'. The attributes are given for each of these three vehicles. The SKU value is also returned in the response.