Update withholding for a policy by policy Id and withholding Id

put

/PASService/rest/services/v1/policies/{policyId}/withholdings/{withholdingId}

Updates withholding based on the specified policy Id and withholding Id

Request

Path Parameters
Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: string
Back to Top

Response

201 Response

successful operation
Back to Top

Examples

This example describes how to update a withholding for a policy based on the specified policy Id and withholding Id.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl -X PUT \ 
     -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
     -L "http://server:port/PASService/rest/services/policies/5F53C523-F201-4CEF-A376-DBA24BC7DC1A/withholdings/E721D943-8DA7-4FC1-86B1-9D219A8896B9" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

The following shows an example of the request body in JSON format:

{
  "withholdings":
    {
        "RadioTest": {
          "textValue": "01",
          "optionText": "Yes"
        },
        "ComboField": {
          "textValue": "01",
          "optionText": "Savings"
        },
        "TaxIDSource": {
          "textValue": "01",
          "optionText": "Application"
        },
        "FederalPercent": "10",
        "FederalAmount":{
            "Value": "1000",
        "currency":"USD"
            },
        "StateAmount": {
            "Value": "1000",
        "currency":"USD"
            },
        "StatePercent": "10"
    }
}
Back to Top