Language

2Checkout Documentation

Delete

You must specify your API username and password using the Twocheckout.apiusername & Twocheckout.apipassword class variables before calling a method in this class.

Method

delete

Use to delete an existing coupon.

Arguments

  • None

Returns

Returns a TwocheckoutResponse object.

Example Usage:

Coupon coupon = TwocheckoutCoupon.retrieve(coupon_code);
TwocheckoutResponse result = coupon.delete();

Example Response (toJson):

{
   "response_code" : "OK",
   "response_message" : "Coupon successfully deleted."
}