Skip to main content
Published: April 25 2007, 4:30:00 PMUpdated: August 04 2022, 8:33:12 AM

How to delete a shipping discount profile ?

Summary

  By setting ModifyActionCode to Delete, you can delete saved Shipping Discount rule/s from your Shipping Discount Preferences. 

  • The deletion only affect to the active item in which no bid is placed.
  • If MappedDiscountProfileID is specified, the active listing that associated with the profile being deleted will use the discount profile identified by MappedDiscountProfileID property

         Note. --- After the deletion, GetItem API returns the ShippingProfileID defined in MappedDiscountProfileID property for any active or sold items associated with the shipping profile being deleted.  
                  --- After the deletion,  the Shipping Discount remains unchanged for any transactions whose item is linked to the shipping profile being deleted

  • If MappedDiscountProfileID is not specified, the  Shipping Discount Profile being deleted will be removed from any items that associated with the Profile in question

       Note.  --- After the deletion, GetItem API returns no ShippingDicountProfile container 
                 --- After the deletion,  the Shipping Discount remains unchanged for any transaction whose item is linked to the shipping profile being deleted


Detailed Description

The samples below illustrates the steps of createing and deleting Flat Shipping Profiles using SetShippingDiscountProfile API

1. SetShippingDiscount with <ModifyActionCode>Add</ModifyActionCode>

<?xml version="1.0" encoding="utf-8"?>
<SetShippingDiscountProfilesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
       <eBayAuthToken>Token</eBayAuthToken>
      </RequesterCredentials>
  </RequesterCredentials>
  <CurrencyID>USD</CurrencyID>
  <ModifyActionCode>Add</ModifyActionCode>
  <FlatShippingDiscount>
    <DiscountName>EachAdditionalPercentOff</DiscountName>
      <DiscountProfileName>FlatShipping1</DiscountProfileName>
      <EachAdditionalPercentOff>5.0</EachAdditionalPercentOff>
    </DiscountProfile>
    <DiscountProfile>
      <DiscountProfileName>FlatShipping4</DiscountProfileName>
      <EachAdditionalPercentOff>10.0</EachAdditionalPercentOff>
    </DiscountProfile>
  </FlatShippingDiscount>
  <CombinedDuration>Days_3</CombinedDuration>
</SetShippingDiscountProfilesRequest>

2. Make GetShippingDiscountProfile call to get DiscountProfileIDs

<?xml version="1.0" encoding="utf-8"?>
    <GetShippingDiscountProfilesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
    <RequesterCredentials><eBayAuthToken>TOKEN</eBayAuthToken>
    </RequesterCredentials>
</GetShippingDiscountProfilesRequest>

<?xml version="1.0" encoding="utf-8"?>
<GetShippingDiscountProfilesResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2007-04-27T06:48:00.881Z</Timestamp>
  <Ack>Success</Ack>
  <Version>509</Version>
  <Build>e509_core_Bundled_4546875_R1</Build>
  <CurrencyID>USD</CurrencyID>
  <FlatShippingDiscount>
    <DiscountName>EachAdditionalPercentOff</DiscountName>
    <DiscountProfile>
      <DiscountProfileID>1326000</DiscountProfileID>
      <DiscountProfileName>FlatShipping2</DiscountProfileName>
      <EachAdditionalPercentOff>2.0</EachAdditionalPercentOff>
    </DiscountProfile>
    <DiscountProfile>
      <DiscountProfileID>1330000</DiscountProfileID>
      <DiscountProfileName>FlatShipping1</DiscountProfileName>
      <EachAdditionalPercentOff>5.0</EachAdditionalPercentOff>
    </DiscountProfile>
  </FlatShippingDiscount>
    ---
  </GetShippingDiscountProfileResponse>

3. Delete a FlatShippingDiscount property with <ModifyActiveCode>Delete</ModifyActiveCode> and <MappedDicountProfileID>

<?xml version="1.0" encoding="utf-8"?>
<SetShippingDiscountProfilesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>Token</eBayAuthToken>
  </RequesterCredentials>
  <CurrencyID>USD</CurrencyID>
  <ModifyActionCode>Delete</ModifyActionCode>
  <FlatShippingDiscount>
    <DiscountProfile>
   
   <DiscountProfileID>1330000</DiscountProfileID>
      <MappedDiscountProfileID>1326000</MappedDiscountProfileID>

    </DiscountProfile>
  </FlatShippingDiscount>
  <CombinedDuration>Days_3</CombinedDuration>
</SetShippingDiscountProfilesRequest>

 

 

How well did this answer your question?
Answers others found helpful