Create pick exceptions
/fscmRestApi/resources/11.13.18.05/pickTransactions/{TransactionHeaderId}/child/pickLines/{pickLinesUniqID}/child/pickExceptions
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
-
Reason: string
Maximum Length:
30
Explanation for the pick exception. -
ReasonId: integer
(int64)
Value that uniquely identifies the reason for the pick exception.
Response
- application/json
Default Response
-
Metadata-Context(required):
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(required):
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
-
links: array
Links
Title:
Links
The link relations associated with the resource instance. -
Reason: string
Maximum Length:
30
Explanation for the pick exception. -
ReasonId: integer
(int64)
Value that uniquely identifies the reason for the pick exception.
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 pick exceptions.
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/pickTransactions/TransactionHeaderId/child/pickLines/pickLinesUniqID/child/pickExceptions"
Example 1 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 to change subinventory and give a reason.
{ "pickLines" : [{ "PickSlip" : 1273156, "PickSlipLine" : 1, "PickedQuantity" : 2, "SubinventoryCode" : "FGI", "pickExceptions" : [{ "Reason" : "ZINV_TXNREASON0001" }] }] }
Example 1 Response Body
The following example includes the contents of the response body in JSON format:
{ "TransactionHeaderId" : 22386748, "ReturnStatus" : "Success", "ErrorCode" : null, "ErrorExplanation" : null, "PickSlip" : null, "PickSlipLine" : null, "pickLines" : [ { "Locator" : null, "PickSlipLine" : 1, "PickSlip" : 1273155, "PickedQuantity" : 2, "SecondaryPickedQuantity" : null, "SubinventoryCode" : "FGI", "TransactionDate" : null, "LicensePlateNumber" : null, "pickExceptions" : [ { "ReasonId" : null, "Reason" : "ZINV_TXNREASON0001", "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749/child/pickExceptions/300100131425488", "name" : "pickExceptions", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749/child/pickExceptions/300100131425488", "name" : "pickExceptions", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749", "name" : "pickLines", "kind" : "item" } ] } ], "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749", "name" : "pickLines", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749", "name" : "pickLines", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748", "name" : "pickTransactions", "kind" : "item" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749/child/serialItemSerials", "name" : "serialItemSerials", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749/child/lotItemLots", "name" : "lotItemLots", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749/child/dffs", "name" : "dffs", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749/child/lotSerialItemLots", "name" : "lotSerialItemLots", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines/22386749/child/pickExceptions", "name" : "pickExceptions", "kind" : "collection" } ] } ], "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748", "name" : "pickTransactions", "kind" : "item" }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748", "name" : "pickTransactions", "kind" : "item" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22386748/child/pickLines", "name" : "pickLines", "kind" : "collection" } ] }
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 to change subinventory, quantity, and lot and give three reasons (one for each change).
{ "pickLines" : [ { "PickSlip" : 1277173, "PickSlipLine" : 1, "PickedQuantity" : 1, "SubinventoryCode" : "Stores", "lotSerialItemLots" : [{ "Lot" : "S97005", "Quantity" : 1, "lotSerialItemSerials" : [{ "FromSerialNumber" : "SS0025", "ToSerialNumber" : "SS0025" }] }] , "pickExceptions" : [ {"Reason" : "Change lot"}, {"ReasonId" : 300100113977256}, {"ReasonId": 100000012016085} ] }] }
Example 2 Response Body
The following example includes the contents of the response body in JSON format:
{ "TransactionHeaderId" : 22395706, "ReturnStatus" : "Success", "ErrorCode" : null, "ErrorExplanation" : null, "PickSlip" : null, "PickSlipLine" : null, "pickLines" : [ { "Locator" : null, "PickSlipLine" : 1, "PickSlip" : 1277173, "PickedQuantity" : 1, "SecondaryPickedQuantity" : null, "SubinventoryCode" : "Stores", "TransactionDate" : null, "LicensePlateNumber" : null, "lotSerialItemLots" : [ { "Lot" : "S97005", "Quantity" : 1, "SecondaryQuantity" : null, "lotSerialItemSerials" : [ { "FromSerialNumber" : "SS0025", "ToSerialNumber" : "SS0025", "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/lotSerialItemLots/00020000000EACED00057708000000000155BB3B00000006533937303035/child/lotSerialItemSerials/00020000000EACED00057708000000000155BB3C00000006535330303235", "name" : "lotSerialItemSerials", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/lotSerialItemLots/00020000000EACED00057708000000000155BB3B00000006533937303035/child/lotSerialItemSerials/00020000000EACED00057708000000000155BB3C00000006535330303235", "name" : "lotSerialItemSerials", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/lotSerialItemLots/00020000000EACED00057708000000000155BB3B00000006533937303035", "name" : "lotSerialItemLots", "kind" : "item" } ] } ], "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/lotSerialItemLots/00020000000EACED00057708000000000155BB3B00000006533937303035", "name" : "lotSerialItemLots", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/lotSerialItemLots/00020000000EACED00057708000000000155BB3B00000006533937303035", "name" : "lotSerialItemLots", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707", "name" : "pickLines", "kind" : "item" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/lotSerialItemLots/00020000000EACED00057708000000000155BB3B00000006533937303035/child/lotSerialItemSerials", "name" : "lotSerialItemSerials", "kind" : "collection" } ] } ], "pickExceptions" : [ { "ReasonId" : null, "Reason" : "Change lot", "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/pickExceptions/300100132022505", "name" : "pickExceptions", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/pickExceptions/300100132022505", "name" : "pickExceptions", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707", "name" : "pickLines", "kind" : "item" } ] }, { "ReasonId" : 300100113977256, "Reason" : null, "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/pickExceptions/300100132022506", "name" : "pickExceptions", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/pickExceptions/300100132022506", "name" : "pickExceptions", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707", "name" : "pickLines", "kind" : "item" } ] }, { "ReasonId" : 100000012016085, "Reason" : null, "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/pickExceptions/300100132022507", "name" : "pickExceptions", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/pickExceptions/300100132022507", "name" : "pickExceptions", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707", "name" : "pickLines", "kind" : "item" } ] } ], "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707", "name" : "pickLines", "kind" : "item", "properties" : { "changeIndicator" : "ACED0005737200136A6176612E7574696C2E41727261794C6973747881D21D99C7619D03000149000473697A65787000000001770400000001737200116A6176612E6C616E672E496E746567657212E2A0A4F781873802000149000576616C7565787200106A6176612E6C616E672E4E756D62657286AC951D0B94E08B02000078700000000178" } }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707", "name" : "pickLines", "kind" : "item" }, { "rel" : "parent", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706", "name" : "pickTransactions", "kind" : "item" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/serialItemSerials", "name" : "serialItemSerials", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/lotItemLots", "name" : "lotItemLots", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/dffs", "name" : "dffs", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/lotSerialItemLots", "name" : "lotSerialItemLots", "kind" : "collection" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines/22395707/child/pickExceptions", "name" : "pickExceptions", "kind" : "collection" } ] } ], "links" : [ { "rel" : "self", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706", "name" : "pickTransactions", "kind" : "item" }, { "rel" : "canonical", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706", "name" : "pickTransactions", "kind" : "item" }, { "rel" : "child", "href" : "https://servername/fscmRestApi/resources/version/pickTransactions/22395706/child/pickLines", "name" : "pickLines", "kind" : "collection" } ] }