Skip to main content

POST/customer_service_metric_task

Use this method to create a customer service metrics download task with filter criteria for the customer service metrics report. When using this method, specify the feedType and filterCriteria including both evaluationMarketplaceId and customerServiceMetricType for the report. The method returns the location response header containing the call URI to use with getCustomerServiceMetricTask to retrieve status and details on the task.

Only CURRENT Customer Service Metrics reports can be generated with the Sell Feed API. PROJECTED reports are not supported at this time. See the getCustomerServiceMetric method document in the Analytics API for more information about these two types of reports.

Note: Before calling this API, retrieve the summary of the seller's performance and rating for the customer service metric by calling getCustomerServiceMetric (part of the Analytics API). You can then populate the create task request fields with the values from the response. This technique eliminates failed tasks that request a report for a customerServiceMetricType and evaluationMarketplaceId that are without evaluation.

Input

Resource URI

POST https://api.ebay.com/sell/feed/v1/customer_service_metric_task

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

This method has no URI parameters.

HTTP request headers

All requests made to eBay REST operations require you to provide the Authorization HTTP header for authentication authorization.

The table below shows additional HTTP request headers that are either required, conditionally required, or strongly recommended for this method. Other standard HTTP request headers- opens rest request components page (not in this table) can also be used, but they are optional.

HeaderTypeDescription
Accept-LanguagestringUse this header to specify the natural language in which the authenticated user desires the response. For example, en-US for English or de-DE for German.

Occurrence: Required

Content-TypestringThis 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.

Occurrence: Required

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.analytics.readonly

See OAuth access tokens for more information.

Request payload

Copy complete valid JSON to clipboard

Request fields

Input container/fieldTypeDescription
feedTypestring

The feedType specified for the customer service metric task being created. The report lists the transaction details that contribute to the service metrics evaluation. Supported types include:

CUSTOMER_SERVICE_METRICS_REPORT

Occurrence: Required

filterCriteriaCustomerServiceMetricsFilterCriteria

This container is used to customize and set criteria for Customer Service Metric report that will be associated with the task.

Occurrence: Required

filterCriteria.customerServiceMetricTypeCustomerServiceMetricTypeEnum

An enumeration value that specifies the customer service metric that eBay tracks to measure seller performance.

See CustomerServiceMetricTypeEnum for values.

Occurrence: Required

filterCriteria.evaluationMarketplaceIdMarketplaceIdEnum

An enumeration value that specifies the eBay marketplace where the evaluation occurs.

See MarketplaceIdEnum for values.

Occurrence: Required

filterCriteria.listingCategoriesarray of string

A list of listing category IDs on which the service metric is measured. A seller can use one or more L1 (top-level) eBay categories to get metrics specific to those L1 categories. The Category IDs for each L1 category are required. Category ID values for L1 categories can be retrieved using the Taxonomy API.

Note: Pass this attribute to narrow down your filter results for the ITEM_NOT_AS_DESCRIBED customerServiceMetricType.

Supported categories include:

primary(L1) category Id

Occurrence: Optional

filterCriteria.shippingRegionsarray of ShippingRegionTypeEnum

A list of shipping region enumeration values on which the service metric is measured. This comma delimited array allows the seller to customize the report to focus on domestic or international shipping.

Note: Pass this attribute to narrow down your filter results for the ITEM_NOT_RECEIVED customerServiceMetricType.

Supported categories include:

primary(L1) category Id

See ShippingRegionTypeEnum for values

Occurrence: Optional

schemaVersionstring

The version number of the customer service metric.

Note: This field must have a value of 1.0.

Occurrence: Required

Output

HTTP response headers

See HTTP response headers for details.

HeaderMeaning
LocationThe location response header contains the getCustomerServiceMetricTask call URI that you can use to retrieve the customer service metric task just created.

Response payload

This call has no payload.

Response fields

This call has no field definitions.

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.

StatusMeaning
202Accepted
400Bad Request
403Forbidden
500Internal Server Error

Error codes

Note: Error Code 160001 may indicate a rate limit error (same as 160024 or 160025). For additional information, see Feed limits.

For more on errors, plus the codes of other common errors, see Handling errors.

CodeDomainCategoryMeaning
160001API_FEEDAPPLICATIONThere was a problem with an eBay internal system or process. Contact eBay Developer Technical Support for assistance.
160017API_FEEDREQUESTThe 'feedType' is missing or invalid.
160018API_FEEDREQUESTThe 'schemaVersion' is invalid.
160024API_FEEDREQUESTYou have reached the maximum number of feed tasks that can be queued or processed concurrently. Wait for current tasks to complete before adding tasks. For more information, see the documentation for this API.
160025API_FEEDREQUESTYou have exceeded the maximum number of feed tasks that can be created or processed in a given period (hour or day). Wait until the present period ends before adding tasks. For more information, see the documentation for this API.
164500API_FEEDREQUESTThe 'customerServiceMetricType' in 'filterCriteria' is not a valid type. Valid metric types are ITEM_NOT_AS_DESCRIBED or ITEM_NOT_RECEIVED.
164501API_FEEDREQUESTThe 'evaluationMarketplaceId' in 'filterCriteria' is not a supported marketplace. For a complete list of the supported marketplace IDs, see the documentation.
164502API_FEEDREQUESTThe 'listingCategories' in 'filterCriteria' or some part of the 'listingCategories' is invalid. {additionalInfo}
164503API_FEEDREQUESTThe 'shippingRegions' in 'filterCriteria' or some part of the 'shippingRegions' is invalid. {additionalInfo}
164504API_FEEDREQUESTThe Accept-Language header is missing or invalid.
164505API_FEEDREQUESTThe 'filterCriteria' is missing or invalid.
164506API_FEEDREQUESTThe 'listingCategories' is not applicable to the 'customerServiceMetricType' {customerServiceMetricType} in 'filterCriteria'.
164507API_FEEDREQUESTThe 'shippingRegions' is not applicable to the 'customerServiceMetricType' {customerServiceMetricType} in 'filterCriteria'.

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: Create an Item Not Received Customer Service Metrics Download Task

This call creates a task that retrieves an Item Not Received customer service metrics report for the specified feedType and filterCriteria.

Input

The inputs are feedType, filterCriteria (including shippingRegions, evaluationMarketplaceId, and customerServiceMetricType), and schemaVersion.

POSThttps://api.ebay.com/sell/feed/v1/customer_service_metric_task

Output

The output is an HTTP status. If the call is successful, the task ID is returned in the Location response header.

Sample 2: Create an Item Not As Described Customer Service Metrics Download Task

This call creates a task that retrieves an Item Not As Described customer service metrics report for the specified feedType and filterCriteria.

Input

The inputs are feedType, filterCriteria (including listingCategories, evaluationMarketplaceId, and customerServiceMetricType), and schemaVersion.

POSThttps://api.ebay.com/sell/feed/v1/customer_service_metric_task

Output

The output is an HTTP status. If the call is successful, the task ID is returned in the Location response header. This method has no response payload.

Got thoughts? Click the feedback button – your insights help us improve!