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
Root Schema : schema
Type:
stringResponse
201 Response
successful operation
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"
]
}