Home
POST/suppress_listing_violation
This call suppresses a listing violation for a specific listing. Only listing violations in the AT_RISK
state (returned in the violations.complianceState field of the getListingViolations call) can be suppressed.
Note: At this time, the suppressViolation call only supports the suppressing of ASPECTS_ADOPTION
listing violations in the AT_RISK
state. In the future, it is possible that this method can be used to suppress other listing violation types.
A successful call returns a http status code of 204 Success
. There is no response payload. If the call is not successful, an error code will be returned stating the issue.
This method is supported in Sandbox environment. To access the endpoint, just replace the api.ebay.com
root URI with api.sandbox.ebay.com
This method has no URI parameters.
All requests made to eBay REST operations require you to provide the Authorization
HTTP header for authentication authorization.
In addition, this method requires you to include the Content-Type header and its value should be set to "application/json". See HTTP request headers- opens rest request components page for details.
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
See OAuth access tokens for more information.
Input container/field | Type | Description |
---|---|---|
complianceType | ComplianceTypeEnum | The compliance type of the listing violation to suppress is specified in this field. The compliance type for each listing violation is found in the complianceType field under the listingViolations array in a getListingViolations response. Occurrence: |
listingId | string | The unique identifier of the listing with the violation(s) is specified in this field. The unique identifier of the listing with the listing violation(s) is found in the listingId field under the listingViolations array in a getListingViolations response. Occurrence: |
This call has no response headers.
This call has no payload.
This call has no field definitions.
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 |
---|---|
204 | Success |
400 | Bad Request |
409 | Business error |
500 | Internal Server Error |
For more on errors, plus the codes of other common errors, see Handling errors.
Code | Domain | Category | Meaning |
---|---|---|---|
850001 | API_COMPLIANCE | APPLICATION | Any System error |
850110 | API_COMPLIANCE | REQUEST | Compliance type is invalid |
850111 | API_COMPLIANCE | REQUEST | Compliance type is missing |
850112 | API_COMPLIANCE | REQUEST | Invalid listing_id specified |
850113 | API_COMPLIANCE | REQUEST | listing_id not specified |
850120 | API_COMPLIANCE | REQUEST | Listing is already compliant. You can not suppress compliant listing |
850121 | API_COMPLIANCE | REQUEST | Listing has required aspects not filled. You can not suppress the violation when required aspects are missing |
850122 | API_COMPLIANCE | REQUEST | Violation is already suppressed on this listing |
This call has no warnings.
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.
This call suppresses a ASPECTS_ADOPTION
listing violation (in the AT_RISK
state) for a specific listing.
In the request payload, the user passes in ASPECTS_ADOPTION
as the complianceType, and identifies the listing through the listingId field.
POSThttps://api.ebay.com/sell/compliance/v1/suppress_listing_violation
A successful call returns a http status code of 204 Success
. There is no response payload.