Get Payment Methods
Endpoint for getting all payment methods.
info
Please be aware that this endpoint requires a Wallet API Key.
GET /api/v1/groups/{group_id}/revere_pay/{linked_account_id}/wallet/payment-method
Request Query Parameters
Name | Description | Type | Required |
---|---|---|---|
action_type | The action type of the wallet payment methods. Possible values: add_funds , payout , wallet_to_wallet . | string | Required |
Response
Code | Description |
---|---|
200 | Success |
400 | Bad Request / Validation error |
500 | Internal Error |
Example Usage
- JavaScript
- Python
- Go
walletPaymentMethods.js
var headers = new Headers();
headers.append('Authorization', 'API_KEY');
var requestOptions = {
method: 'GET',
headers: headers,
redirect: 'follow'
};
const group_id = '';
const linked_account_id = '';
const url = `https://api.reverepayments.dev/api/v1/groups/${group_id}/revere_pay/${linked_account_id}/wallet/payment-method`;
fetch(url, requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.log('error', error));
walletPaymentMethods.py
import requests
group_id = ""
linked_account_id = ""
url = "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/revere_pay/" + linked_account_id + "/wallet/payment-method"
headers = {
'Authorization': 'API_KEY'
}
response = requests.request("GET", url, headers=headers)
print(response.text)
walletPaymentMethods.go
package main
import (
"bytes"
"encoding/json"
"fmt"
"io"
"net/http"
)
func main() {
const group_id = ""
const linked_account_id = ""
url := "https://api.reverepayments.dev/api/v1/groups/" + group_id + "/revere_pay/" +linked_account_id + "/wallet/payment-method"
client := &http.Client{}
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "API_KEY")
res, _ := client.Do(req)
defer res.Body.Close()
bytes, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err.Error())
return
}
fmt.Println(string(bytes))
}
Example Success Response
{
"data": [
{
"payment_method_id": "f44ea161-7c20-4d13-acfe-28eecc56a9df",
"payment_method_type": "payout_ach_same_day",
"ach": {
"bank_name": "Chase Bank",
"holder_name": "Jane Doe",
"routing_number": "123456789",
"last_four_account_number": "1234"
}
},
{
"payment_method_id": "fa611521-514c-4ff2-9203-2d30700c425b",
"payment_method_type": "payout_ach_same_day",
"ach": {
"bank_name": "Chase Bank",
"holder_name": "Jane Doe",
"routing_number": "123456789",
"last_four_account_number": "1234"
}
},
{
"payment_method_id": "9065b054-276a-42fb-9730-93bd6e7c0ba1",
"payment_method_type": "payout_ach_same_day",
"ach": {
"bank_name": "Chase Bank",
"holder_name": "Jane Doe",
"routing_number": "123456789",
"last_four_account_number": "1234"
}
}
]
}