Retrieve payslip details from HTTP webhook

Recipe ToolsDeveloper ToolMarketing

What it does

When someone sends an HTTP webhook request, this automation looks up the employee code in a lookup table. It decodes the PDF payslip and returns the data or an error response.

Who it's for

HR teams who need to retrieve employee payslip details via API without manual data entry.

How teams use this

Retrieve payslip details on demand

Someone calls the HTTP endpoint with an employee code and receives the decoded payslip PDF data in real-time. The lookup table ensures only valid employees are processed.

Integrate payslip retrieval into employee portal

Connect this automation to an employee self-service portal so staff can request their own payslips via API. The same lookup and decode flow handles all requests.

Add employee name validation before decode

Include an extra condition to check that the employee name matches the code before decoding the PDF. This adds a security layer to prevent mismatched payslip retrieval.

How it works

  1. Receive HTTP webhook request. An HTTP webhook arrives with a request to retrieve payslip details for an employee. The automation starts in real-time when the call is received.
  2. Search the Employee Code lookup table. Look up a single entry in the Employee Code lookup table to find the matching employee record and retrieve the associated data.
  3. Decode the PDF payslip. Execute Ruby code in Workato Custom Code to decode the PDF file so the payslip data can be processed and returned to the caller.
  4. Return the payslip response. Send the decoded payslip data back to the HTTP caller. If the employee code was not found, return an error response instead.