POST v1/inventory/adjustments
Creates new quantity/value inventory adjustments.
Request Information
URI Parameters
None.
Body Parameters
InventoryAdjustmentName | Description | Type | Additional information |
---|---|---|---|
Id |
Read-only. Inventory adjustment unique id - auto generated by the system. |
integer |
None. |
Type |
Inventory adjustment type. Available types: Quantity, Value, Quantity and Value. |
IdNamePair |
Required |
AdjustmentDate |
Date when inventory adjustment was issued - must be after accounting closing date. Default is today's date when it is left blank. |
date |
None. |
Memo |
Memo to provide additional information for the inventory adjustment. |
string |
None. |
Account |
Adjustment account from the Chart of Accounts. When it is left blank, default vaule of "Opening Balance Equity Account" from Accounting settings will be used. |
IdNamePair |
None. |
LineItemsClass |
Class. Is only required if class tracking is turned on and is flagged as required. |
IdNamePair |
None. |
LineItems |
Inventory adjustment line items |
Collection of InventoryAdjustmentLineItem |
Required |
Request Formats
application/json, text/json
{ "id": 1, "type": { "id": 1, "name": "sample string 2" }, "adjustmentDate": "2024-04-25T16:45:15.2967728-04:00", "memo": "sample string 2", "account": { "id": 1, "name": "sample string 2" }, "lineItemsClass": { "id": 1, "name": "sample string 2" }, "lineItems": [ { "item": { "id": 1, "name": "sample string 2" }, "locationLineItems": [ { "inventoryLocation": { "id": 1, "name": "sample string 2" }, "locationNewQty": 1.0, "locationQtyAdjustment": 1.0 }, { "inventoryLocation": { "id": 1, "name": "sample string 2" }, "locationNewQty": 1.0, "locationQtyAdjustment": 1.0 } ], "newQty": 1.0, "qtyAdjustment": 1.0, "newUnitValue": 1.0, "class": { "id": 1, "name": "sample string 2" } }, { "item": { "id": 1, "name": "sample string 2" }, "locationLineItems": [ { "inventoryLocation": { "id": 1, "name": "sample string 2" }, "locationNewQty": 1.0, "locationQtyAdjustment": 1.0 }, { "inventoryLocation": { "id": 1, "name": "sample string 2" }, "locationNewQty": 1.0, "locationQtyAdjustment": 1.0 } ], "newQty": 1.0, "qtyAdjustment": 1.0, "newUnitValue": 1.0, "class": { "id": 1, "name": "sample string 2" } } ] }
application/xml, text/xml
<InventoryAdjustment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.Accounting"> <Account xmlns:d2p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField> </Account> <AdjustmentDate>2024-04-25T16:45:15.2967728-04:00</AdjustmentDate> <Id>1</Id> <LineItems> <InventoryAdjustmentLineItem> <Class xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </Class> <Item xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </Item> <LocationLineItems> <InventoryLocationAdjustmentLineItem> <InventoryLocation xmlns:d6p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d6p1:_x003C_Id_x003E_k__BackingField>1</d6p1:_x003C_Id_x003E_k__BackingField> <d6p1:_x003C_Name_x003E_k__BackingField>sample string 2</d6p1:_x003C_Name_x003E_k__BackingField> </InventoryLocation> <LocationNewQty>1</LocationNewQty> <LocationQtyAdjustment>1</LocationQtyAdjustment> </InventoryLocationAdjustmentLineItem> <InventoryLocationAdjustmentLineItem> <InventoryLocation xmlns:d6p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d6p1:_x003C_Id_x003E_k__BackingField>1</d6p1:_x003C_Id_x003E_k__BackingField> <d6p1:_x003C_Name_x003E_k__BackingField>sample string 2</d6p1:_x003C_Name_x003E_k__BackingField> </InventoryLocation> <LocationNewQty>1</LocationNewQty> <LocationQtyAdjustment>1</LocationQtyAdjustment> </InventoryLocationAdjustmentLineItem> </LocationLineItems> <NewQty>1</NewQty> <NewUnitValue>1</NewUnitValue> <QtyAdjustment>1</QtyAdjustment> </InventoryAdjustmentLineItem> <InventoryAdjustmentLineItem> <Class xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </Class> <Item xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </Item> <LocationLineItems> <InventoryLocationAdjustmentLineItem> <InventoryLocation xmlns:d6p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d6p1:_x003C_Id_x003E_k__BackingField>1</d6p1:_x003C_Id_x003E_k__BackingField> <d6p1:_x003C_Name_x003E_k__BackingField>sample string 2</d6p1:_x003C_Name_x003E_k__BackingField> </InventoryLocation> <LocationNewQty>1</LocationNewQty> <LocationQtyAdjustment>1</LocationQtyAdjustment> </InventoryLocationAdjustmentLineItem> <InventoryLocationAdjustmentLineItem> <InventoryLocation xmlns:d6p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d6p1:_x003C_Id_x003E_k__BackingField>1</d6p1:_x003C_Id_x003E_k__BackingField> <d6p1:_x003C_Name_x003E_k__BackingField>sample string 2</d6p1:_x003C_Name_x003E_k__BackingField> </InventoryLocation> <LocationNewQty>1</LocationNewQty> <LocationQtyAdjustment>1</LocationQtyAdjustment> </InventoryLocationAdjustmentLineItem> </LocationLineItems> <NewQty>1</NewQty> <NewUnitValue>1</NewUnitValue> <QtyAdjustment>1</QtyAdjustment> </InventoryAdjustmentLineItem> </LineItems> <LineItemsClass xmlns:d2p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField> </LineItemsClass> <Memo>sample string 2</Memo> <Type xmlns:d2p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField> </Type> </InventoryAdjustment>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
InventoryAdjustmentName | Description | Type | Additional information |
---|---|---|---|
Id |
Read-only. Inventory adjustment unique id - auto generated by the system. |
integer |
None. |
Type |
Inventory adjustment type. Available types: Quantity, Value, Quantity and Value. |
IdNamePair |
Required |
AdjustmentDate |
Date when inventory adjustment was issued - must be after accounting closing date. Default is today's date when it is left blank. |
date |
None. |
Memo |
Memo to provide additional information for the inventory adjustment. |
string |
None. |
Account |
Adjustment account from the Chart of Accounts. When it is left blank, default vaule of "Opening Balance Equity Account" from Accounting settings will be used. |
IdNamePair |
None. |
LineItemsClass |
Class. Is only required if class tracking is turned on and is flagged as required. |
IdNamePair |
None. |
LineItems |
Inventory adjustment line items |
Collection of InventoryAdjustmentLineItem |
Required |
Response Formats
application/json, text/json
{ "id": 1, "type": { "id": 1, "name": "sample string 2" }, "adjustmentDate": "2024-04-25T16:45:15.3123868-04:00", "memo": "sample string 2", "account": { "id": 1, "name": "sample string 2" }, "lineItemsClass": { "id": 1, "name": "sample string 2" }, "lineItems": [ { "item": { "id": 1, "name": "sample string 2" }, "locationLineItems": [ { "inventoryLocation": { "id": 1, "name": "sample string 2" }, "locationNewQty": 1.0, "locationQtyAdjustment": 1.0 }, { "inventoryLocation": { "id": 1, "name": "sample string 2" }, "locationNewQty": 1.0, "locationQtyAdjustment": 1.0 } ], "newQty": 1.0, "qtyAdjustment": 1.0, "newUnitValue": 1.0, "class": { "id": 1, "name": "sample string 2" } }, { "item": { "id": 1, "name": "sample string 2" }, "locationLineItems": [ { "inventoryLocation": { "id": 1, "name": "sample string 2" }, "locationNewQty": 1.0, "locationQtyAdjustment": 1.0 }, { "inventoryLocation": { "id": 1, "name": "sample string 2" }, "locationNewQty": 1.0, "locationQtyAdjustment": 1.0 } ], "newQty": 1.0, "qtyAdjustment": 1.0, "newUnitValue": 1.0, "class": { "id": 1, "name": "sample string 2" } } ] }
application/xml, text/xml
<InventoryAdjustment xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BAPI.Models.Accounting"> <Account xmlns:d2p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField> </Account> <AdjustmentDate>2024-04-25T16:45:15.3123868-04:00</AdjustmentDate> <Id>1</Id> <LineItems> <InventoryAdjustmentLineItem> <Class xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </Class> <Item xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </Item> <LocationLineItems> <InventoryLocationAdjustmentLineItem> <InventoryLocation xmlns:d6p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d6p1:_x003C_Id_x003E_k__BackingField>1</d6p1:_x003C_Id_x003E_k__BackingField> <d6p1:_x003C_Name_x003E_k__BackingField>sample string 2</d6p1:_x003C_Name_x003E_k__BackingField> </InventoryLocation> <LocationNewQty>1</LocationNewQty> <LocationQtyAdjustment>1</LocationQtyAdjustment> </InventoryLocationAdjustmentLineItem> <InventoryLocationAdjustmentLineItem> <InventoryLocation xmlns:d6p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d6p1:_x003C_Id_x003E_k__BackingField>1</d6p1:_x003C_Id_x003E_k__BackingField> <d6p1:_x003C_Name_x003E_k__BackingField>sample string 2</d6p1:_x003C_Name_x003E_k__BackingField> </InventoryLocation> <LocationNewQty>1</LocationNewQty> <LocationQtyAdjustment>1</LocationQtyAdjustment> </InventoryLocationAdjustmentLineItem> </LocationLineItems> <NewQty>1</NewQty> <NewUnitValue>1</NewUnitValue> <QtyAdjustment>1</QtyAdjustment> </InventoryAdjustmentLineItem> <InventoryAdjustmentLineItem> <Class xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </Class> <Item xmlns:d4p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d4p1:_x003C_Id_x003E_k__BackingField>1</d4p1:_x003C_Id_x003E_k__BackingField> <d4p1:_x003C_Name_x003E_k__BackingField>sample string 2</d4p1:_x003C_Name_x003E_k__BackingField> </Item> <LocationLineItems> <InventoryLocationAdjustmentLineItem> <InventoryLocation xmlns:d6p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d6p1:_x003C_Id_x003E_k__BackingField>1</d6p1:_x003C_Id_x003E_k__BackingField> <d6p1:_x003C_Name_x003E_k__BackingField>sample string 2</d6p1:_x003C_Name_x003E_k__BackingField> </InventoryLocation> <LocationNewQty>1</LocationNewQty> <LocationQtyAdjustment>1</LocationQtyAdjustment> </InventoryLocationAdjustmentLineItem> <InventoryLocationAdjustmentLineItem> <InventoryLocation xmlns:d6p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d6p1:_x003C_Id_x003E_k__BackingField>1</d6p1:_x003C_Id_x003E_k__BackingField> <d6p1:_x003C_Name_x003E_k__BackingField>sample string 2</d6p1:_x003C_Name_x003E_k__BackingField> </InventoryLocation> <LocationNewQty>1</LocationNewQty> <LocationQtyAdjustment>1</LocationQtyAdjustment> </InventoryLocationAdjustmentLineItem> </LocationLineItems> <NewQty>1</NewQty> <NewUnitValue>1</NewUnitValue> <QtyAdjustment>1</QtyAdjustment> </InventoryAdjustmentLineItem> </LineItems> <LineItemsClass xmlns:d2p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField> </LineItemsClass> <Memo>sample string 2</Memo> <Type xmlns:d2p1="http://schemas.datacontract.org/2004/07/Striven.Common.Models"> <d2p1:_x003C_Id_x003E_k__BackingField>1</d2p1:_x003C_Id_x003E_k__BackingField> <d2p1:_x003C_Name_x003E_k__BackingField>sample string 2</d2p1:_x003C_Name_x003E_k__BackingField> </Type> </InventoryAdjustment>