Delete Option
Last updated: 05-Jan-2022
The delete_option call is used to delete a product option.
URL: https://www.2checkout.com/api/products/delete_option
HTTP Method: POST
Parameter | Description |
---|---|
option_id | ID of option to delete. Required. |
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. |
curl -X POST https://www.2checkout.com/api/products/delete_option \
-H 'Accept: application/json' -u 'username:password' \
-d 'option_id=4709264206'
{
"response_code" : "OK",
"response_message" : "Option deleted successfully"
}
Code | Description |
---|---|
PARAMETER_MISSING | Required parameter missing: |
PARAMETER_INVALID | Invalid value for parameter: |
RECORD_NOT_FOUND | Unable to find record. |
FORBIDDEN | Access denied to option. |
Do you have a question? If you didn’t find the answer you are looking for in our documentation, you can contact our Support teams for more information. If you have a technical issue or question, please contact us. We are happy to help.
We’ll help you choose the right payment solution for your business, wherever you want to sell, in-person or online. Our team of experts will happily discuss your needs.