Valuekeep Developers - Web API Reference

Parts and Inventory | Adjustment Reason

Service to manage entities of type 'AdjustmentReason'.

Overview


URL api/{tenantKey}/{orgKey}/inventoryManagement/adjustmentReasons
Methods Supported GET, POST, PUT, DELETE

All Operations

This service includes the following operations:

All Resources

This service uses the following resources:

All Enumerations

This service uses the following enumerations:

GET Operations

GET AdjustmentReasons (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 AdjustmentReasonResource.

Response status codes:

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

Resource URL:

GET /inventoryManagement/adjustmentReasons/odata

GET AdjustmentReason 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 AdjustmentReasonResource.

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 /inventoryManagement/adjustmentReasons/{id}

GET AdjustmentReason by key

Returns the entity record that matches the specified key.

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key.

Response:

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

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 /inventoryManagement/adjustmentReasons/{adjustmentReasonKey}

POST Operations

POST AdjustmentReasons

Creates a new entity record.

The following elements are required:

adjustmentReasonResource (ApiAdjustmentReasonResource) The request body should contain the entity record that should be created.
See ApiAdjustmentReasonResource.

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 ApiAdjustmentReasonResource.

Response status codes:

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

Resource URL:

POST /inventoryManagement/adjustmentReasons

PUT Operations

PUT Set AdjustmentReasonKey AdjustmentReason

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

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key.
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 /inventoryManagement/adjustmentReasons/{adjustmentReasonKey}/adjustmentReasonKey

PUT Set Description AdjustmentReason

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

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key.
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 /inventoryManagement/adjustmentReasons/{adjustmentReasonKey}/description

PUT Set IsActive AdjustmentReason

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

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key.
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 /inventoryManagement/adjustmentReasons/{adjustmentReasonKey}/isActive

PUT Set IsInValue AdjustmentReason

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

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key.
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 /inventoryManagement/adjustmentReasons/{adjustmentReasonKey}/isInValue

PUT Set Custom Attribute AdjustmentReason

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

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key
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 /inventoryManagement/adjustmentReasons/{adjustmentReasonKey}/{customAttributeName}

DELETE Operations

DELETE AdjustmentReason 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 /inventoryManagement/adjustmentReasons/{id}

DELETE AdjustmentReason by key

Deletes the entity record that matches the specified key.

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key.

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 /inventoryManagement/adjustmentReasons/{adjustmentReasonKey}

Resources


AdjustmentReasonResource

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key.
isInValue (bool) Set if the adjustment is only in value (stock level will not be affected). Defaulted from the adjustment reason.
adjustmentType (enum AdjustmentType) The type of adjustment: incoming or outgoing stock.
See AdjustmentType.

The following elements are optional:

description (string) The description of the adjustment reason.


ApiAdjustmentReasonResource

The following elements are required:

adjustmentReasonKey (string) The adjustment reason key.
isInValue (bool) Set if the adjustment is only in value (stock level will not be affected). Defaulted from the adjustment reason.
adjustmentType (enum AdjustmentType) The type of adjustment: incoming or outgoing stock.
See AdjustmentType.

The following elements are optional:

description (string) The description of the adjustment reason.


ExtensibilityCustomAttributeValueResource

The following elements are required:

value (object) The custom attribute value.

Enumerations


AdjustmentType

1 Entry
2 Issue