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.

To retrieve the details of the create schedule task, use the getSchedule method for a single schedule ID or the getSchedules method to retrieve all schedule details for the specified feed_type. The number of schedules for each feedType is limited. Error code 160031 is returned when you have reached this maximum.

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.

For more information, refer to HTTP request headers. required: true schema: type: string requestBody: description: 'In the request payload: feedType and scheduleTemplateId are required; scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.' content: application/json: schema: description: 'In the request payload: feedType and scheduleTemplateId are required; scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.' $ref: '#/components/schemas/CreateUserScheduleRequest' required: true responses: '201': description: Created headers: Location: schema: type: string description: The URL of the schedule, which includes the id. content: application/json: schema: type: object '400': description: Bad Request x-response-codes: errors: '160017': domain: API_FEED category: REQUEST description: The 'feedType' is missing or invalid. '160032': domain: API_FEED category: REQUEST description: The 'scheduleTemplateId' is invalid. Call the getScheduleTemplates method to get the available schedule templates. '160033': domain: API_FEED category: REQUEST description: The 'feedType' is not associated with the 'scheduleTemplateId'. Please provide a 'feedType' that matches the 'scheduleTemplateId'. Call the getScheduleTemplates method to get the available schedule templates. '160034': domain: API_FEED category: REQUEST description: The '{fieldName}' is invalid, missing, or not allowed. '160036': domain: API_FEED category: REQUEST description: The '{fieldName}' is in the past. '160037': domain: API_FEED category: REQUEST description: The 'scheduleEndDate' is before 'scheduleStartDate'. '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. '160022': domain: API_FEED category: REQUEST description: You are not allowed to access this resource. Contact eBay Developer Technical Support for assistance. '409': description: Conflict x-response-codes: errors: '160031': domain: API_FEED category: BUSINESS description: You have reached the maximum number of subscribed schedules for the 'feedType' {feedType}. To subscribe to another schedule, you must delete one. '160035': domain: API_FEED category: BUSINESS description: Duplicate schedule (a matching schedule already exists). Use the getSchedules method to see the existing schedules. '160040': domain: API_FEED category: BUSINESS description: The 'scheduleTemplateId' is inactive. You cannot create or modify a schedule with an inactive 'scheduleTemplateId'. '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/{schedule_id}: get: tags: - Schedule description: This method retrieves schedule details and status of the specified schedule. Specify the schedule to retrieve using the schedule_id. Use the getSchedules method to find a schedule if you do not know the schedule_id. operationId: getSchedule parameters: - name: schedule_id in: path description: This path parameter is the unique identifier of the schedule for which to retrieve details.

Use the getSchedules method to retrieve schedule IDs. required: true schema: type: string responses: '200': description: Success content: application/json: schema: $ref: '#/components/schemas/UserScheduleResponse' '400': description: Bad Request '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. '404': description: Not Found x-response-codes: errors: '160038': domain: API_FEED category: REQUEST description: The schedule id {schedule_id} does not exist. '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 put: tags: - Schedule description: This method updates an existing schedule. Specify the schedule to update using the schedule_id path parameter. If the schedule template has changed after the schedule was created or updated, the input will be validated using the changed 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 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.

Use the getSchedules method to retrieve schedule IDs. required: true schema: type: string - 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.

For more information, refer to HTTP request headers. required: true schema: type: string requestBody: description: 'In the request payload: scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.' content: application/json: schema: description: 'In the request payload: scheduleName is optional; preferredTriggerHour, preferredTriggerDayOfWeek, preferredTriggerDayOfMonth, scheduleStartDate, scheduleEndDate, and schemaVersion are conditional.' $ref: '#/components/schemas/UpdateUserScheduleRequest' required: true responses: '204': description: No Content '400': description: Bad Request x-response-codes: errors: '160034': domain: API_FEED category: REQUEST description: The '{fieldName}' is invalid, missing, or not allowed. '160036': domain: API_FEED category: REQUEST description: The '{fieldName}' is in past. '160037': domain: API_FEED category: REQUEST description: The 'scheduleEndDate' is before 'scheduleStartDate'. '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. '404': description: Not Found x-response-codes: errors: '160038': domain: API_FEED category: REQUEST description: The schedule id {schedule_id} does not exist. '409': description: Conflict x-response-codes: errors: '160040': domain: API_FEED category: BUSINESS description: The 'scheduleTemplateId' is inactive. You cannot create or modify a schedule with an inactive 'scheduleTemplateId'. '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 delete: tags: - Schedule description: This method deletes an existing schedule. Specify the schedule to delete using the schedule_id path parameter. operationId: deleteSchedule parameters: - name: schedule_id in: path description: This path parameter is the unique identifier of the schedule being deleted.

Use the getSchedules method to retrieve schedule IDs. required: true schema: type: string responses: '204': description: No Content '400': description: Bad Request '404': description: Not Found x-response-codes: errors: '160038': domain: API_FEED category: REQUEST description: The schedule id {schedule_id} does not exist. '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/{schedule_id}/download_result_file: get: tags: - Schedule description: 'This method downloads the latest Order Report generated by the schedule. The response of this call is a compressed or uncompressed CSV, XML, or JSON file, with the applicable file extension (for example: csv.gz). Specify the schedule_id path parameter to download its last generated file.' operationId: getLatestResultFile parameters: - name: schedule_id in: path description: This path parameter is the unique identifier of the schedule for which to retrieve the latest Order Report.

Use the getSchedules method to retrieve schedule IDs. required: true schema: type: string responses: '200': description: Success headers: content-disposition: schema: type: string description: It contains the file metadata like file name. content: application/octet-stream: schema: $ref: '#/components/schemas/StreamingOutput' '400': description: Bad Request '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. '404': description: Not Found x-response-codes: errors: '160021': domain: API_FEED category: REQUEST description: No file found for 'schedule_id' {scheduleID}. '160038': domain: API_FEED category: REQUEST description: The schedule id {schedule_id} does not exist. '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/{schedule_template_id}: get: tags: - Schedule description: This method retrieves the details of the specified template. Specify the template to retrieve using the schedule_template_id path parameter. Use the getScheduleTemplates method to find a schedule template if you do not know the schedule_template_id. operationId: getScheduleTemplate parameters: - name: schedule_template_id in: path description: This path parameter is the unique identifier of the schedule template being retrieved.

Use the getScheduleTemplates method to retrieve schedule template IDs.

Note: Template schedules are currently only available for 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.

Note: Schedules are currently only available for 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: