Skip to content

Delete Product

Request

Deletes the Product resource identified by the given identifier.

Authentication

Requires a valid API key in the X-API-KEY header.

Response

204 No Content — Product deleted.

Error Responses

  • 401 Unauthorized — Missing or invalid API key. Returned by the API gateway as { "message": "Unauthorized", "request_id": "d8aafa5b8f3e400b60bea0123dd33317" }.
  • 403 Forbidden — The API key does not have write permissions for this operation.
  • 404 Not Found — Product with the given identifier does not exist.
  • 500 Internal Server Error — Unexpected technical error.

Example

Request:

DELETE /Products(456) HTTP/1.1
X-API-KEY: your-api-key-here

Response:

HTTP/1.1 204 No Content
Path
productIdinteger, (int32)required

Product resource identifier

Headers
X-API-KEYstring

Tenant's API key (required)

Accept-Languagestring

Accept-Language header (not used for delete, accepted for consistency)

DELETE
/Products({productId})
curl -i -X DELETE \
  'https://api2.saleslayer.com/catalog/Products({productId})' \
  -H 'Accept-Language: string' \
  -H 'X-API-KEY: string'

Responses

No Content

Response
No content