Create transactions
/fscmRestApi/resources/11.13.18.05/resourceTransactions
Request
-
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.
- application/json
object-
ResourceTransactionDetail: array
Resource Transaction Details
Title:
Resource Transaction DetailsThe Resource Transaction Details resource manages the details of the resource charges to the work order. -
SourceSystemCode: string
Title:
Source System CodeMaximum Length:30Abbreviation that indicates the source system from which data is being imported. Depending on the type of source system, this value could represent an internal Oracle Fusion product code or the actual trading community (TCA) source system reference. -
SourceSystemType: string
Title:
Source System TypeMaximum Length:30Default Value:EXTERNALValue that indicates the type of source system (internal or external) from which data is being imported. A list of accepted values is defined in the lookup type ORA_WIE_SOURCE_SYSTEM_TYPE. The default value is EXTERNAL.
arrayResource Transaction Detailsobject-
EquipmentIdentifier: string
Title:
Equipment IdentifierMaximum Length:80Abbreviation that identifies the equipment resource instance. -
LaborIdentifier: string
Title:
Labor IdentifierMaximum Length:30Abbreviation that identifies the labor resource instance. -
OperationSequenceNumber: number
Title:
Operation SequenceNumber that represents the work order operation sequence for which this resource transaction is being performed. -
OrganizationCode: string
Title:
Organization CodeMaximum Length:30Abbreviation that indicates the manufacturing plant to which this resource transaction is performed. -
PersonId: integer
(int64)
Value that uniquely identifies a person in Human Capital Management.
-
PersonNumber: string
Maximum Length:
30Number that's assigned to each person in Human Capital Management. -
ResourceActivityCode: string
Title:
Resource Activity CodeMaximum Length:30Abbreviation that indicates the activity this production resource is performing at this operation. A list of accepted values is defined in the lookup type ORA_WIS_RESOURCE_ACTIVITY. -
ResourceCode: string
Title:
Resource CodeMaximum Length:30Abbreviation that indicates the resource against which the quantity is transacted. This value is a user-specified key. -
ResourceSequenceNumber: number
Title:
Resource SequenceSequence number of the resource associated to this work order operation resource transaction. -
ResourceTransactionDFF: array
Flexfields for Resource Transactions
Title:
Flexfields for Resource TransactionsThe Flexfields for Resource Transactions resource manages descriptive flexfields that contain details about the resource transaction. -
SourceHeaderReference: string
Title:
Source Header ReferenceMaximum Length:240Value that identifies the user-facing header reference of the source system. -
SourceHeaderReferenceId: integer
(int64)
Title:
Source Header Reference IDValue that identifies the internal header reference of the source system. -
SourceLineReference: string
Title:
Source Line ReferenceMaximum Length:240Value that identifies the user-facing line reference of the source system. -
SourceLineReferenceId: integer
(int64)
Title:
Source Line Reference IDValue that identifies the internal line reference of the source system. -
SourceSystemCode: string
Title:
Source System CodeMaximum Length:30Abbreviation that indicates the source application from which data is being imported. Depending on the source system type, this value could represent an internal Oracle Fusion product code or the actual trading community (TCA) source system reference. The value of this attribute can be null. -
TransactionDate: string
(date-time)
Title:
Transaction DateDate when the resource transaction is performed. -
TransactionQuantity(required): number
Title:
Transaction QuantityQuantity of the resource being transacted. -
TransactionTypeCode(required): string
Title:
Transaction Type CodeMaximum Length:30Value that identifies the type of the resource transaction. Valid values include one of the following values. RESOURCE_CHARGE: charge the resource against the work order. RESOURCE_REVERSE: reverse the charges of the resource against the work order operation. A list of accepted values is defined in the lookup type ORA_WIE_TRANSACTION_TYPES. -
TransactionUnitOfMeasure: string
Title:
Unit of MeasureMaximum Length:25Unit of measure that the transacted quantity uses. The application can transact the resource only in the unit of measure that the work order definition or the resource specifies. -
TransactionUOMCode: string
Title:
Unit of MeasureMaximum Length:3Abbreviation that identifies the unit of measure that the transacted quantity uses. The application can transact the resource only in the unit of measure that the work order definition or the resource specifies. -
WorkOrderNumber: string
Title:
Work OrderMaximum Length:120Value that identifies the work order. The resource transactions are always performed in the context of a work order. -
WorkstationId: integer
(int64)
Value that uniquely identifies the workstation. It's a primary key that the application generates when it creates a workstation.
arrayFlexfields for Resource Transactionsobject-
__FLEX_Context: string
Title:
Context SegmentMaximum Length:80Descriptive flexfield context name for resource transactions. -
__FLEX_Context_DisplayValue: string
Title:
Context SegmentContext Segment -
Discriminator: string
This is a transient attribute. The value of this attribute will always be null. Ignore this attribute.
-
InterfaceRowId: integer
(int64)
Value that uniquely identifies the resource transaction detail that a descriptive flexfield references. This attribute should not be included in the request payload. The value of this attribute in the response payload includes the primary key of the resource transaction detail.
Response
- application/json
Default Response
-
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.
object-
ErrorsExistFlag: boolean
Read Only:
trueContains one of the following values: true or false. If true, then an error occurred while processing the resource transactions. If false, then an error did not occur while processing the resource transactions. This attribute does not have a default value. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
ResourceTransactionDetail: array
Resource Transaction Details
Title:
Resource Transaction DetailsThe Resource Transaction Details resource manages the details of the resource charges to the work order. -
SourceSystemCode: string
Title:
Source System CodeMaximum Length:30Abbreviation that indicates the source system from which data is being imported. Depending on the type of source system, this value could represent an internal Oracle Fusion product code or the actual trading community (TCA) source system reference. -
SourceSystemType: string
Title:
Source System TypeMaximum Length:30Default Value:EXTERNALValue that indicates the type of source system (internal or external) from which data is being imported. A list of accepted values is defined in the lookup type ORA_WIE_SOURCE_SYSTEM_TYPE. The default value is EXTERNAL.
arrayLinksarrayResource Transaction Detailsobject-
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.
object-
changeIndicator: string
Change indicator or the ETag value of the resource instance.
object-
EquipmentIdentifier: string
Title:
Equipment IdentifierMaximum Length:80Abbreviation that identifies the equipment resource instance. -
ErrorMessageNames: string
Read Only:
trueMaximum Length:255Name of the error message, if any, when processing the resource transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A comma ( , ) separates each message name. -
ErrorMessages: string
Read Only:
trueMaximum Length:2000Text of the error message, if any, when processing the resource transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A double dollar sign ($$) separates each message. -
LaborIdentifier: string
Title:
Labor IdentifierMaximum Length:30Abbreviation that identifies the labor resource instance. -
links: array
Links
Title:
LinksThe link relations associated with the resource instance. -
OperationSequenceNumber: number
Title:
Operation SequenceNumber that represents the work order operation sequence for which this resource transaction is being performed. -
OrganizationCode: string
Title:
Organization CodeMaximum Length:30Abbreviation that indicates the manufacturing plant to which this resource transaction is performed. -
PersonId: integer
(int64)
Value that uniquely identifies a person in Human Capital Management.
-
PersonNumber: string
Maximum Length:
30Number that's assigned to each person in Human Capital Management. -
ResourceActivityCode: string
Title:
Resource Activity CodeMaximum Length:30Abbreviation that indicates the activity this production resource is performing at this operation. A list of accepted values is defined in the lookup type ORA_WIS_RESOURCE_ACTIVITY. -
ResourceCode: string
Title:
Resource CodeMaximum Length:30Abbreviation that indicates the resource against which the quantity is transacted. This value is a user-specified key. -
ResourceSequenceNumber: number
Title:
Resource SequenceSequence number of the resource associated to this work order operation resource transaction. -
ResourceTransactionDFF: array
Flexfields for Resource Transactions
Title:
Flexfields for Resource TransactionsThe Flexfields for Resource Transactions resource manages descriptive flexfields that contain details about the resource transaction. -
SourceHeaderReference: string
Title:
Source Header ReferenceMaximum Length:240Value that identifies the user-facing header reference of the source system. -
SourceHeaderReferenceId: integer
(int64)
Title:
Source Header Reference IDValue that identifies the internal header reference of the source system. -
SourceLineReference: string
Title:
Source Line ReferenceMaximum Length:240Value that identifies the user-facing line reference of the source system. -
SourceLineReferenceId: integer
(int64)
Title:
Source Line Reference IDValue that identifies the internal line reference of the source system. -
SourceSystemCode: string
Title:
Source System CodeMaximum Length:30Abbreviation that indicates the source application from which data is being imported. Depending on the source system type, this value could represent an internal Oracle Fusion product code or the actual trading community (TCA) source system reference. The value of this attribute can be null. -
TransactionDate: string
(date-time)
Title:
Transaction DateDate when the resource transaction is performed. -
TransactionQuantity: number
Title:
Transaction QuantityQuantity of the resource being transacted. -
TransactionTypeCode: string
Title:
Transaction Type CodeMaximum Length:30Value that identifies the type of the resource transaction. Valid values include one of the following values. RESOURCE_CHARGE: charge the resource against the work order. RESOURCE_REVERSE: reverse the charges of the resource against the work order operation. A list of accepted values is defined in the lookup type ORA_WIE_TRANSACTION_TYPES. -
TransactionUnitOfMeasure: string
Title:
Unit of MeasureMaximum Length:25Unit of measure that the transacted quantity uses. The application can transact the resource only in the unit of measure that the work order definition or the resource specifies. -
TransactionUOMCode: string
Title:
Unit of MeasureMaximum Length:3Abbreviation that identifies the unit of measure that the transacted quantity uses. The application can transact the resource only in the unit of measure that the work order definition or the resource specifies. -
WoResourceTransactionId: integer
Read Only:
trueValue that identifies the transaction. If the transaction is successful, this attribute contains the transaction number. If the transaction is not successful, this attribute contains 0 (zero), the ErrorsExistFlag attribute contains true, and the ErrorMessages and ErrorMessageNames attributes contain the error details. This attribute is included in the response payload. -
WorkOrderNumber: string
Title:
Work OrderMaximum Length:120Value that identifies the work order. The resource transactions are always performed in the context of a work order. -
WorkstationId: integer
(int64)
Value that uniquely identifies the workstation. It's a primary key that the application generates when it creates a workstation.
arrayLinksarrayFlexfields for Resource Transactionsobject-
__FLEX_Context: string
Title:
Context SegmentMaximum Length:80Descriptive flexfield context name for resource transactions. -
__FLEX_Context_DisplayValue: string
Title:
Context SegmentContext Segment -
Discriminator: string
This is a transient attribute. The value of this attribute will always be null. Ignore this attribute.
-
InterfaceRowId: integer
(int64)
Value that uniquely identifies the resource transaction detail that a descriptive flexfield references. This attribute should not be included in the request payload. The value of this attribute in the response payload includes the primary key of the resource transaction detail.
-
links: array
Links
Title:
LinksThe link relations associated with the resource instance.
arrayLinks- ResourceTransactionDetail
-
Parameters:
- resourceTransactionsUniqID:
$request.path.resourceTransactionsUniqID
The Resource Transaction Details resource manages the details of the resource charges to the work order. - resourceTransactionsUniqID:
Examples
This example describes how to perform one resource transaction on a work order operation.
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/resourceTransactions"
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":"FUSION_MOBILE",
"SourceSystemType":"EXTERNAL",
"ResourceTransactionDetail":[{
"ResourceCode":"MIXER1",
"TransactionUnitOfMeasure":"HRS",
"OperationSequenceNumber":"10",
"OrganizationCode":"M1",
"TransactionTypeCode":"RESOURCE_CHARGE",
"TransactionDate" : "2016-06-07T11:12:30-07:00",
"TransactionQuantity":"2",
"WorkOrderNumber":"M11120",
"ResourceSequenceNumber":"10"
} ]
} Example Response Body
The following example includes the contents of the response body in JSON format:
{
"SourceSystemType" : "EXTERNAL",
"SourceSystemCode" : "FUSION_MOBILE",
"ErrorsExistFlag" : "false",
"ResourceTransactionDetail" : [ {
"WoResourceTransactionId" : 300100075348790,
"SourceSystemCode" : null,
"OrganizationCode" : "M1",
"WorkOrderNumber" : "M11120",
"OperationSequenceNumber" : 10,
"ResourceSequenceNumber" : 10,
"ResourceCode" : "MIXER1",
"ResourceActivityCode" : null,
"TransactionTypeCode" : "RESOURCE_CHARGE",
"TransactionQuantity" : 2,
"TransactionUnitOfMeasure" : "HRS",
"TransactionDate" : "2016-06-07T11:12:30-07:00",
"SourceLineReference" : null,
"SourceHeaderReference" : null,
"SourceLineReferenceId" : null,
"SourceHeaderReferenceId" : null,
"ErrorMessages" : "",
"ErrorMessageNames" : "",
...
} ]
}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.
{
"SourceSystemCode":"FUSION_MOBILE",
"SourceSystemType":"EXTERNAL",
"ResourceTransactionDetail":[
{
"ResourceCode":"MFG_RES_EQUIP_01",
"EquipmentIdentifier" : "Lathe_MC_01",
"TransactionQuantity":"1.5",
"TransactionUnitOfMeasure":"HRS",
"TransactionTypeCode":"RESOURCE_CHARGE",
"TransactionDate" : "2021-02-25T20:02:51.799+00:00",
"OrganizationCode":"M1",
"WorkOrderNumber":"M1022",
"OperationSequenceNumber":"10",
"ResourceSequenceNumber":"10"
},
{
"ResourceCode":"MFG_RES_LAB_01",
"LaborIdentifier" : "QC_TECH_02",
"TransactionQuantity":"4",
"TransactionUnitOfMeasure":"HRS",
"TransactionTypeCode":"RESOURCE_CHARGE",
"TransactionDate" : "2021-02-25T20:02:51.799+00:00",
"OrganizationCode":"M1",
"WorkOrderNumber":"M1022",
"OperationSequenceNumber":"10",
"ResourceSequenceNumber":"20"
}
]
}
Example 2 Response Body
The following example includes the contents of the response body in JSON format:
{
"SourceSystemType" : "EXTERNAL",
"SourceSystemCode" : "FUSION_MOBILE",
"ErrorsExistFlag" : "false",
"ResourceTransactionDetail" : [ {
"WoResourceTransactionId" : 300100546055107,
"SourceSystemCode" : null,
"OrganizationCode" : "M1",
"WorkOrderNumber" : "M1022",
"OperationSequenceNumber" : 10,
"ResourceSequenceNumber" : 10,
"ResourceCode":"MFG_RES_EQUIP_01",
"ResourceActivityCode" : null,
"TransactionTypeCode" : "RESOURCE_CHARGE",
"TransactionQuantity":"1.5",
"TransactionUOMCode" : null,
"TransactionUnitOfMeasure":"HRS",
"TransactionDate" : "2021-02-25T20:02:51.799+00:00",
"SourceLineReference" : null,
"SourceHeaderReference" : null,
"SourceLineReferenceId" : null,
"SourceHeaderReferenceId" : null,
"EquipmentIdentifier" : "Lathe_MC_01",
"LaborIdentifier" : null,
"ErrorMessages" : "",
"ErrorMessageNames" : "",
"links" : [ {
"rel" : "self",
"href" : "https://servername/fscmRestApi/resources/version/resourceTransactions/300100546055107/child/ResourceTransactionDetail/300100546055108",
"name" : "ResourceTransactionDetail",
...
}
]
}
]
}