List Payment Methods
List the payment methods for your account. This endpoint supports pagination.
Request
- Base URLhttps://api.justifi.ai/v1
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Note: customer_id is a deprecated field. Please use our payment method groups instead. filter records which are associated with a customer.
filter records which are associated with a payment method group.
filter records which were created by a payment method import.
filter records which were created before the date and time (UTC) specified. Dates without time specified will default to 00:00:00
filter records which were created after the date and time (UTC) specified. Dates without time specified will default to 00:00:00
Headers
the access_token value returned from the JustiFi oauth/token endpoint (be sure to append Bearer before the token)
the id of the sub account that this request applies to
Response
Successfully list payment methods
Example response
{
"id": 1,
"type": "array",
"data": [
{
"id": "pm_123xyz",
"status": "valid",
"invalid_reason": "nil",
"payment_method_import_id": "pmi_123xyz",
"created_at": "2024-01-01T12:00:00Z",
"updated_at": "2024-01-01T12:00:00Z",
"card": {
"id": "pm_123xyz",
"brand": "Visa",
"digital_wallet": "apple_pay",
"name": "Amanda Kessel",
"token": "pm_123xyz",
"month": "5",
"year": "2042",
"metadata": {},
"address_line1_check": "unchecked",
"address_postal_code_check": "unchecked",
"bin_details": {
"type": "Credit",
"card_brand": "Visa",
"card_class": "Consumer",
"country": "United States of America",
"issuer": "WELLS FARGO BANK, N.A.",
"funding_source": "Credit"
}
},
"customer_id": "cust_xyz",
"signature": "4guAJNkVA3lRLVlanNVoBK",
"account_id": "acc_123"
}
],
"page_info": {
"end_cursor": "WyIyMDIyLTAyLTA4IDE5OjUyOjM3LjEwNDE3MzAwMCIsIjY4MDliYTU5LTYxYjctNDg3MS05YWFiLWE2Y2MyNmY3M2M1ZCJd",
"start_cursor": "WyIyMDIyLTAyLTA4IDIwOjAxOjU4LjEyMDIzMjAwMCIsIjU5ZTFjNGI1LWFlOWQtNDIyZC04MTVkLWNjNzQ5NzdlYmFjYSJd"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.