openapi: 3.0.0
info:
title: eBay Account Advertising_eligibility Inventory_task API
description: 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.
contact:
name: eBay Inc,
license:
name: eBay API License Agreement
url: https://go.developer.ebay.com/api-license-agreement
version: v1.9.2
servers:
- url: https://api.ebay.com{basePath}
description: Production
variables:
basePath:
default: /sell/account/v1
tags:
- name: Inventory_task
paths:
/inventory_task:
get:
tags:
- Inventory_task
description: This method searches for multiple tasks of a specific feed type, and includes date filters and pagination.
operationId: getInventoryTasks
parameters:
- name: feed_type
in: query
description: The feed type associated with the inventory tasks being retrieved. Presently, only one feed type is available:
LMS_ACTIVE_INVENTORY_REPORTdate_range parameter. If both date_range and look_back_days are omitted, this parameter''s default value is used. Note: Maximum date range window size is 90 days.
yyyy-MM-ddThh:mm:ss.SSSZ..yyyy-MM-ddThh:mm:ss.SSSZ2021-03-31T00:00:00.000Z..2021-03-31T00:00:00.000Z Note: This feature employs a zero-based list, where the first item in the list has an offset of 0.
For example, if offset is set to 10 and limit is set to 10, the call retrieves tasks 11 thru 20 from the result set.
If this parameter is omitted, the default value is used.
Default: 10
Maximum: 500'
required: false
schema:
type: string
- name: offset
in: query
description: 'The number of tasks to skip in the result set before returning the first task in the paginated response.
Combine offset with the limit query parameter to control the items returned in the response. For example, if you supply an offset of 0 and a limit of 10, the first page of the response contains the first 10 items from the complete list of items retrieved by the call. If offset is 10 and limit is 20, the first page of the response contains items 11-30 from the complete result set. If this query parameter is not set, the default value is used and the first page of records is returned.
Default: 0'
required: false
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/InventoryTaskCollection'
'400':
description: Bad Request
x-response-codes:
errors:
'160004':
domain: API_FEED
category: REQUEST
description: You must submit either a 'feed_type' or 'schedule_id'.
'160005':
domain: API_FEED
category: REQUEST
description: Both 'feed_type' and 'schedule_id' were provided. Please remove one of them.
'160006':
domain: API_FEED
category: REQUEST
description: The 'feed_type' {feedTypeValue} is invalid.
'160007':
domain: API_FEED
category: REQUEST
description: The 'schedule_id' {scheduleID} is invalid.
'160008':
domain: API_FEED
category: REQUEST
description: Both 'look_back_days' and 'date_range' were provided. Please remove one of them.
'160009':
domain: API_FEED
category: REQUEST
description: The format of the 'date_range' is invalid. The format for a date range is yyyy-MM-ddThh:mm:ss.sssZ..yyyy-MM-ddThh:mm:ss.sssZ.
'160010':
domain: API_FEED
category: REQUEST
description: The 'date_range' must be less than or equal to 90 days.
'160011':
domain: API_FEED
category: REQUEST
description: The 'look_back_days' value must be greater than zero and less than or equal to 90.
'160012':
domain: API_FEED
category: REQUEST
description: The 'limit' value must be greater than zero and less than or equal to 500.
'160013':
domain: API_FEED
category: REQUEST
description: The 'offset' value cannot be less than zero.
'160029':
domain: API_FEED
category: REQUEST
description: The 'offset' value must be a multiple of the 'limit' value.
'403':
description: Forbidden
x-response-codes:
errors:
'160002':
domain: API_FEED
category: REQUEST
description: The authentication scope {scope} is incorrect for 'feed_type' {feedType}. Refer to documentation for details about the scopes.
'500':
description: Internal Server Error
x-response-codes:
errors:
'160001':
domain: API_FEED
category: APPLICATION
description: There was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance.
security:
- api_auth:
- https://api.ebay.com/oauth/api_scope/sell.inventory
post:
tags:
- Inventory_task
description: This method creates an inventory-related download task for a specified feed type with optional filter criteria. When using this method, specify the feedType.
This method returns the location response header containing the getInventoryTask call URI to retrieve the inventory task you just created. The URL includes the eBay-assigned task ID, which you can use to reference the inventory task.
To retrieve the status of the task, use the getInventoryTask method to retrieve a single task ID or the getInventoryTasks method to retrieve multiple task IDs.
Note: The scope depends on the feed type. An error message results when an unsupported scope or feed type is specified.
Presently, this method supports Active Inventory Report. The ActiveInventoryReport returns a report that contains price and quantity information for all of the active listings for a specific seller. A seller can use this information to maintain their inventory on eBay. operationId: createInventoryTask parameters: - name: Content-Type in: header description: This header indicates the format of the request body provided by the client. Its value should be set to application/json.10 if omitted. Additionally, if this is the last or only page of the result set, the page may contain fewer tasks than the limit value submitted in the request.120 (120 total tasks) and the limit value was 50 (show 50 tasks per page), the total number of pages in the result set is three, so the seller would have to make three separate getInventoryTasks calls to view all tasks matching the input criteria.
format: int32
next:
type: string
description: The path to the call URI for the next page of results. This value is returned if there is an additional page of results to return from the result set.
offset:
type: integer
description: The number of results skipped in the result set before listing the first returned result. This value can be specified in the request with the offset query parameter.0.
format: int32
prev:
type: string
description: The path to the call URI for the previous page of results. This is returned if there is a previous page of results from the result set.
tasks:
type: array
description: An array of the inventory tasks on this page. The tasks are sorted by creation date.COMPLETED, COMPLETED_WITH_ERROR, or PARTIALLY_PROCESSED state. This field is only returned if the status is one of the three completed values.
schemaVersion:
type: string
description: The schema version number associated with the task.
detailHref:
type: string
description: The path to the call URI used to retrieve the task. This field points to the getInventoryTask URI.
uploadSummary:
description: This container provides summary information on an upload feed (not applicable for download feed types).
$ref: '#/components/schemas/UploadSummary'
filterCriteria:
description: This container is used to set the filter criteria for the ActiveInventoryReport. A seller can retrieve listings for a specified format.
$ref: '#/components/schemas/InventoryFilterCriteria'
InventoryFilterCriteria:
type: object
properties:
listingFormat:
type: string
description: The listing format for the ActiveInventoryReport being created. Supported types are:AUCTIONFIXED_PRICELMS_ACTIVE_INVENTORY_REPORT1.0.
securitySchemes:
api_auth:
type: oauth2
description: The security definitions for this API. Please check individual operations for applicable scopes.
flows:
authorizationCode:
authorizationUrl: https://auth.ebay.com/oauth2/authorize
tokenUrl: https://api.ebay.com/identity/v1/oauth2/token
scopes:
https://api.ebay.com/oauth/api_scope/sell.account.readonly: View your account settings
https://api.ebay.com/oauth/api_scope/sell.account: View and manage your account settings