Skip to content

Option_Delete

Jacob McConnell edited this page Jun 9, 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 option.

####Arguments

  • None
  • Must be called on an Option instance

####Returns

Returns a Python object.

####Example Usage:

twocheckout.Api.credentials({'username':'APIuser1817037', 'password':'APIpass1817037'})

params = {
    'option_id': 4774527631
    }

option = twocheckout.Option.find(params)

result = option.delete()

print result

####Example Response:

{
   'response_code': 'OK',
   'response_message': 'Option deleted successfully'
}
Clone this wiki locally