Delete Product
Overview
The delete_product call is used to delete a product.
URL: https://www.2checkout.com/api/products/delete_product
HTTP Method: POST
Input Parameters
| Parameter | Description |
|---|---|
| product_id | 2CO system product ID to delete. Required. |
Data Returned
| Parameter | Description |
|---|---|
| response_code | Tells the user whether or not the operation was successful. |
| response_message | Tells the user why the operation was or was not successful. |
Example API Call
curl -X POST https://www.2checkout.com/api/products/delete_product \
-H 'Accept: application/json' -u 'username:password' \
-d 'product_id=4136649378'Example Successful Response
{
"response_code" : "OK",
"response_message" : "Product successfully deleted."
}Common Error Codes
| Code | Description |
|---|---|
| PARAMETER_MISSING | Required parameter missing: |
| PARAMETER_INVALID | Invalid value for parameter: |
| RECORD_NOT_FOUND | Unable to find record. |
| FORBIDDEN | Access denied to product. |