WebAPI - Creating a part with inventory extension
This
method allows to create a part of the part type with inventory extension in a
simplified manner.The
method to be used when creating a part with inventory extension is:
POST
url/api/mytenant/myorganization/inventorycore/inventoryparts/extendinventoryparts
Json
example to create a part of the part type with inventory extension:
{
"partKey":"I-0012",
"Description":"parafuso",
"ComplementaryDescription":null,
"Keyword":"PF0012",
"Barcode":"eTFp088",
"Family":null,
"Brand":null,
"BrandModel":null,
"PartType":1,
"BaseUnit":"LT","
Remarks":null,
"PartSubType":"AS",
"Warehouse":"W1",
"MinStock":"500.00",
"MaxStock":"700.00",
"UnitCost":"9.00"
}
This
method allows to create a part with inventory extension according to the filled
in parameters:- PartKey: The
parts' key. This field is mandatory.
- Description: Short
description of the part. This field is mandatory.
- ComplementaryDescription:
Full description.
- Keyword: Short
description of the part.
- Barcode: The
part tag.
- Family: The
family's key.
- Brand: The
brand's key.
- BrandModel: The
model's key.
- PartType:
When creating a part of the part type, this field is filled in with
"1". This field is mandatory.
- BaseUnit:
The base unit key. This field is mandatory.
- Picture: The
parts' image.
- Remarks: Location
observation.
- PartSubType:
The key of the part subtype.
- BaseUnit:
The base unit key. This field is mandatory.
- Warehouse:
The default warehouse key. This field is mandatory.
- MinStock:
The minimum stock value.
- MaxStock:
The maximum stock value.
- UnitCost:
The unitary price value.
When
this method is executed successfully, it returns HttpStatusCode.200 OK
Related Articles
Webapi - Creating a part of the service type
This method allows to create a part of the service type in a simplified manner. The method to be used to create a part of the service type is: POST url/api/mytenant/myorganization/businesscore/parts Json example to create a part of the service ...
WebAPI - Creating a tool
This method allows to create a tool in a simplified manner. The method to be used when creating a tool is: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating a tool: 1. { "equipmentKey": "PCR", ...
WebAPI - Creating an equipment
This method allows to create an equipment in a simplified manner. The method to be used when creating an equipment: POST url/api/mytenant/myorganization/assetmanagementcore/equipmentItems Json example for creating an equipment: 1. { ...
WebAPI - Changing a part or service attribute
This method allows to change a part or service field. The method to be used to change a part or service attribute is: PUT {{url}/api/{{tenant}}/{{organization}}/businesscore/parts/{{partKey}}/{{atributo}} The parameters on the method are the ...
WebAPI - Record and Maintenance of Parts and Services
This method allows to manage the record and maintenance of parts and services. For the inventory (parts), besides recording the part, it is also possible to classify it in terms of inventory, by identifying: the default warehouse, the minimum and ...