This object provides details about the inventory running total that will be affected by the transaction. Details include information about whether to track the quantity, value, or both, affected by the transaction and whether that amount will increase or decrease when the user saves the transaction.
Returns a collection with a key, ID, and link for each transaction definition inventory total detail object associated with the purchasing transaction definition.
OK
Bad Request
{- "ia::result": [
- {
- "key": "9",
- "id": "9",
- "href": "/objects/purchasing/txn-definition-inventory-total-detail/9"
}, - {
- "key": "12",
- "id": "12",
- "href": "/objects/purchasing/txn-definition-inventory-total-detail/12"
}, - {
- "key": "14",
- "id": "14",
- "href": "/objects/purchasing/txn-definition-inventory-total-detail/14"
}
], - "ia::meta": {
- "totalCount": 3,
- "start": 1,
- "pageSize": 100,
- "next": null,
- "previous": null
}
}
Creates a new transaction definition inventory total detail object.
maintainType required | string Specify whether to track the quantity, value, or both for the specified Example: "value" | ||||
operation required | string Specify whether the amount will increase or decrease when the user saves the transaction. Example: "add" | ||||
required | object Specify the inventory total that will be affected by the transaction. | ||||
| |||||
object Purchasing transaction definition associated with this inventory total detail. | |||||
|
Created
Bad Request
{- "purchasingTxnDefinition": {
- "key": "96"
}, - "inventoryTotal": {
- "id": "DAMAGED"
}, - "maintainType": "quantity",
- "operation": "add"
}
{- "ia::result": {
- "key": "191",
- "id": "191",
- "href": "/objects/purchasing/txn-definition-inventory-total-detail/191"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Returns detailed information for a specified transaction definition inventory total detail object.
key required | string System-assigned unique key for the transaction definition inventory total detail object. Example: 99 |
OK
Bad Request
{- "ia::result": {
- "id": "191",
- "key": "191",
- "purchasingTxnDefinition": {
- "key": "96",
- "id": "Purchase Order",
- "href": "/objects/purchasing/txn-definition/96"
}, - "maintainType": "quantity",
- "inventoryTotal": {
- "id": "DAMAGED",
- "key": "55",
- "href": "/objects/inventory-control/total/55"
}, - "operation": "add",
- "href": "/objects/purchasing/txn-definition-inventory-total-detail/191"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Updates an existing transaction definition inventory total detail object by setting field values. Any fields not provided remain unchanged.
key required | string System-assigned unique key for the transaction definition inventory total detail object. Example: 99 |
maintainType | string Specify whether to track the quantity, value, or both for the specified Example: "value" | ||||
operation | string Specify whether the amount will increase or decrease when the user saves the transaction. Example: "add" | ||||
object Specify the inventory total that will be affected by the transaction. | |||||
| |||||
object Purchasing transaction definition associated with this inventory total detail. | |||||
|
OK
Bad Request
{- "purchasingTxnDefinition": {
- "key": "96"
}, - "operation": "subtract"
}
{- "ia::result": {
- "key": "192",
- "id": "192",
- "href": "/objects/purchasing/txn-definition-inventory-total-detail/192"
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 1,
- "totalError": 0
}
}
Deletes a transaction definition inventory total detail object.
key required | string System-assigned unique key for the transaction definition inventory total detail object. Example: 99 |
No Content
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}
Use the query service to find transaction definition inventory total details that meet certain criteria and to specify the properties that are returned.
OK
Bad Request
{- "ia::result": {
- "ia::error": {
- "code": "invalidRequest",
- "message": "A POST request requires a payload",
- "errorId": "REST-1028",
- "additionalInfo": {
- "messageId": "IA.REQUEST_REQUIRES_A_PAYLOAD",
- "placeholders": {
- "OPERATION": "POST"
}, - "propertySet": { }
}, - "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
}
}, - "ia::meta": {
- "totalCount": 1,
- "totalSuccess": 0,
- "totalError": 1
}
}