Purchase Order Item Resource¶
Attach Asset Part To Purchase Order¶
HTTP Request
POST /api/purchaseOrderItems/{id}/assetParts/{assetPartId}/{quantity}
📋 Description: Creates a new asset part entry for a specified purchase order item, allowing users to allocate a defined quantity of the asset part to enhance inventory management and streamline procurement processes.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
assetPartId |
path |
integer(int64) |
true |
Unique identifier for the asset part |
quantity |
path |
integer(int64) |
true |
Quantity value |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
None |
Get All Purchase Order Items¶
HTTP Request
GET /api/purchaseOrderItems
📋 Description: Retrieves a list of purchase order items, providing essential details for inventory management and procurement analysis.
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1[
2 {
3 "id": 0,
4 "createdBy": "string",
5 "createdAt": "2019-08-24T14:15:22Z",
6 "displayId": "string",
7 "quantity": 0,
8 "price": "75.08",
9 "purchaseOrder": 0,
10 "assetPartId": "string",
11 "name": "string",
12 "model": "string",
13 "unitCost": "67.08",
14 "materialType": "string",
15 "assetPartType": "string",
16 "assetPartTypeId": 0
17 }
18]
Response Schema
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
false |
none |
[Data transfer object representing an individual item within a purchase order, including details such as quantity, price, and associated product information, facilitating efficient order management and procurement processes.] |
|
» id |
integer(int64) |
false |
none |
Unique identifier for the resource |
» createdBy |
string |
false |
none |
Username of who created this resource |
» createdAt |
string(date-time) |
false |
none |
Timestamp when this resource was created |
» displayId |
string |
false |
none |
Unique identifier for the display |
» quantity |
integer(int64) |
false |
none |
Quantity value |
» price |
string |
false |
none |
Represents the monetary value of the item in the purchase order, expressed as a string to accommodate various currency formats. |
» purchaseOrder |
integer(int64) |
false |
none |
Unique identifier for the purchase order associated with the item, facilitating tracking and management of procurement activities. |
» assetPartId |
string |
false |
none |
Unique identifier for the asset part |
» name |
string |
false |
none |
Name of the resource |
» model |
string |
false |
none |
Specifies the model associated with the purchase order item, providing essential details for inventory and procurement management. |
» unitCost |
string |
false |
none |
Represents the cost per unit of the item in the purchase order, essential for calculating total expenses and budget management. |
» materialType |
string |
false |
none |
Type of the material |
» assetPartType |
string |
false |
none |
Type of the asset part |
» assetPartTypeId |
integer(int64) |
false |
none |
Unique identifier for the asset part type |
Get Purchase Order Item¶
HTTP Request
GET /api/purchaseOrderItems/{id}
📋 Description: Retrieves detailed information about a specific purchase order item identified by its unique ID, facilitating effective inventory and procurement management.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Example Responses
1{
2 "id": 0,
3 "createdBy": "string",
4 "createdAt": "2019-08-24T14:15:22Z",
5 "displayId": "string",
6 "quantity": 0,
7 "price": "75.08",
8 "purchaseOrder": 0,
9 "assetPartId": "string",
10 "name": "string",
11 "model": "string",
12 "unitCost": "67.08",
13 "materialType": "string",
14 "assetPartType": "string",
15 "assetPartTypeId": 0
16}
Get All Asset Parts By Purchase Order¶
HTTP Request
GET /api/purchaseOrderItems/{id}/assetParts
📋 Description: Fetches the asset parts associated with a specific purchase order item, providing essential details for inventory management and asset tracking.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
Inline |
Example Responses
1[
2 {
3 "id": 0,
4 "createdBy": "string",
5 "createdAt": "2019-08-24T14:15:22Z",
6 "displayId": "string",
7 "quantity": 0,
8 "price": "75.08",
9 "purchaseOrder": 0,
10 "assetPartId": "string",
11 "name": "string",
12 "model": "string",
13 "unitCost": "67.08",
14 "materialType": "string",
15 "assetPartType": "string",
16 "assetPartTypeId": 0
17 }
18]
Response Schema
Status Code 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
false |
none |
[Data transfer object representing an individual item within a purchase order, including details such as quantity, price, and associated product information, facilitating efficient order management and procurement processes.] |
|
» id |
integer(int64) |
false |
none |
Unique identifier for the resource |
» createdBy |
string |
false |
none |
Username of who created this resource |
» createdAt |
string(date-time) |
false |
none |
Timestamp when this resource was created |
» displayId |
string |
false |
none |
Unique identifier for the display |
» quantity |
integer(int64) |
false |
none |
Quantity value |
» price |
string |
false |
none |
Represents the monetary value of the item in the purchase order, expressed as a string to accommodate various currency formats. |
» purchaseOrder |
integer(int64) |
false |
none |
Unique identifier for the purchase order associated with the item, facilitating tracking and management of procurement activities. |
» assetPartId |
string |
false |
none |
Unique identifier for the asset part |
» name |
string |
false |
none |
Name of the resource |
» model |
string |
false |
none |
Specifies the model associated with the purchase order item, providing essential details for inventory and procurement management. |
» unitCost |
string |
false |
none |
Represents the cost per unit of the item in the purchase order, essential for calculating total expenses and budget management. |
» materialType |
string |
false |
none |
Type of the material |
» assetPartType |
string |
false |
none |
Type of the asset part |
» assetPartTypeId |
integer(int64) |
false |
none |
Unique identifier for the asset part type |
Detach Asset Part From Purchase Order¶
HTTP Request
DELETE /api/purchaseOrderItems/{id}/assetParts/{assetPartId}
📋 Description: Deletes a specific asset part associated with a purchase order item, ensuring accurate inventory management and streamlined procurement processes.
Parameters
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
id |
path |
integer(int64) |
true |
Unique identifier for the resource |
assetPartId |
path |
integer(int64) |
true |
Unique identifier for the asset part |
Responses
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
OK |
None |