Payment Methods API
The Payment Methods API returns available payment methods for a given country, currency, and entity type combination. Use this to determine which transfer methods are available before collecting bank account details.
Endpoints
- List Payment Methods -
GET /api/v1/payment_methods
List Payment Methods
Retrieve available payment methods for a specific country, currency, and entity type. This endpoint does not require a company context.
Endpoint
Headers
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
country_code |
string | Yes | ISO 3166-1 alpha-2 country code (e.g., US, GB) |
currency_code |
string | Yes | ISO 4217 currency code (e.g., USD, EUR) |
entity_type |
string | Yes | Entity type: COMPANY or PERSONAL |
Case Insensitive
All query parameters are case-insensitive. For example, us and US are treated the same.
Example Request
curl -X GET "https://api.treasurypath.com/api/v1/payment_methods?country_code=US¤cy_code=USD&entity_type=COMPANY" \
-H "Authorization: Bearer {jwt_token}" \
-H "Content-Type: application/json"
Success Response (200 OK)
{
"data": [
{
"transfer_method": "LOCAL",
"local_clearing_systems": ["ACH", "FEDWIRE"]
},
{
"transfer_method": "SWIFT",
"local_clearing_systems": []
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
transfer_method |
string | Transfer method identifier (e.g., LOCAL, SWIFT) |
local_clearing_systems |
array | Available local clearing systems for this method (e.g., ACH, FEDWIRE) |
Error Responses
400 Bad Request - Missing Parameter
401 Unauthorized
Usage
Use this endpoint as the first step when building a bank account form:
- List payment methods to show available transfer options to the user
- Fetch bank account requirements using the selected transfer method to get form fields
- Create bank account with the collected form data
Related Resources
- Bank Account Requirements API - Get form fields for a transfer method
- Recipients API - Create bank accounts for recipients
- Payment Methods Data Model - Understanding payment methods