Fund Card
curl --request POST \
--url https://api.fyatu.com/api/v3/cards/{cardId}/fund \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 50,
"reference": "my-order-12345"
}
'import requests
url = "https://api.fyatu.com/api/v3/cards/{cardId}/fund"
payload = {
"amount": 50,
"reference": "my-order-12345"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 50, reference: 'my-order-12345'})
};
fetch('https://api.fyatu.com/api/v3/cards/{cardId}/fund', 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://api.fyatu.com/api/v3/cards/{cardId}/fund",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 50,
'reference' => 'my-order-12345'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fyatu.com/api/v3/cards/{cardId}/fund"
payload := strings.NewReader("{\n \"amount\": 50,\n \"reference\": \"my-order-12345\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fyatu.com/api/v3/cards/{cardId}/fund")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 50,\n \"reference\": \"my-order-12345\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/cards/{cardId}/fund")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 50,\n \"reference\": \"my-order-12345\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": 200,
"message": "Card funded successfully",
"data": {
"cardId": "crd_8f3a2b1c4d5e6f7890abcdef12345678",
"amountFunded": 50,
"fee": 0.5,
"reference": "my-order-12345"
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-01-17T10:00:00+00:00"
}
}Cards
Fund Card
Add funds to an existing virtual card. Minimum $5, fee applies per pricing. POST /cards//fund.
POST
/
cards
/
{cardId}
/
fund
Fund Card
curl --request POST \
--url https://api.fyatu.com/api/v3/cards/{cardId}/fund \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"amount": 50,
"reference": "my-order-12345"
}
'import requests
url = "https://api.fyatu.com/api/v3/cards/{cardId}/fund"
payload = {
"amount": 50,
"reference": "my-order-12345"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({amount: 50, reference: 'my-order-12345'})
};
fetch('https://api.fyatu.com/api/v3/cards/{cardId}/fund', 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://api.fyatu.com/api/v3/cards/{cardId}/fund",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'amount' => 50,
'reference' => 'my-order-12345'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.fyatu.com/api/v3/cards/{cardId}/fund"
payload := strings.NewReader("{\n \"amount\": 50,\n \"reference\": \"my-order-12345\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.fyatu.com/api/v3/cards/{cardId}/fund")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"amount\": 50,\n \"reference\": \"my-order-12345\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fyatu.com/api/v3/cards/{cardId}/fund")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount\": 50,\n \"reference\": \"my-order-12345\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"status": 200,
"message": "Card funded successfully",
"data": {
"cardId": "crd_8f3a2b1c4d5e6f7890abcdef12345678",
"amountFunded": 50,
"fee": 0.5,
"reference": "my-order-12345"
},
"meta": {
"requestId": "req_a1b2c3d4e5f6",
"timestamp": "2026-01-17T10:00:00+00:00"
}
}Overview
Add funds to a card from your business wallet. A funding fee may apply based on your pricing configuration.Funding is asynchronous. A successful (
2xx) response means the request was accepted and is pending confirmation from the card provider — it does not mean the card has been funded, and the provider may still reject it. Do not treat the response as final. Use the card.funded (confirmed — balance added) and card.funding_failed (rejected — no balance added) webhooks as the source of truth. Supply a unique reference to reconcile the webhook with your request.Path Parameters
| Parameter | Type | Description |
|---|---|---|
cardId | string | The unique card identifier |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Amount to fund in USD (must be greater than 0) |
reference | string | No | Your unique reference for this operation. Defaults to cardId if not provided. Returned in webhooks for easy reconciliation. |
Idempotency
When you supply areference, it is single-use. Retrying a fund with the same reference
returns the original result instead of funding the card again, so a client retry or accidental
double-submit can never double-charge.
A
reference is final once it resolves — both success and FAILED are terminal. If a fund
resolves to FAILED, sending the same reference again does not re-run it; it returns
409 REFERENCE_ALREADY_FAILED. To genuinely retry a failed fund, send a new reference. This
stops one reference from ending up with two operations in two different states.Example Usage
<?php
$cardId = 'crd_8f3a2b1c4d5e6f7890abcdef12345678';
$data = [
'amount' => 50.00,
'reference' => 'my-order-12345' // Optional: your unique reference
];
$ch = curl_init("https://api.fyatu.com/api/v3/cards/{$cardId}/fund");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . $accessToken,
'Content-Type: application/json'
],
CURLOPT_POSTFIELDS => json_encode($data)
]);
$response = curl_exec($ch);
$result = json_decode($response, true);
if ($result['success']) {
echo "Funded: $" . $result['data']['amountFunded'] . "\n";
echo "Reference: " . $result['data']['reference'] . "\n";
}
const cardId = 'crd_8f3a2b1c4d5e6f7890abcdef12345678';
const response = await fetch(`https://api.fyatu.com/api/v3/cards/${cardId}/fund`, {
method: 'POST',
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: 50.00,
reference: 'my-order-12345' // Optional: your unique reference
})
});
const result = await response.json();
if (result.success) {
console.log('Funded: $' + result.data.amountFunded);
console.log('Reference: ' + result.data.reference);
}
Error Responses
| Status | Error Code | Description |
|---|---|---|
| 400 | CARD_NOT_ACTIVE | Card is not active (frozen, suspended, or terminated) |
| 400 | INSUFFICIENT_BALANCE | Business wallet balance is too low |
| 400 | CARD_FROZEN | Card is frozen at bank partner (auto-syncs local status) |
| 400 | CARD_TERMINATED | Card has been terminated (auto-syncs local status) |
| 409 | REFERENCE_ALREADY_FAILED | This reference already resolved to FAILED and is single-use — send a new reference to retry |
| 500 | DEBIT_FAILED | Failed to debit from business wallet |
| 500 | FUNDING_FAILED | Failed to fund card at the bank partner |
A funding fee (
CARD_FUNDING_FEE) may apply. Use the Get Pricing endpoint to retrieve your current rates.Authorizations
JWT access token obtained from /auth/token
Path Parameters
Body
application/json
⌘I

