Create validation

post

/fscmRestApi/resources/11.13.18.05/validatePickedQuantities

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
  • Abbreviation that identifies the message that describes the error that occurred when validating the quantity. If the Return Status attribute contains a value of SUCCESS, then the Error Code attribute is empty.
  • Message that describes the error that occurred when validating the quantity. If the Return Status attribute contains a value of SUCCESS, then the Error Explanation attribute is empty.
  • Picked quantity to confirm in the primary unit of measure that the item uses.
  • Value that uniquely identifies the pick slip.
  • Value that uniquely identifies one line on the pick slip.
  • Status returned by the application when validating the quantity. Valid values are SUCCESS, ERROR, and WARNING. SUCCESS: the application successfully validated the quantity for the transaction. ERROR: this validation failed. WARNING: the validation found a potential problem, but allows the transaction to continue.
  • Picked quantity to confirm in the secondary unit of measure that the item uses.
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 : validatePickedQuantities-item-response
Type: object
Show Source
  • Abbreviation that identifies the message that describes the error that occurred when validating the quantity. If the Return Status attribute contains a value of SUCCESS, then the Error Code attribute is empty.
  • Message that describes the error that occurred when validating the quantity. If the Return Status attribute contains a value of SUCCESS, then the Error Explanation attribute is empty.
  • Links
  • Picked quantity to confirm in the primary unit of measure that the item uses.
  • Value that uniquely identifies the pick slip.
  • Value that uniquely identifies one line on the pick slip.
  • Status returned by the application when validating the quantity. Valid values are SUCCESS, ERROR, and WARNING. SUCCESS: the application successfully validated the quantity for the transaction. ERROR: this validation failed. WARNING: the validation found a potential problem, but allows the transaction to continue.
  • Picked quantity to confirm in the secondary unit of measure that the item uses.
Back to Top

Examples

This example describes how to validate all picked quantities.

Example cURL Command

Use the following cURL command to submit a request on the REST resource. This example picks validates picked quantities for pick slip 1114157, on pick slip line 1, for a picked quantity of 6:

curl -u username:password –X POST -H "Content-Type:application/vnd.oracle.adf.resourceitem+json" -d 'request payload'  "servername/fscmRestApi/resources/version/validatePickedQuantities"

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.

{  
  "PickSlip" : 1114157
, "PickSlipLine" : 1
, "PickedQuantity" : 6
 }

Example Response Body

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

{
  "PickSlip" : 1114157,
  "PickSlipLine" : 1,
  "PickedQuantity" : 6,
  "SecondaryPickedQuantity" : 1,
  "ReturnStatus" : "Error",
  "ErrorCode" : "INV_DEVIATION_ERROR",
  "ErrorExplanation" : "The quantity 1 must be less than or equal to the allowed deviation .51."
}
Back to Top