Language

2Checkout Documentation

Delete

The ProductService class provides methods to create, retrieve, update and delete options.

Method

Delete

Use to delete an existing product.

Arguments

  • TwoCheckoutConfig - Set your ApiUsername and ApiPassword.
  • ProductDeleteServiceOptions - Object composed of delete product attributes.

Returns

Returns a TwoCheckoutResponse object.

Example Usage:

var ServiceObject = new ProductService();
var ArgsObject = new ProductDeleteServiceOptions();
ArgsObject.product_id = product_id;

var result = ServiceObject.Delete(ArgsObject);

Example Response:

{TwoCheckout.TwoCheckoutResponse}
  response_code: "OK"
  response_message: "Product successfully deleted."