CARDS
Get Card
Fetch a single card's summary; masked PAN, balance, and status.
GET /v1/cards/:tracking_id
Use this endpoint to
- Check a card's current status (e.g., confirm it's reached
active) - Display a card's masked PAN and balance to a customer
- Poll a card after issuance instead of waiting for the webhook
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tracking_id |
string | Yes | Card id from Issue Card |
Code Samples
const response = await fetch( "https://sandbox.hitchpay.ng/v1/cards/EXTCARD123456", { headers: { Authorization: "Bearer YOUR_ACCESS_TOKEN" } } );
const data = await response.json(); console.log(data);<?php
$ch = curl_init();
curl_setopt_array($ch, [
CURLOPT_URL => "https://sandbox.hitchpay.ng/v1/cards/EXTCARD123456",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer YOUR_ACCESS_TOKEN"
]
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;import requests
url = "https://sandbox.hitchpay.ng/v1/cards/EXTCARD123456"
headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"}
response = requests.get(url, headers=headers)
print(response.json())Response
{
"status": "success",
"message": "Card retrieved successfully.",
"data": {
"tracking_id": "EXTCARD…",
"customer_uuid": "…",
"card_id": "…",
"label": "John Doe USD Card",
"brand": "visa",
"card_type": "virtual",
"currency": "USD",
"masked_pan": "539983******1234",
"last4": "1234",
"exp_month": "08",
"exp_year": "2029",
"cardholder_name": "JOHN DOE",
"balance": 25.00,
"status": "active",
"date_created": "1782947655"
}
}Fields
See the card object shape in the Overview page.
Errors
| Code | Meaning |
|---|---|
UNAUTHORIZED |
Business not found or inactive |
NOT_FOUND |
Card not found |
Questions? Email [email protected]. Also on GitBook.