> ## Documentation Index
> Fetch the complete documentation index at: https://docs.localpayment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Internal Domestic Transfer

Secure internal transfers between your Localpayment accounts. Maintain liquidity and manage funds domestically without currency conversion.

An internal domestic transfer allows you to securely move funds between your Localpayment accounts within the same country and currency. This feature is ideal for managing liquidity across multiple accounts or redistributing funds for operational efficiency.

## Use Cases

* **Portfolio Rebalancing:** Dynamically reallocate capital across client portfolios to swiftly capitalize on market movements and adhere to strategic investment mandates.
* **Centralized Liquidity Management:** Consolidate balances from various operational accounts to optimize working capital, ensure timely payments, and maximize fund utilization.
* **Structured Fund Distribution:** Automate the disbursement of budgets to departments, projects, or cost centers from a central account while maintaining full visibility and control.
* **Regulatory & Risk Compliance:** Proactively manage capital reserves and risk buffers by segregating funds across designated account types to meet regulatory requirements and internal policies.

***

## Prerequisites

Before initiating internal domestic transfers, ensure you have:

* **Sufficient funds** in your source account
* **Valid API credentials** with internal transfer permissions
* **Account verification** for both source and destination accounts
* **Same country** registration for both accounts

> [!WARNING]
>
> **Important**
>
> Both accounts must be registered in the same country.

***

## API Integration

To create Internal Domestic Transfer, send a `POST` request to the [Create Internal Transfer](https://docs.localpayment.com/reference/domestic-transfer.md) endpoint.

### Endpoint

```http theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
POST https://api.stage.localpayment.com/api/internal-transfer
```

### Authentication

```http theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
Authorization: Bearer <your_access_token>
```

### Key Request Parameters

| Parameter | Type | Description |
| - | - | - |
| `externalId` | string | Your unique transaction identifier |
| `country` | string | ISO alpha-3 country code |
| `currency` | string | ISO currency code |
| `amount` | number | Transfer amount |
| `transactionType` | string | Must be "InternalDomesticTransfer" |
| `client.from.accountNumber` | string | Source account number |
| `client.to.accountNumber` | string | Destination account number |

### Request Example

```bash curl theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
curl --request POST \
      --url https://api.stage.localpayment.com/api/internal-transfer \
      --header 'Authorization: Bearer <your_access_token>' \
      --header 'Accept: application/json' \
      --header 'Content-Type: application/json' \
      --data '{
        "externalId": "8888ad65-aa6e-4643-b9ba-ff62318fd90b",
        "country": "ARG",
        "currency": "ARS",
        "amount": 1000,
        "transactionType": "InternalDomesticTransfer",
        "client": {
          "type": "Client",
          "from": {
            "accountNumber": "{{accountNumber}}"
          },
          "to": {
            "accountNumber": "{{accountNumber}}"
          }
        }
      }'
```

***

## Response Handling

Our API provides comprehensive response data for effective transaction management and reconciliation.

### Success Response

```json theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
{
    "transactionType": "InternalDomesticTransfer",
    "externalId": "8888ad65-aa6e-4643-b9ba-ff62318fd90b",
    "internalId": "cda1c606-a14f-4cab-a323-82c09f2ca8b1",
    "country": "ARG",
    "currency": "ARS",
    "clientCode": "0001",
    "creationDate": "2025-10-14T15:44:53.374+00:00",
    "errors": [],
    "status": {
        "code": "200",
        "description": "Completed",
        "detail": "INTERNAL TRANSFER"
    },
    "amount": 1000,
    "client": {
        "type": "Client",
        "from": {
            "clientCode": "0001",
            "accountNumber": "{{accountNumber}}"
        },
        "to": {
            "clientCode": "0001",
            "accountNumber": "{{accountNumber}}",
            "amount": 966.0
        }
    },
    "fees": {
        "description": "Fee",
        "currency": "ARS",
        "amount": 21.0,
        "account": "{{accountNumber}}"
    },
    "localTaxes": [
        {
            "code": "0001",
            "percentage": 1.3,
            "description": "IDC",
            "currency": "ARS",
            "fxSource": 1360.092976,
            "fxQuote": 0.0,
            "amount": 13.0,
            "account": "{{accountNumber}}"
        }
    ],
    "withHoldings": [],
    "code": "200"
}
```

#### Key Response Fields

| Field | Description |
| - | - |
| `internalId` | System-generated unique identifier for tracking |
| `status.code` | Transaction status: 200 (COMPLETED), 702+ (ERRORS) |
| `client.to.amount` | Net amount credited to destination account |
| `fees.amount` | Total processing fees deducted |
| `localTaxes` | Array of applicable local taxes |
| `payment.creditedAmount` | Final amount received in destination account |

### Error Responses

```json theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
    {
      "externalId": "TXN_INVALID_123",
      "internalId": "fc2c831c-d0f1-41f6-8a59-0ecd426c087d",
      "errors": [
        {
          "code": "702",
          "detail": "Account not configured for InternalDomesticTransfer"
        },
        {
          "code": "703", 
          "detail": "Account countries must match"
        },
        {
          "code": "704",
          "detail": "Insufficient funds in source account"
        }
      ],
      "status": {
        "code": "702",
        "description": "REJECTED",
        "detail": "Configuration validation failed"
      }
    }
```

***

## Transaction Status Tracking

Monitor your currency exchanges through multiple channels:

> [card] [Webhooks (Recommended)](https://docs.localpayment.com/docs/webhooks.md)
>
> Receive real-time notifications when transaction status changes. Most efficient for production environments.

> [card] [Status API Endpoint](https://docs.localpayment.com/reference/get-transaction-status.md)
>
> Query transaction status programmatically. Useful for polling or recovering lost webhook notifications.

> [card] [Business Portal View](https://docs.localpayment.com/docs/dashboard-overview.md)
>
> Visual interface for monitoring transactions. Great for manual oversight and detailed transaction analysis.

### Status Lifecycle

| Code | Status | Description |
| :- | :- | :- |
| `100` | `InProgress` | InProgress |
| `102` | `PendingDebit` | Pending Debit |
| `103` | `PendingCredit` | Pending Credit |
| `200` | `Completed` | INTERNAL TRANSFER |
| `303` | `Rejected` | This exchange rate token has expired. |

> [!NOTE]
>
> **Complete Reference**
>
> View all status codes in our [Transaction Status Documentation](https://docs.localpayment.com/reference/transaction-status-error-codes).

***

## Resources & Next Steps

Maximize your integration success with these essential resources

> [card] [Webhook Integration](https://docs.localpayment.com/docs/webhooks.md)
>
> Set up real-time notifications for transaction status updates.

> [card] [Reporting Business Portal](https://docs.localpayment.com/docs/balance-report.md)
>
> Access detailed analytics, reporting tools, and reconciliation features.

> [card] [Transaction Monitoring](https://docs.localpayment.com/reference/transaction-status-error-codes)
>
> Learn to query transaction status and implement comprehensive tracking.

> [card] [API Reference](https://docs.localpayment.com/reference/exchange-bulk.md)
>
> Complete endpoint documentation with interactive examples.

> [!NOTE]
>
> **Pro Tip**
>
> Always test your workflow in our sandbox environment before deploying to production. This ensures your error handling, webhook processing, and status tracking work correctly across all scenarios.

***

> [!NOTE]
>
> **Need Help?**
>
> Contact our [support team](mailto:support@localpayment.com) if you experience any issues or need assistance for integration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.