Previous Next JavaScript must be enabled to correctly display this content

## Create withholdings for a policy by policy Id

post

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

Creates withholding based on the specified policy Id

### Request

Path Parameters

- policyId(required): string(guid)
  Policy Id

Supported Media Types

- application/json

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 create a single or multiple withholdings based on the specified policy Id.

Example cURL Command

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

    curl -X POST \
         -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" \
    	 -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"
        }
      ]
    }

Example Response Body

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

    {
        "withholdings": [
            "A4B41B90-78FB-40A7-8754-33609294C4F6"
        ]
    }

Back to Top