POST api/{programid}/Employee/PayStubContent

Get pay stub as PDF attachment.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
programid

string

Required

Body Parameters

EmployeePayStubRequestParams
NameDescriptionTypeAdditional information
ProviderId

string

None.

PayStubNo

string

None.

CheckStubShowEmployer

boolean

None.

ShowConsumersOnCheck

boolean

None.

DisallowOvertimeOnCheckstub

boolean

None.

ShowPayPeriod

boolean

None.

ShowRate

boolean

None.

PayStubContent

Collection of byte

None.

Request Formats

application/json, text/json

Sample:
{
  "ProviderId": "sample string 1",
  "PayStubNo": "sample string 2",
  "CheckStubShowEmployer": true,
  "ShowConsumersOnCheck": true,
  "DisallowOvertimeOnCheckstub": true,
  "ShowPayPeriod": true,
  "ShowRate": true,
  "PayStubContent": "QEA="
}

application/xml, text/xml

Sample:
<EmployeePayStubRequestParams xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PPL.Services.Models.WebAPI_DTO.Employee">
  <CheckStubShowEmployer>true</CheckStubShowEmployer>
  <DisallowOvertimeOnCheckstub>true</DisallowOvertimeOnCheckstub>
  <PayStubContent>QEA=</PayStubContent>
  <PayStubNo>sample string 2</PayStubNo>
  <ProviderId>sample string 1</ProviderId>
  <ShowConsumersOnCheck>true</ShowConsumersOnCheck>
  <ShowPayPeriod>true</ShowPayPeriod>
  <ShowRate>true</ShowRate>
</EmployeePayStubRequestParams>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'EmployeePayStubRequestParams'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.