-
Notifications
You must be signed in to change notification settings - Fork 17
Coupon_Delete
Jacob McConnell edited this page Jun 10, 2014
·
2 revisions
You must specify your API username and password using the Twocheckout::API.credentials
method before calling a method in this class.
##Method
###delete!
Use to delete an existing coupon.
####Arguments
- None
- Must be called on a coupon instance.
####Returns
Returns an Hash object.
####Example Usage:
Twocheckout::API.credentials = { :username => 'APIuser1817037', :password => 'APIpass1817037' }
new_coupon = Twocheckout::Coupon.create({:date_expire => "2020-01-01", :type => "shipping", :minimum_purchase => 1.00})
puts new_coupon.delete!
####Example Response:
{
"response_code"=>"OK",
"response_message"=>"Coupon successfully deleted."
}
Please feel free to contact 2Checkout directly for assistance with your integration.