-
Notifications
You must be signed in to change notification settings - Fork 8
Product_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 an existing product.
####Arguments
- object - Object containing product parameters. Parameters -> API Delete Product
- callback - Function to be called on success/error
####Returns
Response Object
####Example Usage:
args = {
product_id: 4691409938
};
tco.products.delete(args, function (error, data) {
if (error) {
console.log(error);
} else {
console.log(data.response_code);
}
});
####Example Response:
{
"response_code": "OK",
"response_message": "Product successfully deleted."
}
Please feel free to contact 2Checkout directly for assistance with your integration.