The related operation for the removal of inventory items is described.
Details of the request:
- Base URL: {host}/AFLSAPI/
- URI: /api/inventory/product/{Id}
-
Type: DELETE
-
Required headings:
- Content-Type: application/json
- X-Authorization: Bearer {Token}
URL Description
- {host}: It represents the domain of the environment in which the API is located.
- AFLSAPI/: Fixed API prefix.
- URI: Specific endpoint for the request.
⚐ EXAMPLE URL:
https://{host}/AFLSAPI/api/inventory/product/{Id}
Parameters:
Name | Data type | Obligatory | Description |
---|---|---|---|
Id | Integer | Yes | Product ID |
Answer:
As an answer, a JSON object is obtained, with the following information:
{
"cost": 1000,
"description": "Cable 20",
"id": 1
"isActive": true,
"measureId": 1,
"minimuAmount": 2,
"name": "Cable Coaxial",
"sku": "C001",
"typeProduct": 0
}
Error messages:
Code | HTTP status | Error Message |
---|---|---|
400 | BadRequest | No information found. |
500 | Internal Server Error | FailureLogin |