Language

2Checkout Documentation

Delete

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 product.

Arguments

  • None
    • Must be called on a product instance.

Returns

Returns a Hash object.

Example Usage:

Twocheckout::API.credentials = { :username => 'APIuser1817037', :password => 'APIpass1817037' }

product = Twocheckout::Product.find({:product_id => 4839045783})
response = product.delete!

Example Response:

{
    "response_code"=>"OK",
    "response_message"=>"Product successfully deleted."
}