Skip to main content
Skip table of contents

[DELETE] Delete product

Request Description

CODE
DELETE /v1/product/[product id]

The request allows you to delete products.

Connection Data

URL Parameters

[product id]

required

Product identifier
You can get it from:

Example: /v1/product/123456

Header Parameters

AuthorizationJWT

required

Authorization token

  • Format: Bearer [token]

  • Replace [token] with the token value you get in response to the request sent to the Authentication API

Example of Request

CODE
DELETE https://api.ecommerce.noventiq.com/v1/product/123456

Response Description

In response to the request, you receive the server response code corresponding to the processing result. Depending on the code, the response body may contain additional parameters.

Successful Response

If processing is successful, the following will return in response server response code: HTTP/1.1 200 OK.

Error Response

If an error occurs while processing the request, you receive a server response code corresponding to the result of processing. 
Depending on the code, the response body may contain additional parameters.

HTTP Server Response Error Code

HTTP code

Description

HTTP/1.1 401 Unauthorized

Unsuccessful authorization.
An additional error code (one or more) will be transferred in the response bodу.

HTTP/1.1 404 Not found

Invalid request URL or no producr having the identifier transferred is found. If no product is found, an additional additional error code will return in the response body. 

HTTP/1.1 500 Request Error

Internal Server Error. Please try again later or contact support.

Additional Error Codes for HTTP 401

The errors are the same for all the APIs that use token authorization.

Additional Error Codes for HTTP 404

Error

Message

Description

1030

Product not found

No product with the identifier transferred is found, or you do not have the rights to get the data. 

Body Parameters

errors

array [objects]

required

Error list

errors / [error object] / error

number

required

Error code

errors / [error object] / message

string

Error description

Example of Error Response

CODE
{
 "errors": [{
   "error": 1030,
   "message": "Product not found"
  }
 ]
}

Noventiq Checkout

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.