Payment Methods
Get a Payment Method
Get information about a payment method.
Note: This is the primary endpoint recommended for retrieving bin_details related to a card payment method. bin_details are not guaranteed to be present on every card — availability depends on the card network and issuer. When unavailable, the bin_details field will be null.
get/payment_methods/{token}
Request
- Base URLhttps://api.justifi.ai/v1
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tokenstring required
Headers
Authorizationstring required
the access_token value returned from the JustiFi oauth/token endpoint (be sure to append Bearer before the token)
Response
Successfully get a payment method
Example response
{
"type": "payment_method",
"data": {
"id": "pm_123xyz",
"signature": "3aGWnUznQ",
"customer_id": "cust_123abc",
"account_id": "acc_123",
"status": "valid",
"invalid_reason": "INVALID_ACCOUNT_NUMBER",
"payment_method_import_id": "pmi_123xyz",
"created_at": "2024-01-01T12:00:00Z",
"updated_at": "2024-01-01T12:00:00Z",
"card": {
"id": "pm_123xyz",
"name": "Lindsay Whalen",
"brand": "visa",
"digital_wallet": "apple_pay",
"token": "pm_123xyz",
"month": "5",
"year": "2042",
"metadata": {
"new": "info"
},
"address_line1_check": "pass",
"address_postal_code_check": "pass",
"bin_details": {
"type": "Credit",
"card_brand": "Visa",
"card_class": "Consumer",
"country": "United States of America",
"issuer": "WELLS FARGO BANK, N.A.",
"funding_source": "Credit"
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.