Requisitions | Requisition
Service to manage entities of type 'Requisition'.
Overview
URL | api/{tenantKey}/{orgKey}/requisitions/requisitions |
Methods Supported | GET, POST, PUT, DELETE |
All Operations
This service includes the following operations:
- GET:
- POST:
-
PUT:
- PUT Set Custom Attribute Requisition
- PUT Set Custom Attribute RequisitionPart
- PUT Set IsActive Requisition
- PUT Set RequisitionKey Requisition
- PUT Set Description Requisition
- PUT Set RequisitionType Requisition
- PUT Set Date Requisition
- PUT Set RequestedBy Requisition
- PUT Set SchemaEntityState Requisition
- PUT Set Remarks Requisition
- PUT Set WorkOrders Requisition
- PUT Set Company Requisition
- PUT Set IsLocked Requisition
- PUT Set IsTechnician Requisition
- PUT Set TemplateParameters Requisition
- PUT Set NewStateId Requisition
- PUT Set PreviousStateId Requisition
- PUT Set TriggerStateId Requisition
- PUT Set IsWorkManager Requisition
- PUT Set AllowCreateStockEntry Requisition
- PUT Set Part RequisitionPart
- PUT Set Quantity RequisitionPart
- PUT Set Unit RequisitionPart
- PUT Set Warehouse RequisitionPart
- PUT Set Remarks RequisitionPart
- DELETE:
All Resources
This service uses the following resources:
GET Requisitions (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 RequisitionResource. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
GET Requisition 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 RequisitionResource. |
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 Requisition by key
Returns the entity record that matches the specified key.
The following elements are required:
companyKey | (string) The company key. |
requisitionKey | (string) Requisition. |
Response:
When successful, the response body contains the entity record. See RequisitionResource. |
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:
POST Requisitions
Creates a new entity record.
The following elements are required:
requisitionResource | (ApiRequisitionResource) The request body should contain the entity record that should be created. See ApiRequisitionResource. |
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 ApiRequisitionResource. |
Response status codes:
201 | Created. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Add WorkOrders by keys
Adds the specified 'WorkOrders' to the 'Requisition' (by specifying its keys).
The following elements are required:
requisitionKey | (string) Requisition. |
value | (Array of string) A list of record keys to be added. |
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 is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Add WorkOrders by identifiers
Adds the specified 'WorkOrders' to the 'Requisition' (by specifying its identifiers).
The following elements are required:
requisitionKey | (string) Requisition. |
value | (Array of string) A list of record identifiers to be added. |
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 is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Remove WorkOrders by keys
Removes the specified 'WorkOrders' to the 'Requisition' (by specifying its keys).
The following elements are required:
requisitionKey | (string) Requisition. |
value | (Array of string) A list of record keys to be removed. |
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 is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Remove WorkOrders by identifiers
Removes the specified 'WorkOrders' to the 'Requisition' (by specifying its identifiers).
The following elements are required:
requisitionKey | (string) Requisition. |
value | (Array of string) A list of record identifiers to be removed. |
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 is empty. |
Response status codes:
200 | OK. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Requisition Part
Inserts a new 'Requisition Part' in the 'Requisition'.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company key. |
value | (ApiRequisitionRequisitionPartsResource) The ApiRequisitionRequisitionPartsResource instance. See ApiRequisitionRequisitionPartsResource. |
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 is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
Resource URL:
POST Change Schema Entity State
Custom operation 'ChangeSchemaEntityState'.
The following elements are required:
companyKey | (string) CompanyKey. |
requisitionKey | (string) RequisitionKey. |
schemaEntityStateKey | (string) SchemaEntityStateKey. |
schemaEntityStateTransition | (ChangeSchemaEntityStateParamsResource) SchemaEntityStateTransition. |
isManager | (bool) IsManager. |
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 a resource of type 'RequisitionResource'. See RequisitionResource. |
Resource URL:
PUT Set AllowCreateStockEntry Requisition
Updates the value of attribute 'AllowCreateStockEntry' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set Company Requisition
Updates the value of attribute 'Company' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set Date Requisition
Updates the value of attribute 'Date' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company key. |
value | (DateTimeOffset) 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 Set Description Requisition
Updates the value of attribute 'Description' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set IsActive Requisition
Updates the value of attribute 'IsActive' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set IsLocked Requisition
Updates the value of attribute 'IsLocked' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set IsTechnician Requisition
Updates the value of attribute 'IsTechnician' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set IsWorkManager Requisition
Updates the value of attribute 'IsWorkManager' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set NewStateId Requisition
Updates the value of attribute 'NewStateId' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company key. |
value | (Guid) 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 Set Part RequisitionPart
Updates the value of attribute 'Part' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
lineId | (string) The detail identifier. |
companyKey | (string) The company 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 Set PreviousStateId Requisition
Updates the value of attribute 'PreviousStateId' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company key. |
value | (Guid) 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 Set Quantity RequisitionPart
Updates the value of attribute 'Quantity' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
lineId | (string) The detail identifier. |
companyKey | (string) The company key. |
value | (decimal) 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 Set Remarks Requisition
Updates the value of attribute 'Remarks' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set Remarks RequisitionPart
Updates the value of attribute 'Remarks' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
lineId | (string) The detail identifier. |
companyKey | (string) The company 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 Set RequestedBy Requisition
Updates the value of attribute 'RequestedBy' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set RequisitionKey Requisition
Updates the value of attribute 'RequisitionKey' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set RequisitionType Requisition
Updates the value of attribute 'RequisitionType' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set SchemaEntityState Requisition
Updates the value of attribute 'SchemaEntityState' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set TemplateParameters Requisition
Updates the value of attribute 'TemplateParameters' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company 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 Set TriggerStateId Requisition
Updates the value of attribute 'TriggerStateId' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company key. |
value | (Guid) 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 Set Unit RequisitionPart
Updates the value of attribute 'Unit' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
lineId | (string) The detail identifier. |
companyKey | (string) The company 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 Set Warehouse RequisitionPart
Updates the value of attribute 'Warehouse' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
lineId | (string) The detail identifier. |
companyKey | (string) The company 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 Set WorkOrders Requisition
Updates the value of attribute 'WorkOrders' in the specified entity record.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company key. |
value | (WorkOrder) 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 Set Custom Attribute Requisition
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
companyKey | (string) The company key. |
requisitionKey | (string) Requisition |
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 Set Custom Attribute RequisitionPart
Updates the value of 'CustomAttribute' in the specified entity record.
The following elements are required:
companyKey | (string) The company key. |
requisitionKey | (string) Requisition |
lineId | (string) The detail identifier. |
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:
DELETE Requisition Part by identifier
Deletes the entity record that matches the specified identifier.
The following elements are required:
requisitionKey | (string) Requisition. |
companyKey | (string) The company key. |
lineId | (string) The line identifier. |
Response:
When successful, the response body is empty. |
Response status codes:
204 | NoContent. The operation was completed successfully. |
400 | BadRequest. The request parameters are invalid. |
404 | NotFound. The specified record does not exist. |
Resource URL:
DELETE Requisition 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 Requisition by key
Deletes the entity record that matches the specified key.
The following elements are required:
companyKey | (string) The company key. |
requisitionKey | (string) Requisition. |
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:
Resources
ApiRequisitionRequisitionPartsResource
The following elements are required:
part | (string) Part. |
unit | (string) Unit. |
The following elements are optional:
quantity | (decimal) Quantity. |
warehouse | (string) Warehouse. |
remarks | (string) Remarks. |
ApiRequisitionResource
The following elements are required:
requisitionKey | (string) Requisition. |
requisitionType | (string) Requisition Type. |
date | (DateTimeOffset) Date. |
requestedBy | (string) Requested By. |
schemaEntityState | (string) State. |
company | (string) Company. |
isLocked | (bool) Is Locked. |
newStateId | (Guid) New State Id. |
The following elements are optional:
description | (string) Description. |
remarks | (string) Remarks. |
workOrders | (WorkOrder) Work Orders. |
requisitionParts | (List of ApiRequisitionRequisitionPartsResource) Requisition Parts.
See ApiRequisitionRequisitionPartsResource. |
isTechnician | (bool) Is Technician. |
templateParameters | (string) Template Parameters. |
previousStateId | (Guid) Previous State Id. |
triggerStateId | (Guid) Trigger State Id. |
isWorkManager | (bool) Is Work Manager. |
allowCreateStockEntry | (bool) Allow Create Stock Entry. |
RequisitionPartResource
The following elements are required:
part | (string) Part. |
unit | (string) Unit. |
The following elements are optional:
quantity | (decimal) Quantity. |
warehouse | (string) Warehouse. |
remarks | (string) Remarks. |
RequisitionResource
The following elements are required:
requisitionKey | (string) Requisition. |
requisitionType | (string) Requisition Type. |
date | (DateTimeOffset) Date. |
requestedBy | (string) Requested By. |
schemaEntityState | (string) State. |
company | (string) Company. |
isLocked | (bool) Is Locked. |
newStateId | (Guid) New State Id. |
The following elements are optional:
description | (string) Description. |
remarks | (string) Remarks. |
workOrders | (WorkOrder) Work Orders. |
requisitionParts | (List of RequisitionPartResource) Requisition Parts.
See RequisitionPartResource. |
isTechnician | (bool) Is Technician. |
templateParameters | (string) Template Parameters. |
previousStateId | (Guid) Previous State Id. |
triggerStateId | (Guid) Trigger State Id. |
isWorkManager | (bool) Is Work Manager. |
allowCreateStockEntry | (bool) Allow Create Stock Entry. |
ExtensibilityCustomAttributeValueResource
The following elements are required:
value | (object) The custom attribute value. |