The delete product operation will delete one product with the specified parameters.
Request
Request URI
Method | Request URI |
---|---|
DELETE | https://{company-name}.helloid.com/api/v1/selfservice/products/{productGuid} |
DELETE | https://{company-name}.helloid.com/api/v1/selfservice/products/{productCode} |
Request parameters
Parameter | Description |
---|---|
{productGuid} | The product guid of the product you want to delete. |
{productCode} | The product code (SKU) of the product you want to delete. |
Request headers
None.
Request body
None.
Response
Response status
Code | Description |
---|---|
200(OK) | Indicates that the operation was successful. |
400(BAD REQUEST) | Indicates that the operation was not successful. There were validation errors or the request body was malformed. |
401(UNAUTHORIZED) | Indicates that no authentication header was given or the api key and secret were invalid. If the api key and secret were valid check the configuration in your portal, it is possibilty these were IP restricted or are disabled. |
404(NOT FOUND) | Indicates that the product to be deleted does not exist or is already deleted. |
Please also see common HTTP status codes.
Sample response body
None.
Example request with cURL
Replace placeholder values surrounded by {
}
with the actual values.
curl -u {api-key}:{api-secret} -X DELETE https://{company-name}.helloid.com/api/v1/selfservice/products/{productGuid}
curl -u {api-key}:{api-secret} -X DELETE https://{company-name}.helloid.com/api/v1/selfservice/products/{productCode}