How to Query for Sync Failures via the ConnectAll API
search cancel

How to Query for Sync Failures via the ConnectAll API

book

Article ID: 440465

calendar_today

Updated On:

Products

ConnectAll On-Prem ConnectALL

Issue/Introduction

You receive thousands of daily alerts, primarily synchronization failures, and need a programmatic way to query relevant sync failure records to improve your alerting strategy.

Resolution

You use the ConnectAll API to retrieve failure records by following these steps:

  1. Endpoint: You call the ####/ConnectAll/api/private/v2/records endpoint.
  2. Headers: You ensure that both the Accept and Content-Type headers are set to application/json. Failure to set these headers may result in an HTTP 500 error.
  3. Parameters: You set the following query parameters to filter for failures and sort them by date:
    • filter=status eq 'Failure'
    • fetch=full
    • sort=transactionDate DESC
  4. Pagination: You control the volume of results returned in a single call by using the pageSize and offset parameters. You handle pagination by incrementing the offset value for subsequent requests.