Markdown promotions are available on all eBay marketplaces. For more information, see Promotions Manager requirements and restrictions.
https://developer.ebay.com/api-docs/sell/marketing/resources/item_price_markdown/methods/createItemP...
marketplace Id : EBAY_CA
The Marketplace ID is not recognized or is not eligible for promotions.
Example REQUEST:
{"name":"5% discount - inventory","description":"5% discount - inventory","startDate":"2021-05-22T21:16:21.000Z","endDate":"2021-05-29T21:16:21.000Z","marketplaceId":"EBAY_CA","promotionStatus":"SCHEDULED","promotionImageUrl":"http:\/\/***.***.ca\/uploads\/imgs\/posts\/875\/752875.jpg","selectedInventoryDiscounts":[{"discountBenefit":{"percentageOffItem":65},"inventoryCriterion":{"inventoryCriterionType":"INVENTORY_BY_VALUE","listingIds":["265117295727"]}}]}
API Response
array(1) {
["errors"]=>
array(1) {
[0]=>
array(6) {
["errorId"]=>
int(38205)
["domain"]=>
string(13) "API_MARKETING"
["category"]=>
string(7) "REQUEST"
["message"]=>
string(71) "The Marketplace ID is not recognized or is not eligible for promotions."
["inputRefIds"]=>
array(1) {
[0]=>
string(13) "marketplaceId"
}
["parameters"]=>
array(2) {
[0]=>
array(2) {
["name"]=>
string(9) "fieldName"
["value"]=>
string(13) "marketplaceId"
}
[1]=>
array(2) {
["name"]=>
string(10) "fieldValue"
["value"]=>
string(0) ""
}
}
}
}
}
example of depreciated called
<?xml version="1.0" encoding="utf-8"?>
<SetPromotionalSaleRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>***</eBayAuthToken>
</RequesterCredentials>
<Action>Add</Action>
<PromotionalSaleDetails>
<DiscountType>Percentage</DiscountType>
<DiscountValue>64</DiscountValue>
<PromotionalSaleEndTime>2021-05-29T21:49:48.000Z</PromotionalSaleEndTime>
<PromotionalSaleName>64 % Sale</PromotionalSaleName>
<PromotionalSaleStartTime>2021-05-22T21:50:48.000Z</PromotionalSaleStartTime>
<PromotionalSaleType>PriceDiscountOnly</PromotionalSaleType>
</PromotionalSaleDetails>
<!-- Standard Input Fields -->
<ErrorLanguage>en_CA</ErrorLanguage>
<WarningLevel>High</WarningLevel>
</SetPromotionalSaleRequest>
RESPONSE:
<?xml version="1.0" encoding="UTF-8"?>
<SetPromotionalSaleResponse xmlns="urn:ebay:apis:eBLBaseComponents"><Timestamp>2021-05-22T21:49:49.065Z</Timestamp><Ack>Failure</Ack><Errors><ShortMessage>This API has been deprecated. For more information visit https://developer.ebay.com/docs/api-deprecation</ShortMessage><LongMessage>This API has been deprecated. For more information visit https://developer.ebay.com/docs/api-deprecation</LongMessage><ErrorCode></ErrorCode><SeverityCode>Error</SeverityCode></Errors><Version>1173</Version><Build>E1173_CORE_APISELLING_19187371_R1</Build></SetPromotionalSaleResponse>
SimpleXMLElement::__set_state(array(
'Timestamp' => '2021-05-22T21:49:49.065Z',
'Ack' => 'Failure',
'Errors' =>
SimpleXMLElement::__set_state(array(
'ShortMessage' => 'This API has been deprecated. For more information visit https://developer.ebay.com/docs/api-deprecation',
'LongMessage' => 'This API has been deprecated. For more information visit https://developer.ebay.com/docs/api-deprecation',
'ErrorCode' =>
SimpleXMLElement::__set_state(array(
)),
'SeverityCode' => 'Error',
)),
'Version' => '1173',
'Build' => 'E1173_CORE_APISELLING_19187371_R1',
))
and the following pages have also disappeared from api documentation website.
https://developer.ebay.com/devzone/xml/docs/reference/ebay/SetPromotionalSale.html
https://developer.ebay.com/devzone/xml/docs/reference/ebay/SetPromotionalSaleListings.html
---
need this to be resolved, sooner than later. so posting here as well.