Payments

Get Payment Intent

Retrieve details and status of a specific payment intent

Retrieve the details and status of a specific payment intent.

Endpoint

GET /api/intents/{intent_id}

Authentication: Required (API Key or Intent Token)

Parameters

Path Parameters

ParameterTypeRequiredDescription
intent_idUUIDYesThe payment intent ID

Query Parameters

ParameterTypeRequiredDescription
iauthstringNoIntent token (alternative to API key)

Example Request

curl -X GET "https://app.infinic.com/api/intents/550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Success (200 OK)

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "reference_id": "order_12345",
  "purchaser_id": "customer_abc",
  "amount": 10000,
  "amount_v2": {
    "minor": 10000,
    "currency": "ZAR",
    "major": "100.00"
  },
  "currency": "ZAR",
  "mode": "test",
  "status": "success",
  "created": "2024-01-15T10:00:00Z",
  "is_interactive": true,
  "allow_remember_credentials": true,
  "request_unscheduled_mit": false,
  "require_unscheduled_mit": false,
  "attempt_count": 1,
  "last_method": "card",
  "last_brand": "visa",
  "card_bin": "424242",
  "card_last4": "4242",
  "methods": [],
  "credentials": [],
  "merchant": {},
  "return_url": "https://yoursite.com/callback"
}

Use Cases

  1. Track Payment Status - Check if payment is pending, completed, or failed
  2. Retrieve Transaction Details - Get amount, currency, payment method used
  3. View Available Payment Options - See what payment methods are available
  4. Access Stored Credentials - Retrieve tokens for saved payment methods