cURL
curl --request GET \
--url 'https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pushcash.com/user/{id}/credential/list"
params = {"type": ["secure_debit", "apple_pay_debit"]}
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers, params=params)
print(response.json())
const params = new URLSearchParams();
params.append('type', 'secure_debit');
params.append('type', 'apple_pay_debit');
const response = await fetch(
`https://api.pushcash.com/user/{id}/credential/list?${params}`,
{ headers: { Authorization: 'Bearer <token>' } }
);
const data = await response.json();
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer <token>"],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
{
"data": [
{
"id": "cred_7YlA9IiSl8UZvNwNSbFajV",
"created_at": "2023-05-24T20:15:18.158Z",
"card_last4": "4444",
"authenticated": true,
"type": "secure_debit",
"account_last4": "0685",
"bank_name": "Chase Bank"
},
{
"id": "cred_8ZlB0JjTm9VZaOxOTcGbkW",
"created_at": "2023-05-25T10:20:30.123Z",
"card_last4": "1234",
"authenticated": true,
"type": "card_only_credit",
"account_last4": null,
"bank_name": null
},
{
"id": "cred_9AmC1KkUn0WabPyPUdHclX",
"created_at": "2023-05-26T14:35:45.456Z",
"card_last4": "5678",
"authenticated": true,
"type": "card_only_debit",
"account_last4": null,
"bank_name": null
},
{
"id": "cred_0BnD2LlVo1XbcQzQVeIdmY",
"created_at": "2023-05-27T09:45:12.789Z",
"card_last4": "9010",
"authenticated": true,
"type": "apple_pay_debit",
"account_last4": null,
"bank_name": null
}
]
}{}user
List user credentials
Retrieves the user’s stored credentials matching the requested type values.
Requests that do not supply any type values return an empty list.
GET
/
user
/
{id}
/
credential
/
list
cURL
curl --request GET \
--url 'https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit' \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.pushcash.com/user/{id}/credential/list"
params = {"type": ["secure_debit", "apple_pay_debit"]}
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers, params=params)
print(response.json())
const params = new URLSearchParams();
params.append('type', 'secure_debit');
params.append('type', 'apple_pay_debit');
const response = await fetch(
`https://api.pushcash.com/user/{id}/credential/list?${params}`,
{ headers: { Authorization: 'Bearer <token>' } }
);
const data = await response.json();
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["Authorization: Bearer <token>"],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpResponse<String> response = Unirest.get("https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'
url = URI("https://api.pushcash.com/user/{id}/credential/list?type=secure_debit&type=apple_pay_debit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
{
"data": [
{
"id": "cred_7YlA9IiSl8UZvNwNSbFajV",
"created_at": "2023-05-24T20:15:18.158Z",
"card_last4": "4444",
"authenticated": true,
"type": "secure_debit",
"account_last4": "0685",
"bank_name": "Chase Bank"
},
{
"id": "cred_8ZlB0JjTm9VZaOxOTcGbkW",
"created_at": "2023-05-25T10:20:30.123Z",
"card_last4": "1234",
"authenticated": true,
"type": "card_only_credit",
"account_last4": null,
"bank_name": null
},
{
"id": "cred_9AmC1KkUn0WabPyPUdHclX",
"created_at": "2023-05-26T14:35:45.456Z",
"card_last4": "5678",
"authenticated": true,
"type": "card_only_debit",
"account_last4": null,
"bank_name": null
},
{
"id": "cred_0BnD2LlVo1XbcQzQVeIdmY",
"created_at": "2023-05-27T09:45:12.789Z",
"card_last4": "9010",
"authenticated": true,
"type": "apple_pay_debit",
"account_last4": null,
"bank_name": null
}
]
}{}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The push identifier for the user
Example:
"user_28CJjV7P4Go5PNJvfzghiD"
Query Parameters
The credential types to return. Repeat the parameter to pass multiple values
(e.g. ?type=secure_debit&type=apple_pay_debit). Requests that do not supply
any type values return an empty list.
To display credentials eligible for deposits, pass secure_debit,
card_only_credit, and card_only_debit. To display credentials eligible
for withdrawals, pass secure_debit and apple_pay_debit.
Available options:
secure_debit, card_only_credit, card_only_debit, apple_pay_debit Response
successful operation
Show child attributes
Show child attributes
⌘I