Create serials
/fscmRestApi/resources/11.13.18.05/pickTransactions/{TransactionHeaderId}/child/pickLines/{pickLinesUniqID}/child/serialItemSerials
Request
-
TransactionHeaderId(required): integer
Value that uniquely identifies the inventory transaction header.
-
pickLinesUniqID(required): string
This is the hash key of the attributes which make up the composite key for the Pick Lines resource and used to uniquely identify an instance of Pick Lines. The client should not generate the hash key value. Instead, the client should query on the Pick Lines collection resource in order to navigate to a specific instance of Pick Lines to get the hash key.
-
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.
- application/json
object
-
FromSerialNumber: string
Maximum Length:
80
Number that identifies the starting serial in a range of serial numbers for the item. Applies when the warehouse places the item under serial control. -
ToSerialNumber: string
Maximum Length:
80
Number that identifies the ending serial in a range of serial numbers for the item. Applies when the warehouse places the item under serial control.
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
-
FromSerialNumber: string
Maximum Length:
80
Number that identifies the starting serial in a range of serial numbers for the item. Applies when the warehouse places the item under serial control. -
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
ToSerialNumber: string
Maximum Length:
80
Number that identifies the ending serial in a range of serial numbers for the item. Applies when the warehouse places the item under serial control.
array
Links
object
-
href: string
Title:
hyperlink reference
The URI to the related resource. -
kind: string
Title:
kind
Allowed Values:[ "collection", "item", "describe", "other" ]
The kind of the related resource. -
name: string
Title:
name
The name of the link to the related resource. -
properties: object
properties
-
rel: string
Title:
relation
Allowed 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.
Examples
This example describes how to create one lot that shares control of the item for one pick line in one pick 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.action+json" -d 'request payload' "https://servername/fscmRestApi/resources/version/pickTransactions"
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.
{ "pickLines" : [ { "PickSlip" : 1129158 , "PickSlipLine" : 4 , "PickedQuantity" : 1 , "serialItemSerials" : [{ "FromSerialNumber" : "D-S067" , "ToSerialNumber" : "D-S067" }] } ] }
Example Response Body
The following example includes the contents of the response body in JSON format:
{ "TransactionHeaderId" : 22253430, "ReturnStatus" : "Success", "ErrorCode" : null, "ErrorExplanation" : null, "PickSlip" : null, "PickSlipLine" : null, "pickLines" : [ { "Locator" : null, "PickSlipLine" : 1, "PickSlip" : 1129158, "PickedQuantity" : 1, "SecondaryPickedQuantity" : null, "SubinventoryCode" : "FGI", "TransactionDate" : null, "links" : [ { "rel" : "self", "href" : "https://servername/logisticsApi/resources/version/pickTransactions/22253430/child/pickLines/22253431", "name" : "pickLines", "kind" : "item" }, { "rel" : "canonical", "href" : "https://servername/logisticsApi/resources/version/pickTransactions/22253430/child/pickLines/22253431", "name" : "pickLines", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/logisticsApi/resources/version/pickTransactions/22253430", "name" : "pickTransactions", "kind" : "item" }, { "rel" : "child", "href" : "https://servername/logisticsApi/resources/version/pickTransactions/22253430/child/pickLines/22253431/child/serialItemSerials", "name" : "serialItemSerials", "kind" : "collection" } ] } ], "links" : [ { "rel" : "self", "href" : "https://servername/logisticsApi/resources/version/pickTransactions/22253430", "name" : "pickTransactions", "kind" : "item" }, { "rel" : "canonical", "href" : "https://servername/logisticsApi/resources/version/pickTransactions/22253430", "name" : "pickTransactions", "kind" : "item" } ] }