-
Notifications
You must be signed in to change notification settings - Fork 8
Option_Delete
Jacob McConnell edited this page Jun 11, 2014
·
1 revision
You must specify your API username and password when creating your 2checkout-node object (named ‘tco’ in these examples) before calling this method.
##Method
###delete
Use to delete a product option.
####Arguments
- object - Object containing option parameters. Parameters -> API Delete Option
- callback - Function to be called on success/error
####Returns
Response Object
####Example Usage:
args = {
option_id: 4691409938
};
tco.productOptions.delete(args, function (error, data) {
if (error) {
console.log(error);
} else {
console.log(data.response_code);
}
});####Example Response:
{
"response_code": "OK",
"response_message": "Option deleted successfully"
}Please feel free to contact 2Checkout directly for assistance with your integration.