Skip to main content

GET/promotion_summary_report

Note: As of July 8th 2024, promotions are now being referred to as discounts on Seller Hub and eBay help pages. Sell Marketing API documentation has been updated to reflect this product name change, but note that no API interface changes have been made.
This method generates a report that summarizes the seller's discounts for the specified eBay marketplace. The report returns information on RUNNING, PAUSED, and ENDED discounts (deleted reports are not returned) and summarizes the seller's campaign performance for all discounts on a given site.

For information about summary reports, see Reading the item discount Summary report.

Input

Resource URI

GET https://api.ebay.com/sell/marketing/v1/promotion_summary_report?

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

ParameterTypeDescription
marketplace_idstringThis parameter specifies the eBay marketplace ID of the site for which you want a discount summary report.

See MarketplaceIdEnum for supported Marketplace ID values.

Occurrence: Required

HTTP request headers

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.

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

https://api.ebay.com/oauth/api_scope/sell.marketing

See OAuth access tokens for more information.

Request payload

This call has no payload.

Request fields

This call has no field definitions.

Output

HTTP response headers

This call has no response headers.

Response payload

Response fields

Output container/fieldTypeDescription
baseSaleAmount

The total revenue from all the purchased items that were part of a discount but did not trigger a discount during the discount period.

Occurrence: Always

baseSale.currencyCurrencyCodeEnum

The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD

Occurrence: Conditional

baseSale.valuestring

The monetary amount in the specified currency.

Required in the amount type.

Occurrence: Conditional

lastUpdatedstring

The date the report was generated.

Occurrence: Always

percentageSalesLiftstring

The percentage of the total dollar amount gained due to discounts. This value is calculated as follows:

precentageSalesLift = promotionSale / (baseSale + promotionSale)

Occurrence: Always

promotionSaleAmount

The total revenue from all the purchased items that were part of a discount and their purchase did trigger a discount during the discount period.

Occurrence: Always

promotionSale.currencyCurrencyCodeEnum

The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD

Occurrence: Conditional

promotionSale.valuestring

The monetary amount in the specified currency.

Required in the amount type.

Occurrence: Conditional

totalSaleAmount

Total dollar sales amount of all the seller's listings, current to the date the report was generated.

Occurrence: Always

totalSale.currencyCurrencyCodeEnum

The base currency applied to the value field to establish a monetary amount.

The currency is represented as a 3-letter ISO 4217 currency code. For example, the code for the Canadian Dollar is CAD

Occurrence: Conditional

totalSale.valuestring

The monetary amount in the specified currency.

Required in the amount type.

Occurrence: Conditional

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
200Success
400Bad Request
404Not Found
500Internal Server Error

Error codes

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

CodeDomainCategoryMeaning
38201API_MARKETINGAPPLICATIONInternal server error encountered. If this problem persists, contact the eBay Developers Program for support.
38204API_MARKETINGREQUESTThe 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.

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: Generate Discount Summary Report

This sample returns a summary report for all the seller's discounts for the specified eBay marketplace.

Input

This method does not use a request payload. Specify the marketplace on which you want the summary report run using the marketplace_id query parameter.

GEThttps://api.ebay.com/sell/marketing/v1/promotion_summary_report?marketplace_id=EBAY_US

Output

The response body contains the fields of the report, for details see Reading the Discount Summary Report. You can use the report information to populate a page that summarizes a seller's discount performance for a given marketplace.