ArgusDocs
English Türkçe

Request logs

On this page

Find an API request of your account and see what was sent, what came back and why it failed.

We log every /v1 request made on your account, from your integration and from the merchant panel. Open the Logs page in the Developers menu. Requests that could not be authenticated are not logged.

Find a request

You can search by:

Each entry shows the request and response bodies, the error, the Idempotency-Key, whether the response was replayed, the API version, the source IP address and any warnings. Card numbers, security codes, expiry dates, secrets, passwords and tokens are removed from the bodies. Names, street addresses and IBANs are masked.

Warnings

In the sandbox, the rules that refuse a request in live mode only add a warning to the entry. Examples are an unregistered website, return URL or IP address, and missing billing details or line items. Fix every warning before you go live.

The source IP address of an entry is the address the request came from. In a server-to-server integration, that is your server.

The customer's address that you send in client_details.ip is part of the request body. If it cannot be a customer's address on the internet, such as a private or loopback address, we ignore it. The entry then carries the warning client_ip_not_public.

Through the API

curl -G https://api.pf.organizer.tr/v1/request_logs \
  -H "Authorization: Bearer sk_sandbox_YOUR_KEY" \
  --data-urlencode "status=402" \
  --data-urlencode "path=/v1/payment_intents" \
  --data-urlencode "limit=20"

The filters are request_id, object_id, status (402, 4xx, failed or succeeded), method, path (the start of it), api_key, source and created[gte] and created[lte]. A secret key can read the logs. A restricted key needs the request_logs:read scope. Logs are kept for 30 days by default.

Events and webhook deliveries

The Events page in the Developers menu lists every event of your account with its content. For each event, it shows every delivery attempt to your endpoints: the HTTP status, the response time and an excerpt of your answer. Use Resend to deliver an event again. The Webhooks page in the Developers menu shows the status and success rate of each endpoint.

When something goes wrong

  1. Take the request_id from the error.
  2. Open the request on the Logs page and compare the body with what you meant to send.
  3. Read the warnings of the entry.
  4. If a webhook did not arrive, open the event on the Events page and read its delivery attempts.
  5. Contact support with the request_id.

In the API reference

Next: Work through Going live, and keep Errors and retries at hand.