Home
Find the answer to your question
How to add multiple items to a promotional sale? How do I verify which items were added to the promotional sale?
The SetPromotionalSaleListings call can be used to add multiple items to a promotional sale. Here is a sample request -
<?xml version="1.0" encoding="utf-8"?>
<SetPromotionalSaleListingsRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <Version>599</Version> <Action>Add</Action> <PromotionalSaleID>6002064014</PromotionalSaleID> <AllFixedPriceItems>false</AllFixedPriceItems> <AllStoreInventoryItems>false</AllStoreInventoryItems> <RequesterCredentials> <eBayAuthToken>Token</eBayAuthToken> </RequesterCredentials> <PromotionalSaleItemIDArray> <ItemID>190001377154</ItemID> <ItemID>190001369408</ItemID> </PromotionalSaleItemIDArray> </SetPromotionalSaleListingsRequest> |
<?xml version="1.0" encoding="UTF-8" ?>
- <SetPromotionalSaleListingsResponse xmlns="urn:ebay:apis:eBLBaseComponents"> <Timestamp>2009-02-11T01:47:47.645Z</Timestamp> <Ack>Failure</Ack> - <Errors> <ShortMessage>1 listings were ending before the sale ends.</ShortMessage> <LongMessage>1 listings were ending before the sale ends and violate the minimum duration of a sale rule.</LongMessage> <ErrorCode>219376</ErrorCode> <SeverityCode>Error</SeverityCode> - <ErrorParameters ParamID="0"> <Value>1</Value> </ErrorParameters> <ErrorClassification>RequestError</ErrorClassification> </Errors> <Version>605</Version> <Build>e605_core_Bundled_7945229_R1</Build> <Status>Active</Status> </SetPromotionalSaleListingsResponse> |
However there is a caveat. The response will come back with Failure unless all items were added successfully to the promotional sale (i.e. even when the call succeeds partially). As you can see from the example, there were some issues adding one item to the promotional sale.
So then what is the best way to identify and verify the items were added to the promotion sale?