Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

General Information

...


Name
Source
Mandatory
Type
Special Format
Description
idQueryYESNOStringN/AThe product id
codeQueryYESNOStringThe Length is 4 - 5The product code


...



Error Codes



Code
Description
602
Model error: + %model_error%
400
Business logic required data are missing
460

Unable to find products

466
You are not allowed to remove the product you are currently logged in with
474

Missing required field: either id or code

475

Unable to remove product record

500

This record is locked. You cannot modify or delete it

602

Model error: + %model_error%



Example (CURL)

...

Request

Code Block
languagebash
titleCalling List Products delete Product API
 > CURL -X DELETE http://127.0.0.1:4004/product?id=%product_id%

...

Code Block
languagejs
titleList Products Delete Product API response
{
   "result": true,
   "data": [
      {
         
      }
   ]{...}
}