Skip to main content

Payment audit logs

Every successful payment creates a PaymentLog record in Prudra’s database. Audit logs let you trace which API key was used for each payment, which endpoint was called, how much was paid, and which vault was created.
Dashboard support for viewing payment logs is coming soon. Use the API to query logs programmatically.

Log fields

The apiKeyId field

The apiKeyId field is particularly useful for multi-service deployments. If you issue separate API keys for different services, each payment log includes which key was used. This lets you:
  • Attribute revenue to specific services
  • Detect unexpected usage from an API key
  • Revoke a key if it shows unusual payment patterns
  • Audit which service triggered which vault creation

Query parameters