Get card-funding deposit address
curl --request GET \
--url https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address"
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://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address")
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": {
"applicant_id": "app_abc123",
"mode": "byo_wallet",
"address": "0xDepositReceiveAddress",
"currency": "USDC",
"chain": "BASE",
"instructions": "Send from your configured external wallet to this address, then call fund-from-wallet on the card.",
"byo_wallet": {
"address": "0xUserWalletAddress",
"chain": "BASE",
"currency": "USDC",
"provider": "metamask"
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "Applicant must be approved"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Not found"
}
}Card funding (wallet & BYO)
Get card-funding deposit address
Returns the address to receive stablecoins for this applicant. In wallet_service mode, Apocor provides the deposit wallet. In byo_wallet mode, the user sends FROM their configured external wallet TO this same receive address. Pass program_id to apply that program’s funding mode.
GET
/
v1
/
applicants
/
{id}
/
funding
/
deposit-address
Get card-funding deposit address
curl --request GET \
--url https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address \
--header 'Authorization: Bearer <token>'import requests
url = "https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address"
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://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.apocor.ai/v1/applicants/{id}/funding/deposit-address")
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": {
"applicant_id": "app_abc123",
"mode": "byo_wallet",
"address": "0xDepositReceiveAddress",
"currency": "USDC",
"chain": "BASE",
"instructions": "Send from your configured external wallet to this address, then call fund-from-wallet on the card.",
"byo_wallet": {
"address": "0xUserWalletAddress",
"chain": "BASE",
"currency": "USDC",
"provider": "metamask"
}
}
}{
"error": {
"code": "INVALID_REQUEST",
"message": "Applicant must be approved"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Not found"
}
}Authorizations
Bearer access token obtained from POST /v1/oauth/token using your Apocor API key.
Path Parameters
Resource identifier.
Query Parameters
Program whose funding mode / preferred chain-currency apply.
Example:
"BASE"
Example:
"USDC"
Response
Deposit address and mode.
Show child attributes
Show child attributes