Create

post

/fscmRestApi/resources/11.13.18.05/maintenanceMaterialTransactions

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 : Details
Type: array
Title: Details
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-item-post-request
Type: object
Show Source
Nested Schema : MaterialTransactionDFF
Type: array
Show Source
Nested Schema : Transaction Lots
Type: array
Title: Transaction Lots
Show Source
Nested Schema : Transaction Serials
Type: array
Title: Transaction Serials
Show Source
Nested Schema : schema
Type: object
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionLot-item-post-request
Type: object
Show Source
Nested Schema : TransactionLotDFF
Type: array
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionLot-TransactionLotDFF-item-post-request
Type: object
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionSerial-item-post-request
Type: object
Show Source
Nested Schema : TransactionSerialDFF
Type: array
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionSerial-TransactionSerialDFF-item-post-request
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 : maintenanceMaterialTransactions-item-response
Type: object
Show Source
Nested Schema : Details
Type: array
Title: Details
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-item-response
Type: object
Show Source
Nested Schema : MaterialTransactionDFF
Type: array
Show Source
Nested Schema : Transaction Lots
Type: array
Title: Transaction Lots
Show Source
Nested Schema : Transaction Serials
Type: array
Title: Transaction Serials
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-MaterialTransactionDFF-item-response
Type: object
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionLot-item-response
Type: object
Show Source
Nested Schema : TransactionLotDFF
Type: array
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionLot-TransactionLotDFF-item-response
Type: object
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionSerial-item-response
Type: object
Show Source
Nested Schema : TransactionSerialDFF
Type: array
Show Source
Nested Schema : maintenanceMaterialTransactions-MaterialTransactionDetail-TransactionSerial-TransactionSerialDFF-item-response
Type: object
Show Source
Back to Top

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"
        }
    ]
}
Back to Top