openapi: 3.0.0
info:
title: eBay Account Advertising_eligibility Schedule 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: Schedule
paths:
/schedule:
get:
tags:
- Schedule
description: This method retrieves an array containing the details and status of all schedules based on the specified feed_type. Use this method to find a schedule if you do not know the schedule_id.
operationId: getSchedules
parameters:
- name: feed_type
in: query
description: The feed type associated with the schedules being retrieved.
Note: Schedules are currently only available for LMS_ORDER_REPORT.
required: true
schema:
type: string
- name: limit
in: query
description: 'The maximum number of schedules that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output.
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 schedules 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 schedules to skip in the result set before returning the first schedule 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/UserScheduleCollection'
'400':
description: Bad Request
x-response-codes:
errors:
'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.
'160017':
domain: API_FEED
category: REQUEST
description: The 'feedType' is missing or invalid.
'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
- https://api.ebay.com/oauth/api_scope/sell.fulfillment
- https://api.ebay.com/oauth/api_scope/sell.marketing
- https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly
- https://api.ebay.com/oauth/api_scope/sell.analytics.readonly
post:
tags:
- Schedule
description: This method creates a schedule, which is a subscription to the specified schedule template. A schedule periodically generates a report for the feedType specified by the template. Specify the same feedType as the feedType of the associated schedule template. When creating the schedule, if available from the template, you can specify a preferred trigger hour, day of the week, or day of the month. These and other fields are conditionally available as specified by the template.
Note: Make sure to include all fields required by the schedule template (scheduleTemplateId). Call the getScheduleTemplate method (or the getScheduleTemplates method), to find out which fields are required or optional. If a field is optional and a default value is provided by the template, the default value will be used if omitted from the payload.
A successful call returns the location response header containing the getSchedule call URI to retrieve the schedule you just created. The URL includes the eBay-assigned schedule ID, which you can use to reference the schedule task.Note: Except for schedules with a HALF-HOUR frequency, all schedules will ideally run at the start of each hour ('00' minutes). Actual start time may vary time may vary due to load and other factors.
operationId: createSchedule 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.Note: Make sure to include all fields required by the schedule template (scheduleTemplateId). Call the getScheduleTemplate method (or the getScheduleTemplates method), to find out which fields are required or optional. If you do not know the scheduleTemplateId, call the getSchedule method to find out.
operationId: updateSchedule parameters: - name: schedule_id in: path description: This path parameter is the unique identifier of the schedule being updated.LMS_ORDER_REPORT.
required: true
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ScheduleTemplateResponse'
'400':
description: Bad Request
'404':
description: Not Found
x-response-codes:
errors:
'160039':
domain: API_FEED
category: REQUEST
description: The schedule template id {schedule_template_id} does not exist. Please provide a valid schedule template id as contained in the documentation or by calling the getScheduleTemplates method.
'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
- https://api.ebay.com/oauth/api_scope/sell.fulfillment
- https://api.ebay.com/oauth/api_scope/sell.marketing
- https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly
- https://api.ebay.com/oauth/api_scope/sell.analytics.readonly
/schedule_template:
get:
tags:
- Schedule
description: This method retrieves an array containing the details and status of all schedule templates based on the specified feed_type. Use this method to find a schedule template if you do not know the schedule_template_id.
operationId: getScheduleTemplates
parameters:
- name: feed_type
in: query
description: The feed type of the schedule templates to retrieve. LMS_ORDER_REPORT.
required: true
schema:
type: string
- name: limit
in: query
description: 'The maximum number of schedule templates that can be returned on each page of the paginated response. Use this parameter in conjunction with the offset parameter to control the pagination of the output. 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 schedule templates 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 schedule templates to skip in the result set before returning the first template 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/ScheduleTemplateCollection'
'400':
description: Bad Request
x-response-codes:
errors:
'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.
'160017':
domain: API_FEED
category: REQUEST
description: The 'feedType' is missing or invalid.
'160029':
domain: API_FEED
category: REQUEST
description: The 'offset' value must be a multiple of the 'limit' value.
'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
- https://api.ebay.com/oauth/api_scope/sell.fulfillment
- https://api.ebay.com/oauth/api_scope/sell.marketing
- https://api.ebay.com/oauth/api_scope/commerce.catalog.readonly
- https://api.ebay.com/oauth/api_scope/sell.analytics.readonly
components:
schemas:
StreamingOutput:
type: object
description: File stream
UserScheduleResponse:
type: object
properties:
scheduleId:
type: string
description: The ID of the schedule. This ID is generated when the schedule was created by the createSchedule method.
creationDate:
type: string
description: The creation date of the schedule in hours based on the 24-hour Coordinated Universal Time (UTC) clock.
feedType:
type: string
description: The feedType associated with the schedule.
lastModifiedDate:
type: string
description: The date the schedule was last modified.
preferredTriggerDayOfMonth:
type: integer
description: The preferred day of the month to trigger the schedule. This field can be used with preferredTriggerHour for monthly schedules. The last day of the month is used for numbers larger than the number of days in the month.
format: int32
preferredTriggerDayOfWeek:
type: string
description: The preferred day of the week to trigger the schedule. This field can be used with preferredTriggerHour for weekly schedules. For implementation help, refer to eBay API documentation
preferredTriggerHour:
type: string
description: The preferred two-digit hour of the day to trigger the schedule.
Format: UTC hhZ
For example, the following represents 11:00 am UTC:11Z
scheduleEndDate:
type: string
description: The timestamp on which the report generation (subscription) ends. After this date, the schedule status becomes INACTIVE.
scheduleName:
type: string
description: The schedule name assigned by the user for the created schedule. Users assign this name for their reference.
scheduleStartDate:
type: string
description: The timestamp that indicates the start of the report generation.
scheduleTemplateId:
type: string
description: The ID of the template used to create this schedule.
schemaVersion:
type: string
description: The schema version of the feedType for the schedule.
status:
type: string
description: The enumeration value that indicates the state of the schedule. For implementation help, refer to eBay API documentation
statusReason:
type: string
description: The reason the schedule is inactive. For implementation help, refer to eBay API documentation
description: The type that defines the fields for a paginated result set of available schedules. The response consists of 0 or more sequenced pages where each page has 0 or more items.
SupportedConfiguration:
type: object
properties:
defaultValue:
type: string
description: The default value for the property. If a value is omitted from the schedule and a default value is supplied, the default value is used.
property:
type: string
description: 'Properties supported by the template. Properties can include the following:
yyyy-MM-ddTHHZyyyy-MM-ddTHHZhhZ Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 10 if omitted. Note: If this is the last or only page of the result set, the page may contain fewer tasks than the limit value. To determine the number of pages in a result set, divide the total value (total number of tasks matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 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 getSchedules calls to view all tasks matching the input criteria.
Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.
hhZ 11Z00Z23Z'
scheduleEndDate:
type: string
description: The timestamp on which the schedule (report generation) ends. After this date, the schedule status becomes INACTIVE. yyyy-MM-ddTHHZ 2021-10-10T10Z
scheduleName:
type: string
description: The schedule name assigned by the user for the created schedule.
scheduleStartDate:
type: string
description: The timestamp to start generating the report. After this timestamp, the schedule status becomes active until either the scheduleEndDate occurs or the scheduleTemplateId becomes inactive. yyyy-MM-ddTHHZ 2020-01-01T12Z
schemaVersion:
type: string
description: The schema version of a schedule.
description: The type that defines the fields for a schedule update to a schedule generated with the Feed API.
ScheduleTemplateResponse:
type: object
properties:
feedType:
type: string
description: The feed type of the schedule template. Note: When calling createSchedule and updateSchedule methods you must match the feed type specified by the schedule template (this feedType).
frequency: type: string description: This field specifies how often the schedule is generated. If set toHALF_HOUR or ONE_HOUR, you cannot set a preferredTriggerHour using createSchedule or updateSchedule. For implementation help, refer to eBay API documentation
name:
type: string
description: The template name provided by the template.
scheduleTemplateId:
type: string
description: The ID of the template. Use this ID to create a schedule based on the properties of this schedule template.
status:
type: string
description: The present status of the template. You cannot create or modify a schedule using a template with an INACTIVE status. For implementation help, refer to eBay API documentation
supportedConfigurations:
type: array
description: An array of the configuration supported by this template.
items:
$ref: '#/components/schemas/SupportedConfiguration'
description: The type that defines the fields for a paginated result set of available schedule templates. The response consists of 0 or more sequenced pages where each page has 0 or more items.
ScheduleTemplateCollection:
type: object
properties:
href:
type: string
description: The path to the call URI that produced the current page of results.
limit:
type: integer
description: The value of the limit parameter submitted in the request, which is the maximum number of schedule templates to return per page, from the result set. A result set is the complete set of schedule templates returned by the method. Note: Though this parameter is not required to be submitted in the request, the parameter defaults to 10 if omitted.
Note: If this is the last or only page of the result set, the page may contain fewer tasks than the limit value. To determine the number of pages in a result set, divide the total value (total number of tasks matching input criteria) by this limit value, and then round up to the next integer. For example, if the total value was 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 getScheduleTemplates calls to view all tasks matching the input criteria.
Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of 0.
LMS_ORDER_REPORT.
preferredTriggerDayOfMonth:
type: integer
description: 'The preferred day of the month to trigger the schedule. This field can be used with preferredTriggerHour for monthly schedules. The last day of the month is used for numbers larger than the actual number of days in the month. hhZ 11Z
scheduleEndDate:
type: string
description: The timestamp on which the report generation (subscription) ends. After this date, the schedule status becomes INACTIVE. yyyy-MM-ddTHHZ2021-10-10T10Z
scheduleName:
type: string
description: The schedule name assigned by the user for the created schedule.
scheduleStartDate:
type: string
description: The timestamp to start generating the report. After this timestamp, the schedule status becomes active until either the scheduleEndDate occurs or the scheduleTemplateId becomes inactive. yyyy-MM-ddTHHZ 2020-01-01T12Z
scheduleTemplateId:
type: string
description: The unique identifier of the template to be used for this schedule. ACTIVE.LMS_ORDER_REPORT.
schemaVersion:
type: string
description: The schema version of a schedule.
description: The type that defines the fields for the createSchedule method.
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