General Information
...
Service | API | Method | Data Model | Workflow | Group |
---|---|---|---|---|---|
multitenant | /product | DELETE | Products | N/A | Product |
Description
Delete product
Input
...
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|---|---|---|---|---|
id | Query | NO | String | N/A | The product id |
code | Query | NO | String | The Length is 4 - 5 | The product code |
Output
...
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
result": true,
"data": {
"n": 1,
"ok": 1
}
} |
Invalid Response
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
{
"result":false,
"errors":{
"codes":[460],
"details":[
{
"code":460,
"message":"Unable to find products"
}
]
}
} |
Code | Description |
---|---|
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 |
500 | This record is locked. You cannot modify or delete it |
602 | Model error: + %model_error% |