General Information
...
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
id | Query | YESNO | String | N/A | The product id |
code | Query | YESNO | String | The Length is 4 - 5 | The 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 | ||||
---|---|---|---|---|
| ||||
> CURL -X DELETE http://127.0.0.1:4004/product?id=%product_id% |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": [ { } ]{...} } |