Fetch a Payment Instrument
Overview
Retrieve the details of a previously created Payment Instrument. The Payment Instrument resource represents tokenized payment details (credit card or bank account) associated with an Identity.
Resource Access
- User Permissions: All users can access this endpoint
- Endpoint:
GET /payment_instruments/\{payment_instrument_id}
Arguments
| Parameter | Type | Required | Description |
|---|---|---|---|
| payment_instrument_id | string | Yes | The unique ID of the Payment Instrument to retrieve |
Example Request
curl -X GET \
'https://api.ahrvo.network/payments/na/payment_instruments/PIpaymentCardExample123' \
-u username:password \
-H 'Content-Type: application/json'
Example Response (Payment Card)
{
"id": "PIpaymentCardExample123",
"created_at": "2023-06-15T10:30:00Z",
"updated_at": "2023-06-15T10:30:00Z",
"type": "PAYMENT_CARD",
"identity": "IDentityExample123",
"enabled": true,
"fingerprint": "FPR-123456789",
"currency": "USD",
"name": "John Doe",
"brand": "VISA",
"last_four": "1111",
"expiration_month": 12,
"expiration_year": 2025,
"account_updater_enabled": true,
"network_token_enabled": false,
"security_code_verification": "MATCHED",
"address_verification": "POSTAL_CODE_AND_STREET_MATCH",
"address": {
"line1": "123 Main Street",
"city": "San Francisco",
"region": "CA",
"postal_code": "94105",
"country": "USA"
},
"tags": {
"customer_type": "premium"
},
"_links": {
"self": {
"href": "https://api.ahrvo.network/payments/na/payment_instruments/PIpaymentCardExample123"
},
"identity": {
"href": "https://api.ahrvo.network/payments/na/identities/IDentityExample123"
},
"authorizations": {
"href": "https://api.ahrvo.network/payments/na/payment_instruments/PIpaymentCardExample123/authorizations"
},
"transfers": {
"href": "https://api.ahrvo.network/payments/na/payment_instruments/PIpaymentCardExample123/transfers"
}
}
}
Example Response (Bank Account)
{
"id": "PIbankAccountExample456",
"created_at": "2023-06-14T09:15:00Z",
"updated_at": "2023-06-14T09:15:00Z",
"type": "BANK_ACCOUNT",
"identity": "IDentityExample123",
"enabled": true,
"fingerprint": "FPR-987654321",
"currency": "USD",
"name": "Jane Smith",
"account_type": "CHECKING",
"bank_code": "021000021",
"masked_account_number": "XXXXX6789",
"bank_account_validation_check": "VALID",
"tags": {},
"_links": {
"self": {
"href": "https://api.ahrvo.network/payments/na/payment_instruments/PIbankAccountExample456"
},
"identity": {
"href": "https://api.ahrvo.network/payments/na/identities/IDentityExample123"
},
"transfers": {
"href": "https://api.ahrvo.network/payments/na/payment_instruments/PIbankAccountExample456/transfers"
}
}
}
Additional Information
- Payment Card Fields:
brand: Card network (VISA, MASTERCARD, AMERICAN_EXPRESS, DISCOVER, JCB, DINERS_CLUB)last_four: Last 4 digits of the card numberexpiration_month/expiration_year: Card expiration dateaccount_updater_enabled: Whether automatic card updates are enablednetwork_token_enabled: Whether network tokenization is enabledsecurity_code_verification: CVV verification result (MATCHED, UNMATCHED, UNKNOWN)address_verification: AVS verification result (MATCHED, NO_MATCH, PARTIAL_MATCH, etc.)
- Bank Account Fields:
account_type: CHECKING, SAVINGS, BUSINESS_CHECKING, PERSONAL_CHECKINGbank_code: Routing/ABA number (USA) or institution details (CAN)masked_account_number: Account number with most digits masked for securitybank_account_validation_check: VALID, INVALID, or NOT_ATTEMPTED
- Fingerprinting: The
fingerprintis a unique hash representing the card/account details, useful for detecting duplicate payment methods - Enabled Status: If
enabledis false, the Payment Instrument cannot be used for new transactions - Security: Full card numbers, CVV codes, and unmasked account numbers are never returned in API responses
- Related Resources: Use the
_linksobject to navigate to related authorizations and transfers - Account Updater: When enabled, card details are automatically updated through the card networks, and history is available via the instrument_history endpoint
- Network Tokens: When enabled, enhances security by replacing card details with network-specific tokens