Language

2Checkout Documentation

Delete

The CouponService class provides methods to create, retrieve, update and delete coupons.

Method

Delete

Use to delete an existing coupon.

Arguments

  • TwoCheckoutConfig - Set your ApiUsername and ApiPassword.
  • CouponDeleteServiceOptions - Object composed of delete coupon attributes.

Returns

Returns a TwoCheckoutResponse object.

Example Usage:

var ServiceObject = new CouponService();
var ArgsObject = new CouponDeleteServiceOptions();
ArgsObject.coupon_code = coupon_code;

var result = ServiceObject.Delete(ArgsObject);

Example Response:

{TwoCheckout.TwoCheckoutResponse}
  response_code: "OK"
  response_message: "Coupon successfully deleted."