This method returns the set of listings associated with the promotion_id specified in the path parameter. Call getPromotions to retrieve the IDs of a seller's promotions.
The listing details are returned in a paginated set and you can control and results returned using the following query parameters: limit, offset, q, sort, and status.
|promotion_id||string||This path parameter takes a concatenation of the ID of the promotion you want to get plus the marketplace ID on which the promotion is hosted. Concatenate the two values by separating them with an "at sign" (@). |
The ID of the promotion (promotionId) is a unique eBay-assigned value that's generated when the promotion is created. The Marketplace ID is the ENUM value of eBay marketplace where the promotion is hosted.
|q||string||Reserved for future use. |
|limit||string||Specifies the maximum number of promotions returned on a page from the result set. |
|offset||string||Specifies the number of promotions to skip in the result set before returning the first promotion 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
|sort||array of SortField||Specifies the order in which to sort the associated listings in the response. If you precede the supplied value with a dash, the response is sorted in reverse order. |
|status||ItemMarkdownStatusEnum||This query parameter applies only to markdown promotions. It filters the response based on the indicated status of the promotion. Currently, the only supported value for this parameter is |
All requests made to eBay REST operations require you to provide the
Authorization HTTP header for authentication authorization.
All other standard RESTful request headers are optional. For more information on standard RESTful request headers, see the HTTP request headers- opens rest request components page table.
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):
See OAuth access tokens for more information.
This call has no payload.
This call has no field definitions.
This call has no response headers.
The URI of the current page of results from the result set.
The number of items returned on a single page from the result set. This value can be set in the request with the limit query parameter.
|listings||array of ListingDetail|
An array of the listings associated with a promotion.
The container that returns the current price of the listing.
The base currency applied to the value field to establish a monetary amount.
The monetary amount in the specified currency.
If set to
The seller's inventory reference ID for a listing. Also known as the "SKU" or "custom label," an inventory reference ID is either the ID of the listing or, if the listing has variations (such as a shirt that's available in multiple sizes and colors), the ID of the parent listing.
Indicates the type of the inventoryReferenceId, which can be either a single-SKU or a multi-SKU listing (
The ID of the category that listing belongs to. The ID is a numeric and unique identifier for the category that is assigned by eBay.
An eBay-assigned value that indicates condition of the associated item. For more information, see Item condition ID and name values.
The ID of the condition associated with the item. For more information, see Item condition ID and name values.
A unique eBay-assigned ID that is generated when the item is listed.
|listings.listingPromotionStatuses||array of ItemMarkdownStatus|
A list of the status values assigned to the item and the date that each new status was assigned.
Indicates the state assigned to the markdown promotion using one of the status values.
Identifies the date the last time the state of the promotion changed. Both both markdown and markup events can trigger a status change.
An eBay-assigned text string that describes the status of the promotion.
The number of items being sold in the listing.
Store CategoryId (if any) that to which the listing belongs. This field is blank if there is no seller Store category ID.
The seller-defined title of the listing that a seller can use to identify the item. This label is not displayed in end-user flows.
The URI for the following page of results. This value is returned only if there is an additional page of results to display from the result set.
The number of results skipped in the result set before listing the first returned result. This value can be set in the request with the offset query parameter.
Note: The items in a paginated result set use a zero-based list where the first item in the list has an offset of
The URI for the preceding page of results. This value is returned only if there is a previous page of results to display from the result set.
The total number of items retrieved in the result set.
|warnings||array of ErrorDetailV3|
A list of warnings that were generated by the request. Warning do not stop processing, but should be checked to ensure that the response contains the correct information.
The category type for this error or warning. It takes an ErrorCategory object which can have one of three values:
Name of the domain containing the service or application.
A positive integer that uniquely identifies the specific error condition that occurred. Your application can use error codes as identifiers in your customized error-handling algorithms.
|warnings.inputRefIds||array of string|
Identifies specific request elements associated with the error, if any. inputRefId's response is format specific. For JSON, use JSONPath notation.
An expanded version of message that should be around 100-200 characters long, but is not required to be such.
An end user and app developer friendly device agnostic message. It explains what the error or warning is, and how to fix it (in a general sense). Its value is at most 50 characters long. If applicable, the value is localized in the end user's requested locale.
|warnings.outputRefIds||array of string|
Identifies specific response elements associated with the error, if any. Path format is the same as
|warnings.parameters||array of ErrorParameterV3|
This optional complex field type contains a list of one or more context-specific
Name of the entity that threw the error.
A description of the error.
Name of the domain's subsystem or subdivision. For example, checkout is a subdomain in the buying domain.
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.
|500||Internal Server Error|
For more on errors, plus the codes of other common errors, see Handling errors.
|38201||API_MARKETING||APPLICATION||Internal server error encountered. If this problem persists, contact the eBay Developers Program for support.|
|38203||API_MARKETING||REQUEST||Resource not found. Check the ID and try the call again.|
|38204||API_MARKETING||REQUEST||The seller is not eligible for promotions because they do not have an eBay Store or they have not accepted the terms and conditions for creating a promotion on this Marketplace, see the documentation for this call.|
|38211||API_MARKETING||REQUEST||The offset value must be an integer value greater than or equal to zero.|
|38212||API_MARKETING||REQUEST||The sort value was not valid. For the valid values, see the documentation for this call.|
|38213||API_MARKETING||REQUEST||You can query a limit of between 0 and 200 promotion records at a time. Update the request and resubmit the call.|
For more on warnings, plus the codes of other common warnings, see Handling errors.
|345062||API_MARKETING||REQUEST||Sort is not supported for this promotion type. For help, see the documentation for this call.|
|345068||API_MARKETING||REQUEST||The value of the 'Status' parameter is invalid. For help, see the documentation for this call.|
|345069||API_MARKETING||REQUEST||The 'Status' parameter is only supported for itemPriceMarkdownPromotions. For help, see the documentation for this call.|
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 sample returns a paginated collection of the listings associated with a specific promotion.
Specify the markdown promotion for which you want to retrieve the listing set using the promotion ID concatenated with the marketplace ENUM as a URI query parameter. See the endpoint below for an example.
The output is an array of the listings.