Create inventory transactions

post

/fscmRestApi/resources/11.13.18.05/inventoryTransactions

Request

Header Parameters
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: object
Show Source
Nested Schema : Transaction Lines
Type: array
Title: Transaction Lines
The Transaction Lines resource manages details about each transaction line.
Show Source
Nested Schema : inventoryTransactions-transactionLines-item-post-request
Type: object
Show Source
Nested Schema : Lots That Control Items
Type: array
Title: Lots That Control Items
The Lots That Control Items resource manages details about the lot. Use it when only the lot controls the item.
Show Source
Nested Schema : Lots That Share Control
Type: array
Title: Lots That Share Control
The Lots That Share Control resource manages details about the lots that control the item. Use it when lots and serials control the item.
Show Source
Nested Schema : Serials That Control Items
Type: array
Title: Serials That Control Items
The Serials That Control Items resource manages details about the serial. Use it when only the serial controls the item.
Show Source
Nested Schema : transactionLinesDFF
Type: array
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : lotItemLotAttributesDFF
Type: array
Show Source
Nested Schema : lotItemLotsDFF
Type: array
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotItemLots-lotItemLotAttributesDFF-item-post-request
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : lotSerialItemLotAttributesDFF
Type: array
Show Source
Nested Schema : lotSerialItemLotsDFF
Type: array
Show Source
Nested Schema : Serials That Share Control
Type: array
Title: Serials That Share Control
The Serials That Share Control resource manages details about the serials that control the item. Use it when lots and serials control the item.
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemLotsDFF-item-post-request
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemSerials-item-post-request
Type: object
Show Source
Nested Schema : lotSerialItemSerialAttributesDFF
Type: array
Show Source
Nested Schema : lotSerialItemSerialsDFF
Type: array
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemSerials-lotSerialItemSerialAttributesDFF-item-post-request
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemSerials-lotSerialItemSerialsDFF-item-post-request
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-serialItemSerials-item-post-request
Type: object
Show Source
Nested Schema : serialItemSerialAttributesDFF
Type: array
Show Source
Nested Schema : serialItemSerialsDFF
Type: array
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : schema
Type: object
Show Source
Back to Top

Response

Supported Media Types

Default Response

The following table describes the default response for this task.
Headers
  • If the REST API supports runtime customizations, the shape of the service may change during runtime. The REST client may isolate itself from these changes or choose to interact with the latest version of the API by specifying this header. For example: Metadata-Context:sandbox="TrackEmployeeFeature".
  • The protocol version between a REST client and service. If the client does not specify this header in the request the server will pick a default version for the API.
Body ()
Root Schema : inventoryTransactions-item-response
Type: object
Show Source
Nested Schema : Transaction Lines
Type: array
Title: Transaction Lines
The Transaction Lines resource manages details about each transaction line.
Show Source
Nested Schema : inventoryTransactions-transactionLines-item-response
Type: object
Show Source
Nested Schema : Lots That Control Items
Type: array
Title: Lots That Control Items
The Lots That Control Items resource manages details about the lot. Use it when only the lot controls the item.
Show Source
Nested Schema : Lots That Share Control
Type: array
Title: Lots That Share Control
The Lots That Share Control resource manages details about the lots that control the item. Use it when lots and serials control the item.
Show Source
Nested Schema : Serials That Control Items
Type: array
Title: Serials That Control Items
The Serials That Control Items resource manages details about the serial. Use it when only the serial controls the item.
Show Source
Nested Schema : transactionLinesDFF
Type: array
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotItemLots-item-response
Type: object
Show Source
Nested Schema : lotItemLotAttributesDFF
Type: array
Show Source
Nested Schema : lotItemLotsDFF
Type: array
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotItemLots-lotItemLotAttributesDFF-item-response
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotItemLots-lotItemLotsDFF-item-response
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-item-response
Type: object
Show Source
Nested Schema : lotSerialItemLotAttributesDFF
Type: array
Show Source
Nested Schema : lotSerialItemLotsDFF
Type: array
Show Source
Nested Schema : Serials That Share Control
Type: array
Title: Serials That Share Control
The Serials That Share Control resource manages details about the serials that control the item. Use it when lots and serials control the item.
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemLotAttributesDFF-item-response
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemLotsDFF-item-response
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemSerials-item-response
Type: object
Show Source
Nested Schema : lotSerialItemSerialAttributesDFF
Type: array
Show Source
Nested Schema : lotSerialItemSerialsDFF
Type: array
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemSerials-lotSerialItemSerialAttributesDFF-item-response
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-lotSerialItemLots-lotSerialItemSerials-lotSerialItemSerialsDFF-item-response
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-serialItemSerials-item-response
Type: object
Show Source
Nested Schema : serialItemSerialAttributesDFF
Type: array
Show Source
Nested Schema : serialItemSerialsDFF
Type: array
Show Source
Nested Schema : inventoryTransactions-transactionLines-serialItemSerials-serialItemSerialAttributesDFF-item-response
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-serialItemSerials-serialItemSerialsDFF-item-response
Type: object
Show Source
Nested Schema : inventoryTransactions-transactionLines-transactionLinesDFF-item-response
Type: object
Show Source
Back to Top

Examples

This example describes how to process inventory transactions.

Example cURL Command

Use the following cURL command to submit a request on the REST resource. This example processes inventory transactions for item INV-100, that occur on 2016-06-06, in subinventory Stores, in organization 207, for miscellaneous receipts:

curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/inventoryTransactions"

Example 1 Request Body

The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

{
 "transactionLines":[
  {
   "OrganizationId" : 207,
   "Item" : "INV-100",
   "Subinventory" : "Stores",
   "TransactionType" : "Miscellaneous Receipt",
   "TransactionUnitOfMeasure" : "Each",
   "TransactionQuantity" : 500,
   "TransactionDate" : "2016-06-06"
  }]
}

Example 1 Response Body

The following example includes the contents of the response body in JSON format:

{
  "ReturnStatus" : "SUCCESS",
  "ErrorCode" : null,
  "ErrorExplanation" : null,
  "ErrorUniqueTransactionId" : "0",
  "transactionLines" : [ {
    "UniqueTransactionId" : 300100090016070,
    "TransactionHeaderId" : 300100090016071,
    "OrganizationId" : 207,
    "OrganizationName" : null,
    "InventoryItemId" : null,
    "Item" : "INV-100",
    "Revision" : null,
    "Subinventory" : "Stores",
    "LocatorId" : null,
    "Locator" : null,
    "LocationType" : null,
    "PrimaryQuantity" : null,
    "TransactionQuantity" : 500,
    "TransactionUOM" : null,
    "TransactionUnitOfMeasure" : "Each",
    "SecondaryTransactionQuantity" : null,
    "SourceLineId" : -999,
    "SourceHeaderId" : 22234542,
    "TransactionDate" : "2016-06-06",
    "TransactionSourceId" : null,
    "TransactionSourceName" : null,
    "ReasonId" : null,
    "ReasonName" : null,
    "DistributionAccountId" : null,
    "OwningOrganizationId" : null,
    "OwningOrganizationName" : null,
    "OwningTpType" : null,
    "TransferOrganizationId" : null,
    "TransferOrganizationName" : null,
    "TransferOwningOrganizationId" : null,
    "TransferOwningOrganizationName" : null,
    "TransferOwningTpType" : null,
    "TransferSubinventory" : null,
    "TransferLocator" : null,
    "TransferLocatorName" : null,
    "ProcurementBU" : null,
    "VendorName" : null,
    "VendorNumber" : null,
    "AgingOnsetDate" : null,
    "TransactionSourceTypeId" : null,
    "TransactionSourceTypeName" : null,
    "TransactionActionId" : null,
    "TransactionAction" : null,
    "TransactionTypeId" : null,
    "TransactionType" : "Miscellaneous Receipt",
    "ShipmentNumber" : null
  } ]
}

Example 2 Request Body

The following example includes the contents of the request body in JSON format. You replace the request payload in the cURL command with the contents of the Example Request Body. The request payload specifies attribute values that the command will use in the record that it creates.

{
	"transactionLines":[
	{
		"OrganizationName" : "Fusion Denver",
		"Item" : "NJ_FG_ITEM",
		"Subinventory" : "FG DENV",
		"TransactionType" : "Miscellaneous Receipt",
		"TransactionUnitOfMeasure" : "Each",
		"TransactionQuantity" : 21 ,
		"TransactionDate" : "2021-01-25",
		"transactionLinesDFF":[{
			"gseg1":"Test",
			"__FLEX_Context" : "DFFCON",
			"csegment1" : "TestPRP"
		}]
	}]
}

Example 2 Response Body

The following example includes the contents of the response body in JSON format:

{
	"ReturnStatus": "SUCCESS",
	"ErrorCode": null,
	"ErrorExplanation": null,
	"ErrorUniqueTransactionId": "0",
	"transactionLines": [
	{
		"UniqueTransactionId": 300000122922871,
		"TransactionHeaderId": 300000122922872,
		"OrganizationId": null,
		"OrganizationName": "PennyPack Systems",
		"InventoryItemId": null,
		"Item": "NJ_FG_ITEM",
		"Revision": null,
		"Subinventory": "FG DENV",
		"LocatorId": null,
		"Locator": null,
		"LocationType": null,
		"PrimaryQuantity": null,
		"TransactionQuantity": 21,
		"TransactionUOM": null,
		"TransactionUnitOfMeasure": "Each",
		"SecondaryTransactionQuantity": null,
		"SourceLineId": -999,
		"SourceHeaderId": 364017,
		"TransactionDate": "2021-01-25T00:00:00+00:00",
		"TransactionSourceId": null,
		"TransactionSourceName": null,
		"ReasonId": null,
		"ReasonName": null,
		"DistributionAccountId": null,
		"OwningOrganizationId": null,
		"OwningOrganizationName": null,
		"OwningTpType": null,
		"TransferOrganizationId": null,
		"TransferOrganizationName": null,
		"TransferOwningOrganizationId": null,
		"TransferOwningOrganizationName": null,
		"TransferOwningTpType": null,
		"TransferSubinventory": null,
		"TransferLocator": null,
		"TransferLocatorName": null,
		"ProcurementBU": null,
		"VendorName": null,
		"VendorNumber": null,
		"AgingOnsetDate": null,
		"TransactionSourceTypeId": null,
		"TransactionSourceTypeName": null,
		"TransactionActionId": null,
		"TransactionAction": null,
		"TransactionTypeId": null,
		"TransactionType": "Miscellaneous Receipt",
		"ShipmentNumber": null,
		"transactionLinesDFF": [
		{
			"TransactionInterfaceId": 300000122922871,
			"gseg1": "Test",
			"__FLEX_Context": "DFFCON",
			"__FLEX_Context_DisplayValue": "DFFCONTEXT",
			"csegment1": "TestPRP",
			"links": [
			{
				"rel": "self",
				"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871/child/transactionLinesDFF/300000122922871",
				"name": "transactionLinesDFF",
				"kind": "item",
				"properties": {
					"changeIndicator":"ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
				}
			},
			{
				"rel": "canonical",
				"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871/child/transactionLinesDFF/300000122922871",
				"name": "transactionLinesDFF",
				"kind": "item"
			},
			{
				"rel": "parent",
				"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871",
				"name": "transactionLines",
				"kind": "item"
			},
			{
				"rel": "lov",
				"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871/child/transactionLinesDFF/300000122922871/lov/LVVO___FLEX_Context",
				"name": "LVVO___FLEX_Context",
				"kind": "collection"
			}
			]
		}
		],
		"links": [
		{
			"rel": "self",
			"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871",
			"name": "transactionLines",
			"kind": "item",
			"properties": {
				"changeIndicator":"ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
			}
		},
		{
			"rel": "canonical",
			"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871",
			"name": "transactionLines",
			"kind": "item"
		},
		{
			"rel": "parent",
			"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017",
			"name": "inventoryTransactions",
			"kind": "item"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871/child/lotItemLots",
			"name": "lotItemLots",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871/child/lotSerialItemLots",
			"name": "lotSerialItemLots",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871/child/serialItemSerials",
			"name": "serialItemSerials",
			"kind": "collection"
		},
		{
			"rel": "child",
			"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines/300000122922871/child/transactionLinesDFF",
			"name": "transactionLinesDFF",
			"kind": "collection"
		}
		]
	}
	],
	"links": [
	{
		"rel": "self",
		"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017",
		"name": "inventoryTransactions",
		"kind": "item"
	},
	{
		"rel": "canonical",
		"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017",
		"name": "inventoryTransactions",
		"kind": "item"
	},
	{
		"rel": "child",
		"href": "https://servername/fscmRestApi/resources/version/inventoryTransactions/364017/child/transactionLines",
		"name": "transactionLines",
		"kind": "collection"
	}
	]
}
Back to Top