Create
post
/fscmRestApi/resources/11.13.18.05/maintenanceMaterialTransactions
Request
Header Parameters
-
Metadata-Context: string
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".
-
REST-Framework-Version: string
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
- application/json
Root Schema : schema
Type:
Show Source
object-
BatchOriginCode: string
Maximum Length:
30 -
ErrorsExistFlag: boolean
-
InterfaceBatchCode(required): string
Title:
Batch CodeMaximum Length:30 -
InterfaceBatchId: integer
(int64)
-
InterfaceBatchName(required): string
Title:
Batch NameMaximum Length:120 -
InterfaceBatchStatus(required): string
Title:
Batch StatusMaximum Length:30 -
InterfaceBatchType: string
Title:
Import TransactionMaximum Length:30 -
MaterialTransactionDetail: array
Details
Title:
Details -
SourceSystemCode: string
Title:
Source System CodeMaximum Length:30 -
SourceSystemType: string
Title:
Source System TypeMaximum Length:30
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-item-post-request
Type:
Show Source
object-
AssemblyAssetId: integer
(int64)
-
AssemblyAssetNumber: string
Maximum Length:
80 -
AssemblySerialNumber: string
Maximum Length:
80 -
CountryOfOriginCode: string
Title:
Country of OriginMaximum Length:2 -
InventoryItemNumber: string
Title:
ItemMaximum Length:300 -
InvTransactionId: integer
(int64)
-
ItemRevision: string
Title:
Item RevisionMaximum Length:18 -
LicensePlateNumber: string
Title:
LPNMaximum Length:30 -
Locator: string
Maximum Length:
800 -
LocatorId: number
-
MaterialTransactionDFF: array
MaterialTransactionDFF
-
OrganizationCode: string
Title:
Organization CodeMaximum Length:30 -
ParentAssetId: integer
(int64)
-
ParentAssetNumber: string
Maximum Length:
255 -
ParentInventoryItemId: integer
(int64)
-
ParentInventoryItemNumber: string
Maximum Length:
255 -
ParentSerialNumber: string
Maximum Length:
80 -
ProjectNumber: string
Title:
Project NumberMaximum Length:25 -
RepairTransactionCode: string
Maximum Length:
30 -
SecondaryTransactionQuantity: number
Title:
Secondary Transaction Quantity -
SecondaryUnitOfMeasure: string
Title:
Secondary Unit of MeasureMaximum Length:25 -
ServiceWIPAccountingFlag: boolean
Maximum Length:
1 -
SourceHeaderReference: string
Title:
Source Header ReferenceMaximum Length:240 -
SourceHeaderReferenceId: integer
(int64)
Title:
Source Header Reference ID -
SourceLineReference: string
Title:
Source Line ReferenceMaximum Length:240 -
SourceLineReferenceId: integer
(int64)
Title:
Source Line Reference ID -
SourceSystemCode: string
Title:
Source System CodeMaximum Length:30 -
SubinventoryCode: string
Title:
Subinventory CodeMaximum Length:18 -
TaskNumber: string
Title:
Task NumberMaximum Length:100 -
TransactedAsset: integer
-
TransactionDate: string
(date-time)
Title:
Transaction Date -
TransactionGroupCode: string
Maximum Length:
100 -
TransactionLot: array
Transaction Lots
Title:
Transaction Lots -
TransactionQuantity(required): number
Title:
Transaction Quantity -
TransactionSerial: array
Transaction Serials
Title:
Transaction Serials -
TransactionTypeCode(required): string
Title:
Transaction Type CodeMaximum Length:30 -
TransactionUnitOfMeasure: string
Title:
Unit of MeasureMaximum Length:25 -
UseCommonInventoryFlag: boolean
Title:
Use Common InventoryMaximum Length:1 -
WoOperationSequenceNumber: number
Title:
Operation Sequence -
WorkOrderNumber: string
Title:
Work OrderMaximum Length:120
Nested Schema : schema
Type:
Show Source
object-
__FLEX_Context: string
Title:
ContextMaximum Length:30Context -
__FLEX_Context_DisplayValue: string
Title:
ContextContext -
Discriminator: string
-
InterfaceRowId: integer
(int64)
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionLot-item-post-request
Type:
Show Source
object-
LotExpirationDate: string
(date)
Title:
Lot Expiration DateIndicates the expiration date of the lot on the transaction lot resource, which is part of the maintenance material transactions root resource. -
LotNumber(required): string
Title:
Lot NumberMaximum Length:80 -
LotOriginationDate: string
(date-time)
Title:
Lot Origination DateIndicates the origination date of the lot on the transaction lot resource, which is part of the maintenance material transactions root resource. -
SecondaryTransactionQuantity: number
Title:
Secondary Transaction Quantity -
TransactionLotDFF: array
TransactionLotDFF
-
TransactionQuantity(required): number
Title:
Transaction Quantity
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionLot-TransactionLotDFF-item-post-request
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:30Context Value -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
Discriminator: string
-
InterfaceRowId: integer
(int64)
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionSerial-item-post-request
Type:
Show Source
object-
LotNumber: string
Title:
Lot NumberMaximum Length:80 -
SerialNumber(required): string
Title:
Serial NumberMaximum Length:80 -
SerialNumberTo: string
Title:
To Serial NumberMaximum Length:80 -
TransactionSerialDFF: array
TransactionSerialDFF
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionSerial-TransactionSerialDFF-item-post-request
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:30Context Value -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
Discriminator: string
-
InterfaceRowId: integer
(int64)
Response
Supported Media Types
- application/json
Default Response
The following table describes the default response for this task.
Headers
-
Metadata-Context:
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".
-
REST-Framework-Version:
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.
Root Schema : maintenanceMaterialTransactions-item-response
Type:
Show Source
object-
BatchOriginCode: string
Maximum Length:
30 -
ErrorsExistFlag: boolean
-
InterfaceBatchCode: string
Title:
Batch CodeMaximum Length:30 -
InterfaceBatchId: integer
(int64)
-
InterfaceBatchName: string
Title:
Batch NameMaximum Length:120 -
InterfaceBatchStatus: string
Title:
Batch StatusMaximum Length:30 -
InterfaceBatchType: string
Title:
Import TransactionMaximum Length:30 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
MaterialTransactionDetail: array
Details
Title:
Details -
SourceSystemCode: string
Title:
Source System CodeMaximum Length:30 -
SourceSystemType: string
Title:
Source System TypeMaximum Length:30
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : link
Type:
Show Source
object-
href: string
Title:
hyperlink referenceThe URI to the related resource. -
kind: string
Title:
kindAllowed Values:[ "collection", "item", "describe", "other" ]The kind of the related resource. -
name: string
Title:
nameThe name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relationAllowed Values:[ "self", "lov", "parent", "canonical", "child", "enclosure", "action", "custom" ]The name of the relation to the resource instance. Example: self.
Nested Schema : properties
Type:
Show Source
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-item-response
Type:
Show Source
object-
AssemblyAssetId: integer
(int64)
-
AssemblyAssetNumber: string
Maximum Length:
80 -
AssemblySerialNumber: string
Maximum Length:
80 -
CountryOfOriginCode: string
Title:
Country of OriginMaximum Length:2 -
ErrorMessageNames: string
Read Only:
trueMaximum Length:255 -
ErrorMessages: string
Read Only:
trueMaximum Length:2000 -
InventoryItemNumber: string
Title:
ItemMaximum Length:300 -
InvTransactionId: integer
(int64)
-
ItemRevision: string
Title:
Item RevisionMaximum Length:18 -
LicensePlateNumber: string
Title:
LPNMaximum Length:30 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
Locator: string
Maximum Length:
800 -
LocatorId: number
-
MaterialTransactionDFF: array
MaterialTransactionDFF
-
OrganizationCode: string
Title:
Organization CodeMaximum Length:30 -
ParentAssetId: integer
(int64)
-
ParentAssetNumber: string
Maximum Length:
255 -
ParentInventoryItemId: integer
(int64)
-
ParentInventoryItemNumber: string
Maximum Length:
255 -
ParentSerialNumber: string
Maximum Length:
80 -
ProjectNumber: string
Title:
Project NumberMaximum Length:25 -
RepairTransactionCode: string
Maximum Length:
30 -
SecondaryTransactionQuantity: number
Title:
Secondary Transaction Quantity -
SecondaryUnitOfMeasure: string
Title:
Secondary Unit of MeasureMaximum Length:25 -
ServiceWIPAccountingFlag: boolean
Maximum Length:
1 -
SourceHeaderReference: string
Title:
Source Header ReferenceMaximum Length:240 -
SourceHeaderReferenceId: integer
(int64)
Title:
Source Header Reference ID -
SourceLineReference: string
Title:
Source Line ReferenceMaximum Length:240 -
SourceLineReferenceId: integer
(int64)
Title:
Source Line Reference ID -
SourceSystemCode: string
Title:
Source System CodeMaximum Length:30 -
SubinventoryCode: string
Title:
Subinventory CodeMaximum Length:18 -
TaskNumber: string
Title:
Task NumberMaximum Length:100 -
TransactedAsset: integer
-
TransactionDate: string
(date-time)
Title:
Transaction Date -
TransactionGroupCode: string
Maximum Length:
100 -
TransactionLot: array
Transaction Lots
Title:
Transaction Lots -
TransactionQuantity: number
Title:
Transaction Quantity -
TransactionSerial: array
Transaction Serials
Title:
Transaction Serials -
TransactionTypeCode: string
Title:
Transaction Type CodeMaximum Length:30 -
TransactionUnitOfMeasure: string
Title:
Unit of MeasureMaximum Length:25 -
UseCommonInventoryFlag: boolean
Title:
Use Common InventoryMaximum Length:1 -
WoOperationSequenceNumber: number
Title:
Operation Sequence -
WorkOrderNumber: string
Title:
Work OrderMaximum Length:120
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-MaterialTransactionDFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
ContextMaximum Length:30Context -
__FLEX_Context_DisplayValue: string
Title:
ContextContext -
Discriminator: string
-
InterfaceRowId: integer
(int64)
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionLot-item-response
Type:
Show Source
object-
ErrorMessageNames: string
Read Only:
trueMaximum Length:255 -
ErrorMessages: string
Read Only:
trueMaximum Length:2000 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
LotExpirationDate: string
(date)
Title:
Lot Expiration DateIndicates the expiration date of the lot on the transaction lot resource, which is part of the maintenance material transactions root resource. -
LotNumber: string
Title:
Lot NumberMaximum Length:80 -
LotOriginationDate: string
(date-time)
Title:
Lot Origination DateIndicates the origination date of the lot on the transaction lot resource, which is part of the maintenance material transactions root resource. -
SecondaryTransactionQuantity: number
Title:
Secondary Transaction Quantity -
TransactionLotDFF: array
TransactionLotDFF
-
TransactionQuantity: number
Title:
Transaction Quantity
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionLot-TransactionLotDFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:30Context Value -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
Discriminator: string
-
InterfaceRowId: integer
(int64)
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionSerial-item-response
Type:
Show Source
object-
ErrorMessageNames: string
Read Only:
trueMaximum Length:255 -
ErrorMessages: string
Read Only:
trueMaximum Length:2000 -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
LotNumber: string
Title:
Lot NumberMaximum Length:80 -
SerialNumber: string
Title:
Serial NumberMaximum Length:80 -
SerialNumberTo: string
Title:
To Serial NumberMaximum Length:80 -
TransactionSerialDFF: array
TransactionSerialDFF
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionSerial-TransactionSerialDFF-item-response
Type:
Show Source
object-
__FLEX_Context: string
Title:
Context ValueMaximum Length:30Context Value -
__FLEX_Context_DisplayValue: string
Title:
Context ValueContext Value -
Discriminator: string
-
InterfaceRowId: integer
(int64)
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance.
Nested Schema : Links
Type:
arrayTitle:
LinksThe link relations associated with the resource instance.
Show Source
Links
- MaterialTransactionDetail
-
Parameters:
- InterfaceBatchId:
$request.path.InterfaceBatchId
- InterfaceBatchId:
Examples
This example describes how to create one maintenance material transaction.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -u username:password -X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions"
Example 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.
{
"SourceSystemCode" : "SAP",
"SourceSystemType" : "EXTERNAL",
"InterfaceBatchStatus" : "VALID",
"MaterialTransactionDetail" : [
{
"OrganizationCode" : "M1",
"SubinventoryCode" : "Stores",
"Locator" : "",
"TransactionDate" : "2017-08-30 08:45:45",
"TransactionQuantity" : 2,
"TransactionTypeCode" : "MATERIAL_ISSUE",
"WoOperationSequenceNumber" : 10,
"WorkOrderNumber" : "SM-WO-REST-TEST01",
"InventoryItemNumber" : "Hose",
"TransactionLot" :
[
{
"LotNumber" : "EOU12",
"TransactionQuantity" : 2
}
],
"TransactionSerial" :
[
{
"LotNumber":"EOU12",
"SerialNumber":"EOU1"
}
]
}
]
}Example Response Body
The following example includes the contents of the response body in JSON format:
{
"InterfaceBatchId": 300100113329005,
"BatchOriginCode": "WEB_SERVICE",
"InterfaceBatchType": "WO_MTL_TXN",
"InterfaceBatchName": "MTX_TXN_CODE300100113329005",
"SourceSystemCode": "SAP",
"InterfaceBatchCode": "MTX_TXN_CODE300100113329005",
"SourceSystemType": "EXTERNAL",
"InterfaceBatchStatus": "VALID",
"ErrorsExistFlag": "false",
"MaterialTransactionDetail": [
{
"InvTransactionId": 22276681,
"SourceSystemCode": null,
"OrganizationCode": "M1",
"WorkOrderNumber": "SM-WO-REST-TEST01",
"AssemblySerialNumber": null,
"WoOperationSequenceNumber": 10,
"TransactionDate": "2017-08-30T08:45:45+00:00",
"TransactionTypeCode": "MATERIAL_ISSUE",
"InventoryItemNumber": "Hose",
"ItemRevision": null,
"TransactionQuantity": 2,
"TransactionUnitOfMeasure": null,
"SubinventoryCode": "Stores",
"Locator": "",
"SourceHeaderReference": null,
"SourceHeaderReferenceId": null,
"SourceLineReference": null,
"SourceLineReferenceId": null,
"ErrorMessages": "",
"ErrorMessageNames": "",
"TransactionLot": [
{
"LotNumber": "EOU12",
"TransactionQuantity": 2,
"ErrorMessages": "",
"ErrorMessageNames": "",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006/child/TransactionLot/300100113329006",
"name": "TransactionLot",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006/child/TransactionLot/300100113329006",
"name": "TransactionLot",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006",
"name": "MaterialTransactionDetail",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006/child/TransactionLot/300100113329006/child/TransactionLotDFF",
"name": "TransactionLotDFF",
"kind": "collection"
}
]
}
],
"TransactionSerial": [
{
"LotNumber": "EOU12",
"SerialNumber": "EOU1",
"SerialNumberTo": null,
"ErrorMessages": "",
"ErrorMessageNames": "",
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006/child/TransactionSerial/300100113329006",
"name": "TransactionSerial",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006/child/TransactionSerial/300100113329006",
"name": "TransactionSerial",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006",
"name": "MaterialTransactionDetail",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006/child/TransactionSerial/300100113329006/child/TransactionSerialDFF",
"name": "TransactionSerialDFF",
"kind": "collection"
}
]
}
],
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006",
"name": "MaterialTransactionDetail",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006",
"name": "MaterialTransactionDetail",
"kind": "item"
},
{
"rel": "parent",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005",
"name": "maintenanceMaterialTransactions",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006/child/TransactionLot",
"name": "TransactionLot",
"kind": "collection"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail/300100113329006/child/TransactionSerial",
"name": "TransactionSerial",
"kind": "collection"
}
]
}
],
"links": [
{
"rel": "self",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005",
"name": "maintenanceMaterialTransactions",
"kind": "item",
"properties": {
"changeIndicator": "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178"
}
},
{
"rel": "canonical",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005",
"name": "maintenanceMaterialTransactions",
"kind": "item"
},
{
"rel": "child",
"href": "https://servername/fscmRestApi/resources/version/maintenanceMaterialTransactions/300100113329005/child/MaterialTransactionDetail",
"name": "MaterialTransactionDetail",
"kind": "collection"
}
]
}