Sync Pega payment status via API

API toolWorkatoDeveloper ToolAPI IntegrationRecipe Tools

What it does

When someone makes an API request to this endpoint, this automation sends an HTTP request to Pega to check payment status. It publishes error notifications to the Error Handler Event topic when the response contains a 401 or 422 error.

Who it's for

Finance teams who need real-time payment status updates routed to error handling systems.

How teams use this

Monitor payment status in real time

Call the API endpoint to check whether a payment is in flight. The response arrives immediately with the current status from Pega.

Route authentication errors to ops

When a 401 error occurs, the automation publishes it to the Error Handler Event topic so the operations team is notified and can investigate credentials.

Add validation for payment amounts

Extend the flow to include a condition that checks the payment amount via HTTP request before sending to Pega. Only amounts within a set range proceed.

How it works

  1. Receive the API request. Define request and response parameters for the InFlightPaymentStatus endpoint. The API listens for incoming calls in real time.
  2. Send HTTP request to Pega. Send an HTTP request via Rest to retrieve the current payment status from Pega. Monitor the response for errors during transmission.
  3. Publish error to topic when needed. When the HTTP response contains a 401 or 422 error, publish a message to the Error Handler Event topic via Workato Pub Sub so the error is logged and routed.
  4. Return the response. Send the status or error response back to the caller. A 401 error returns immediately without retry.