DeletePromoCodeDefinition Method

Deletes an existing PromoCodeDefinition along with related promotion codes, promotion code history and promotion code transactions.

Namespace:  Microsoft.CommerceServer.Marketing.WebService
Assembly:  Microsoft.CommerceServer.Marketing.DataManagement (in Microsoft.CommerceServer.Marketing.DataManagement.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Overridable Sub DeletePromoCodeDefinition ( _
    promoCodeDefinitionId As Integer _
)
'Usage
Dim instance As MarketingWebService
Dim promoCodeDefinitionId As Integer

instance.DeletePromoCodeDefinition(promoCodeDefinitionId)
[WebMethodAttribute]
public virtual void DeletePromoCodeDefinition(
    int promoCodeDefinitionId
)
[WebMethodAttribute]
public:
virtual void DeletePromoCodeDefinition(
    int promoCodeDefinitionId
)
public function DeletePromoCodeDefinition(
    promoCodeDefinitionId : int
)

Parameters

  • promoCodeDefinitionId
    Type: System..::.Int32
    The Id of the promo code definition

Exceptions

Exception Condition
EntityStateException

The promotion code definition is being used by a Campaign

EntityDoesNotExistException

The promotion code definition does not exist

Remarks

Deletes a PromoCodeDefinition. The deleted PromoCodeDefinition contains the definition of a promotion code or set of promotion codes and are used for discounts.

Permissions

See Also

Reference

MarketingWebService Class

MarketingWebService Members

Microsoft.CommerceServer.Marketing.WebService Namespace