API Logs

In this chapter, you will learn about API logs and how it is useful for developers.

The API Logs feature allows you to view errors that occur to your APIs along with complete list of logs. This helps you in having full visibility of the errors happening to your API which helps you in faster debugging and resolution of errors. Cashfree Payments receives a large number of API requests every day. Through API logs you can view all the API requests along with their success/failure rates, status codes and responses. This will be very useful for developers as they can view the logs in a consolidated place.

Advantages:

  • Error Tracking: View all errors that occur in your APIs along with a complete log history.
  • Error Identification: Pinpoint errors, exceptions, or issues with detailed logs.
  • Root Cause Analysis: Trace the sequence of events leading to an issue and fix it.
  • Independent Troubleshooting: Resolve issues without needing support team assistance.

You can directly view the API logs on the developer dashboard from Payment Gateway Dashboard > Developers > API Logs. Select a time range from the filter. Based on the time range all the APIs that had errors along with the error count will displayed along with reasons. for which your API's are failing. When you click on an API, the errors and logs will be displayed.

πŸ“˜

This feature only works from API version "2022-01-01" onwards

API Logs

API Logs

Watch this GIF to know how API Logs work

API Logs

API Logs

Expand the In the logs to view the request body, response header, response body, other information such as order_id, transaction_id, x-request-id etc for debugging the error.

View API Logs

View API Logs


Subscribe to Developer Updates