Valuekeep Developers - Web API Reference

GET Operations

GET Warehouses (odata)

Returns a page of the list of all the entity records available.

The following elements are optional:

opts (ODataQueryOptions) OData query option.

Response:

When successful, the response body contains the list of records available. See WarehouseResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /inventoryCore/warehouses/odata

GET Warehouse by identifier

Returns the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See WarehouseResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /inventoryCore/warehouses/{id}

GET Warehouse by key

Returns the entity record that matches the specified key.

The following elements are required:

warehouseKey (string) The key for the Warehouse.

Response:

When successful, the response body contains the entity record. See WarehouseResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /inventoryCore/warehouses/{warehouseKey}

POST Operations

POST Warehouses

Creates a new entity record.

The following elements are required:

warehouseResource (ApiWarehouseResource) The request body should contain the entity record that should be created.
See ApiWarehouseResource.

The following elements are optional:

customAttributes (JSON Document) A key-value pair in JSON format that represents the extensibility custom attributes for this entity.
The key should be the custom attribute name prefixed with "custom_", e.g. "custom_attributeName".
While the "customAttributes" element is optional, please notice that specific custom attributes might be marked as required.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiWarehouseResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /inventoryCore/warehouses

PUT Operations

PUT Set AllowPartEntries Warehouse

Updates the value of attribute 'AllowPartEntries' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/allowPartEntries

PUT Set AllowPartIssues Warehouse

Updates the value of attribute 'AllowPartIssues' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/allowPartIssues

PUT Set BuildingNumber Warehouse

Updates the value of attribute 'BuildingNumber' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/buildingNumber

PUT Set CityName Warehouse

Updates the value of attribute 'CityName' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/cityName

PUT Set ClosedExercise Warehouse

Updates the value of attribute 'ClosedExercise' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (DateTime) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/closedExercise

PUT Set Company Warehouse

Updates the value of attribute 'Company' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/company

PUT Set Country Warehouse

Updates the value of attribute 'Country' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/country

PUT Set Description Warehouse

Updates the value of attribute 'Description' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/description

PUT Set IsActive Warehouse

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/isActive

PUT Set IsLocked Warehouse

Updates the value of attribute 'IsLocked' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/isLocked

PUT Set ManagedExternally Warehouse

Updates the value of attribute 'ManagedExternally' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/managedExternally

PUT Set PostalZone Warehouse

Updates the value of attribute 'PostalZone' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/postalZone

PUT Set Region Warehouse

Updates the value of attribute 'Region' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/region

PUT Set StreetName Warehouse

Updates the value of attribute 'StreetName' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/streetName

PUT Set WarehouseKey Warehouse

Updates the value of attribute 'WarehouseKey' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/warehouseKey

PUT Set Custom Attribute Warehouse

Updates the value of 'CustomAttribute' in the specified entity record.

The following elements are required:

warehouseKey (string) The key for the Warehouse.
customAttributeName (string) The custom attribute name.
value (ExtensibilityCustomAttributeValueResource) The request body should contain the new value for the custom attribute.
See ExtensibilityCustomAttributeValueResource.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /inventoryCore/warehouses/{warehouseKey}/{customAttributeName}

DELETE Operations

DELETE Warehouse by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /inventoryCore/warehouses/{id}

DELETE Warehouse by key

Deletes the entity record that matches the specified key.

The following elements are required:

warehouseKey (string) The key for the Warehouse.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /inventoryCore/warehouses/{warehouseKey}

Resources


ApiWarehouseResource

The following elements are required:

warehouseKey (string) The key for the Warehouse.
company (string) The company for the Warehouse.
description (string) The description for the Warehouse.
allowPartEntries (bool) Determines if this warehouse accepts part entries.
allowPartIssues (bool) Determines if this warehouse accepts part issues.
isLocked (bool) Indicates if the warehouse is currently locked.

The following elements are optional:

streetName (string) The street name for the Warehouse.
buildingNumber (string) The building number for the Warehouse.
cityName (string) The city name for the Warehouse.
postalZone (string) The postal zone for the Warehouse.
closedExercise (DateTime) The closed exercise date for the Warehouse.
region (string) The region for the Warehouse.
country (string) The country for the Warehouse.
managedExternally (bool) Managed Externally.


WarehouseResource

The following elements are required:

warehouseKey (string) The key for the Warehouse.
company (string) The company for the Warehouse.
(fk) Allowed value: the natural key of a record of type Company. These records are accessibly through the Companies service.
description (string) The description for the Warehouse.
allowPartEntries (bool) Determines if this warehouse accepts part entries.
allowPartIssues (bool) Determines if this warehouse accepts part issues.
isLocked (bool) Indicates if the warehouse is currently locked.

The following elements are optional:

streetName (string) The street name for the Warehouse.
buildingNumber (string) The building number for the Warehouse.
cityName (string) The city name for the Warehouse.
postalZone (string) The postal zone for the Warehouse.
closedExercise (DateTime) The closed exercise date for the Warehouse.
region (string) The region for the Warehouse.
(fk) Allowed value: the natural key of a record of type Region. These records are accessibly through the Regions service.
country (string) The country for the Warehouse.
(fk) Allowed value: the natural key of a record of type Country. These records are accessibly through the Countries service.
managedExternally (bool) Managed Externally.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.