Create operation transactions

post

/fscmRestApi/resources/11.13.18.05/operationTransactions

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
  • Operation Transaction Details
    Title: Operation Transaction Details
    The Operation Transaction Details resource manages details of the operation transaction.
  • Title: Source System Code
    Maximum Length: 30
    Abbreviation that identifies the source application that started the operation transaction. It is the value defined in the Oracle Fusion Trading Community Model for external applications or the application product code for internal Oracle Cloud applications. If the SourceSystemType is INTERNAL, then the SourceSystemCode value is WIE. If the SourceSystemType is EXTERNAL, then specify valid values using the Setup and Maintenance work area, and the Manage Trading Community Source Systems task.
  • Title: Source System Type
    Maximum Length: 30
    Default Value: EXTERNAL
    Type of source application that started the operation transaction. Values include INTERNAL or EXTERNAL. A list of accepted values is defined in the lookup type ORA_WIE_SOURCE_SYSTEM_TYPE.
Nested Schema : Operation Transaction Details
Type: array
Title: Operation Transaction Details
The Operation Transaction Details resource manages details of the operation transaction.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-item-post-request
Type: object
Show Source
  • Maximum Length: 800
    Inventory locator where the products are completed to.
  • Title: Completion Subinventory Code
    Maximum Length: 18
    Abbreviation that identifies the subinventory in which the product will be stored during product completion.
  • Title: Country of Origin
    Maximum Length: 2
    Abbreviation that identifies the country of origin associated with the product.
  • Title: From Dispatch State
    Maximum Length: 30
    State of the transaction quantity for the operation at the beginning of processing.
  • Value that uniquely identifies the inspection event that this operation references. It is a primary key that the application generates when it starts an inspection for this operation.
  • Flexfields for Operation Transactions
    Title: Flexfields for Operation Transactions
    The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction.
  • Title: Organization Code
    Maximum Length: 30
    Abbreviation that identifies the organization where fulfillment performs the operation transaction.
  • Title: Purchase Order Line Number
    Number that uniquely identifies the purchase order.
  • Title: Purchase Order Header Number
    Maximum Length: 30
    Number of the purchase order. Use the PONumber attribute only if the plant is a contract manufacturing plant.
  • Title: Reason Code
    Maximum Length: 30
    Abbreviation that identifies the reason for the operation scrap transactions. This is a user-specified reason code. This is one of the additional attributes used by costing to determine the accounts for scrap and return from scrap. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Production Lookups task.
  • Title: Secondary Transaction Quantity
    Secondary quantity transacted for the operation. This attribute is associated with a feature that requires opt in.
  • Title: Sold-to Legal Entity Name
    Maximum Length: 240
    Name of the sold-to organization in the purchase order. Use this attribute only if the plant is a contract manufacturing plant.
  • Title: Source System Code
    Maximum Length: 30
    Abbreviation that identifies the source application that started the operation transaction.
  • Title: To Dispatch State
    Maximum Length: 30
    State of the transaction quantity for the operation at the end of processing.
  • Title: Transaction Date
    Date and time when the transaction was executed.
  • Transaction Lots
    Title: Transaction Lots
    The Transaction Lots resource manages details of the product lot.
  • Title: Transaction Note
    Maximum Length: 4000
    Notes that describe the operation transaction.
  • Title: Transaction Quantity
    Quantity transacted for the operation.
  • Transaction Serials
    Title: Transaction Serials
    The Transaction Serials resource manages details of the product serial.
  • Title: Unit of Measure
    Maximum Length: 25
    Unit of measure for the transaction quantity.
  • Title: Unit of Measure
    Maximum Length: 3
    Abbreviation that identifies the unit of measure for the transaction quantity.
  • Title: Undercomplete
    Maximum Length: 1
    Contains one of the following values: true or false. If true, then the work order is undercompleted. If false, then the work order is not undercompleted.This attribute is associated with a feature that requires opt in.
  • Title: Operation Sequence
    Number that identifies the sequence of the operation as defined in the work order operations. This attribute can take only whole numbers.
  • Value that uniquely identifies the transaction. If the transaction completes successfully, then this attribute contains a value that identifies the transaction. If the transaction does not complete successfully, then this attribute contains 0 (zero), the ErrorsExistFlag attribute contains true, and the ErrorMessages and ErrorMessageNames attributes contain error details.
  • Title: Work Order
    Maximum Length: 120
    Number that identifies the work order that the operation transaction references.
  • Value that uniquely identifies the workstation. It's a primary key that the application generates when it creates a workstation.
Nested Schema : Flexfields for Operation Transactions
Type: array
Title: Flexfields for Operation Transactions
The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction.
Show Source
Nested Schema : Transaction Lots
Type: array
Title: Transaction Lots
The Transaction Lots resource manages details of the product lot.
Show Source
Nested Schema : Transaction Serials
Type: array
Title: Transaction Serials
The Transaction Serials resource manages details of the product serial.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-OperationTransactionDFF-item-post-request
Type: object
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionLot-item-post-request
Type: object
Show Source
Nested Schema : Flexfields for Operation Transaction Lots
Type: array
Title: Flexfields for Operation Transaction Lots
The Flexfields for Operation Transaction Lots resource manages descriptive flexfields that contain details about the transaction lot.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionLot-TransactionLotDFF-item-post-request
Type: object
Show Source
  • Title: Context Value
    Maximum Length: 30
    Descriptive flexfield context name for transaction lots.
  • Title: Context Value
    Descriptive flexfield context display value for transaction lots.
  • Value that uniquely identifies the transaction lot that uses the descriptive flexfields. Make sure your request payload does not include a value for this attribute. The response payload includes the primary key of the transaction lot.
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionSerial-item-post-request
Type: object
Show Source
Nested Schema : Flexfields for Operation Transaction Serials
Type: array
Title: Flexfields for Operation Transaction Serials
The Flexfields for Operation Transaction Serials resource manages descriptive flexfields that contain details about the transaction serial.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionSerial-TransactionSerialDFF-item-post-request
Type: object
Show Source
  • Title: Context Value
    Maximum Length: 30
    Descriptive flexfield context name for transaction serials.
  • Title: Context Value
    Descriptive flexfield context display value for transaction serials.
  • Value that uniquely identifies the transaction serial that uses the descriptive flexfields. 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 transaction serial.
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 : operationTransactions-item-response
Type: object
Show Source
  • Read Only: true
    Contains one of the following values: true or false. If true, then an error occurred while processing the operation transaction. If false, then an error did not occur. The request payload should not have this attribute. This attribute does not have a default value.
  • Links
  • Operation Transaction Details
    Title: Operation Transaction Details
    The Operation Transaction Details resource manages details of the operation transaction.
  • Title: Source System Code
    Maximum Length: 30
    Abbreviation that identifies the source application that started the operation transaction. It is the value defined in the Oracle Fusion Trading Community Model for external applications or the application product code for internal Oracle Cloud applications. If the SourceSystemType is INTERNAL, then the SourceSystemCode value is WIE. If the SourceSystemType is EXTERNAL, then specify valid values using the Setup and Maintenance work area, and the Manage Trading Community Source Systems task.
  • Title: Source System Type
    Maximum Length: 30
    Default Value: EXTERNAL
    Type of source application that started the operation transaction. Values include INTERNAL or EXTERNAL. A list of accepted values is defined in the lookup type ORA_WIE_SOURCE_SYSTEM_TYPE.
Nested Schema : Operation Transaction Details
Type: array
Title: Operation Transaction Details
The Operation Transaction Details resource manages details of the operation transaction.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-item-response
Type: object
Show Source
  • Maximum Length: 800
    Inventory locator where the products are completed to.
  • Title: Completion Subinventory Code
    Maximum Length: 18
    Abbreviation that identifies the subinventory in which the product will be stored during product completion.
  • Title: Country of Origin
    Maximum Length: 2
    Abbreviation that identifies the country of origin associated with the product.
  • Read Only: true
    Maximum Length: 255
    Name of the error message, if any, when the transaction processing fails. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A comma ( , ) separate each message name.
  • Read Only: true
    Maximum Length: 2000
    Text of the error message, if any, when processing this transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A double dollar sign ($$) separate each message.
  • Title: From Dispatch State
    Maximum Length: 30
    State of the transaction quantity for the operation at the beginning of processing.
  • Value that uniquely identifies the inspection event that this operation references. It is a primary key that the application generates when it starts an inspection for this operation.
  • Links
  • Flexfields for Operation Transactions
    Title: Flexfields for Operation Transactions
    The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction.
  • Title: Organization Code
    Maximum Length: 30
    Abbreviation that identifies the organization where fulfillment performs the operation transaction.
  • Title: Purchase Order Line Number
    Number that uniquely identifies the purchase order.
  • Title: Purchase Order Header Number
    Maximum Length: 30
    Number of the purchase order. Use the PONumber attribute only if the plant is a contract manufacturing plant.
  • Title: Reason Code
    Maximum Length: 30
    Abbreviation that identifies the reason for the operation scrap transactions. This is a user-specified reason code. This is one of the additional attributes used by costing to determine the accounts for scrap and return from scrap. Review and update the value for this attribute using the Setup and Maintenance work area, and the Manage Production Lookups task.
  • Title: Secondary Transaction Quantity
    Secondary quantity transacted for the operation. This attribute is associated with a feature that requires opt in.
  • Title: Sold-to Legal Entity Name
    Maximum Length: 240
    Name of the sold-to organization in the purchase order. Use this attribute only if the plant is a contract manufacturing plant.
  • Title: Source System Code
    Maximum Length: 30
    Abbreviation that identifies the source application that started the operation transaction.
  • Title: To Dispatch State
    Maximum Length: 30
    State of the transaction quantity for the operation at the end of processing.
  • Title: Transaction Date
    Date and time when the transaction was executed.
  • Transaction Lots
    Title: Transaction Lots
    The Transaction Lots resource manages details of the product lot.
  • Title: Transaction Note
    Maximum Length: 4000
    Notes that describe the operation transaction.
  • Title: Transaction Quantity
    Quantity transacted for the operation.
  • Transaction Serials
    Title: Transaction Serials
    The Transaction Serials resource manages details of the product serial.
  • Title: Unit of Measure
    Maximum Length: 25
    Unit of measure for the transaction quantity.
  • Title: Unit of Measure
    Maximum Length: 3
    Abbreviation that identifies the unit of measure for the transaction quantity.
  • Title: Undercomplete
    Maximum Length: 1
    Contains one of the following values: true or false. If true, then the work order is undercompleted. If false, then the work order is not undercompleted.This attribute is associated with a feature that requires opt in.
  • Title: Operation Sequence
    Number that identifies the sequence of the operation as defined in the work order operations. This attribute can take only whole numbers.
  • Value that uniquely identifies the transaction. If the transaction completes successfully, then this attribute contains a value that identifies the transaction. If the transaction does not complete successfully, then this attribute contains 0 (zero), the ErrorsExistFlag attribute contains true, and the ErrorMessages and ErrorMessageNames attributes contain error details.
  • Title: Work Order
    Maximum Length: 120
    Number that identifies the work order that the operation transaction references.
  • Value that uniquely identifies the workstation. It's a primary key that the application generates when it creates a workstation.
Nested Schema : Flexfields for Operation Transactions
Type: array
Title: Flexfields for Operation Transactions
The Flexfields for Operation Transactions resource manages descriptive flexfields that contain details about the operation transaction.
Show Source
Nested Schema : Transaction Lots
Type: array
Title: Transaction Lots
The Transaction Lots resource manages details of the product lot.
Show Source
Nested Schema : Transaction Serials
Type: array
Title: Transaction Serials
The Transaction Serials resource manages details of the product serial.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-OperationTransactionDFF-item-response
Type: object
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionLot-item-response
Type: object
Show Source
  • Read Only: true
    Maximum Length: 255
    Name of the error message, if any, when processing this operation transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A comma ( , ) separate each message name.
  • Read Only: true
    Maximum Length: 2000
    Text of the error message, if any, when processing this operation transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A double dollar sign ($$) separate each message.
  • Links
  • Title: Lot Expiration Date
    Date and time when the lot expires.
  • Title: Hold Until Date
    Date when the hold expires for the lot number. This attribute is associated with a feature that requires opt in.
  • Title: Lot Number
    Maximum Length: 80
    Lot number for the transaction quantity.
  • Title: Lot Origination Date
    Date and time when the lot originated.
  • Title: Lot Origination Type
    Maximum Length: 30
    Origin of the lot. The application determines the lot origination type when you create the lot.
  • Title: Parent Lot Number
    Maximum Length: 80
    Number that identifies the parent lot of the lot number used for the work order material. This attribute is applicable if the material is lot controlled. This attribute is associated with a feature that requires opt in.
  • Secondary quantity of the product lot transacted for the work order. This attribute is associated with a feature that requires opt in.
  • Flexfields for Operation Transaction Lots
    Title: Flexfields for Operation Transaction Lots
    The Flexfields for Operation Transaction Lots resource manages descriptive flexfields that contain details about the transaction lot.
  • Title: Transaction Quantity
    Quantity of the product lot transacted for the work order.
Nested Schema : Flexfields for Operation Transaction Lots
Type: array
Title: Flexfields for Operation Transaction Lots
The Flexfields for Operation Transaction Lots resource manages descriptive flexfields that contain details about the transaction lot.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionLot-TransactionLotDFF-item-response
Type: object
Show Source
  • Title: Context Value
    Maximum Length: 30
    Descriptive flexfield context name for transaction lots.
  • Title: Context Value
    Descriptive flexfield context display value for transaction lots.
  • Value that uniquely identifies the transaction lot that uses the descriptive flexfields. Make sure your request payload does not include a value for this attribute. The response payload includes the primary key of the transaction lot.
  • Links
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionSerial-item-response
Type: object
Show Source
  • Read Only: true
    Maximum Length: 255
    Name of the error message, if any, when processing this serial in the operation transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A comma ( , ) separate each message name.
  • Read Only: true
    Maximum Length: 2000
    Text of the error messages, if any, when processing this serial in the operation transaction. Each text string in the ErrorMessages attribute corresponds to one error message name in the ErrorMessageNames attribute. A double dollar sign ($$) separate each message.
  • Links
  • Title: Lot Number
    Maximum Length: 80
    Lot number of the serial of the component that fulfillment issues for the work order. The LotNumber attribute is optional.
  • Title: Serial Number
    Maximum Length: 80
    Serial number of the product where fulfillment performs the operation transaction.
  • Flexfields for Operation Transaction Serials
    Title: Flexfields for Operation Transaction Serials
    The Flexfields for Operation Transaction Serials resource manages descriptive flexfields that contain details about the transaction serial.
Nested Schema : Flexfields for Operation Transaction Serials
Type: array
Title: Flexfields for Operation Transaction Serials
The Flexfields for Operation Transaction Serials resource manages descriptive flexfields that contain details about the transaction serial.
Show Source
Nested Schema : operationTransactions-OperationTransactionDetail-TransactionSerial-TransactionSerialDFF-item-response
Type: object
Show Source
  • Title: Context Value
    Maximum Length: 30
    Descriptive flexfield context name for transaction serials.
  • Title: Context Value
    Descriptive flexfield context display value for transaction serials.
  • Value that uniquely identifies the transaction serial that uses the descriptive flexfields. 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 transaction serial.
  • Links
Back to Top

Examples

This example describes how to perform an operation transaction on a work order.

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/operationTransactions"

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",
  "OperationTransactionDetail" : [ {
     "SourceSystemCode" : "FUSION_MOBILE",
     "OrganizationCode" : "M1",
     "TransactionDate" : "2016-06-05T11:12:30-07:00",
     "TransactionQuantity" : 4,
     "TransactionUnitOfMeasure" : "Each",
     "WoOperationSequenceNumber" : 10,
     "WorkOrderNumber" : "M11120",
     "FromDispatchState" : "READY",
     "ToDispatchState" : "COMPLETE"
  } ]
}

Example Response Body

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

{
  "SourceSystemType" : "EXTERNAL",
  "SourceSystemCode" : "FUSION_MOBILE",
  "ErrorsExistFlag" : "false",
  "OperationTransactionDetail" : [ {
    "WoOperationTransactionId" : 300100069214288,
    "SourceSystemCode" : "FUSION_MOBILE",
    "OrganizationCode" : "M1",
    "WorkOrderNumber" : "M11120",
    "WoOperationSequenceNumber" : 10,
    "TransactionDate" : "2016-06-05T11:12:30-07:00",
    "FromDispatchState" : "READY",
    "ToDispatchState" : "COMPLETE",
    "TransactionQuantity" : 4,
    "TransactionUnitOfMeasure" : "Each",
    "ComplSubinventoryCode" : null,
    "ReasonCode" : null,
    "TransactionNote" : null,
    "PONumber" : null,
    "POLineNumber" : null,
    "SoldToLegalEntityName" : null,
    "CompletionLocator" : null,
    "ErrorMessages" : "",
    "ErrorMessageNames" : "",
    ...
  } ]
}
Back to Top