AvraAPI returns a predictable JSON envelope. Handle the outer success value first, then process data or error.
Success envelope
Error envelope
Common HTTP categories
Idempotency and retries
For an operation that can create a charge, checkout, purchase, or other upstream side effect, use the documented idempotency mechanism when available. Reuse the same idempotency key only for the same intended operation.
Never retry by generating a new order reference or changing a payment amount. For UPG checkout, retry at the backend only after deciding whether the previous create request could have reached the provider.
Request IDs
Persist the returned request_id in your own server-side log with your internal order or operation reference. Do not store customer secrets or provider callback bodies in that log. Last modified on October 1, 2026