Skip to main content

Overview

The Fetch Payment endpoint allows you to retrieve detailed information about a specific payment using its unique identifier. This is useful for checking payment status, verifying transaction details, or retrieving customer information associated with the payment.

Endpoint

Authentication

All requests must include your API key in the Authorization header:

Path Parameters

string
required
The unique identifier of the payment to retrieve.
  • Format: UUID v4
  • Example: 2315fca8-9aec-42ee-8bee-a9d10add170e

Response Structure

object
The payment details object

Examples

Response Examples

Error Handling

Best Practices

  1. Implement proper error handling for all status codes
  2. Use exponential backoff for retries
  3. Log errors with payment IDs for debugging
  4. Handle network timeouts appropriately
  1. Never log complete payment details
  2. Keep API keys secure
  3. Use HTTPS for all API calls
  4. Validate payment IDs before making requests
  1. Cache payment details when appropriate
  2. Implement request timeouts
  3. Monitor API response times
  4. Use connection pooling for multiple requests

Rate Limits

This endpoint is subject to rate limiting:
  • 100 requests per minute per API key
  • Rate limit info included in response headers:
    • X-RateLimit-Limit
    • X-RateLimit-Remaining
    • X-RateLimit-Reset

Need Help?

For additional assistance: