# Transfer Funds

## Transfer Funds

This endpoint enables clients to transfer funds to and from a card.

Move funds from a Customer Account to a card by calling the following endpoint. The `customerAssetAccountsId` must be either a USD (excluding subledger) or dUSD account.

* **Endpoint:** `/api/v1/customer/cards/transferfunds`
* **Method:** POST

#### Note: Clients may use dUSD or USD accounts interchangably. For subledger customers, the `CustomerAssetAccountId` of the dUSD Account should be used. For other account types, you should use a USD Account.

**For Card-to-Card transfers, the currency type will always be USD.**

#### Request Body Example

```json
//Case-1 TopUpCard
{
  "amount": 10,
  "reference": "Test",
  "transferTypes": "TopUpCard",
  "currencyType": "USD", //"dUSD"
  "DestinationCardId": 1749,
  "CustomersId": "16221",
  "CustomerAssetAccountId": 8204
}
//Case-2 TopUpAccount
{
  "amount": 10,
  "reference": "Test",
  "transferTypes": "TopUpAccount",
  "currencyType": "USD",//"dUSD"
  "SourceCardId": 1249,
  "CustomersId": "16221",
  "CustomerAssetAccountId": 8204
}
//Case-3 CardToCard
{
  "amount": 10,
  "reference": "Test",
  "transferTypes": "CardToCard",
  "currencyType": "USD",
  "SourceCardId": 1249,
  "CustomersId": "16221",
  "DestinationCardId": 1749
}
```

#### Success Response Example

```json
{
    "id": 30939,
    "details": {
        "FromTransactionId": 30939,
        "ToTransactionId": 30941,
        "FeeTransactionId": 30940,
        "amount": 10,
        "feeAmount": 0,
        "description": "Card transfer - Top Up Funds",
        "bPending": true
    },
    "status": "1",
    "errors": []
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://customer-api-docs.ibanera.com/api-endpoints/cards/card-transfers.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
