> ## 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.

# Wire Out

Localpayment enables you to withdraw funds from your Localpayment account and deposit them into your own external bank account through both API integration and the Business Portal interface. This guide covers the complete Wire Out workflow for fund settlement, detailing the authorization flow, API implementation, and status tracking.

> [!NOTE]
>
> **Wire Out vs. Payout**
>
> A **Wire Out** is a **settlement / withdrawal**: funds move from your Localpayment account to **your own external bank account**, never a third party.
>
> A **Payout** is a **disbursement to an end recipient** (typically your customer). If you need to send funds to a third party, use the [Create Payout](https://docs.localpayment.com/reference/create-a-payout.md) endpoint instead.

## Before You Begin

Ensure you have:

> [card] [API Credentials](https://docs.localpayment.com/docs/api-keys-and-environments.md)
>
> Valid API credentials and access token for authentication.

> [card] [Account Setup](https://docs.localpayment.com/docs/make-your-first-test-payment.md)
>
> Proper account setup for your target country and business verification.

> [card] [IP Whitelisting](https://docs.localpayment.com/docs/dashboard-whitelist-your-ips.md)
>
> Whitelist your server IP addresses for API access.

> [card] [Webhook Endpoint](https://docs.localpayment.com/docs/webhooks.md)
>
> Set up a webhook URL to receive payment notifications.

### Additional Wire Out Requirements:

* Sufficient **available balance** in your Localpayment account. Check it in the [Balance report](https://docs.localpayment.com/docs/balance-report.md) or estimate upcoming funds with the [Projected Balance report](https://docs.localpayment.com/docs/projected-balance-report.md).
* User role with **sufficient permissions** for Wire Out authorization (see documentation on roles and permissions).
* **External bank account details** (SWIFT code, account number, beneficiary information).

***

## Implementation Guide

Localpayment provides two methods for processing Wire Outs: API integration for automated processing and Business Portal for manual operations.

> [card] [API Wire Out Processing](#step-1-process-wire-out-via-api)
>
> Programmatically initiate Wire Out transactions through REST API for
> automated settlement workflows and system integration.

> [card] [Business Portal Wire Out Processing](https://docs.localpayment.com/docs/dashboard-wire-out.md)
>
> Manually process Wire Out instructions through the Localpayment Business Portal
> with a visual interface and step-by-step guidance.

***

## Step 1: Process Wire Out via API

To initiate a Wire Out transaction through API, send a `POST` request to the [Wire Out](https://docs.localpayment.com/reference/wire-out.md)  endpoint.

### Key Request Parameters

The request requires several key parameters:

| Parameter | Description | Required |
| - | - | - |
| `transactionType` | Must be set to "WireOut" | ✅ |
| `externalId` | Your unique reference ID for the transaction | ✅ |
| `country` | Country code in ISO format where payment will be processed | ✅ |
| `currency` | Currency for the transaction amount | ✅ |
| `amount` | Amount to be debited from your account | ✅ |
| `accountNumber` | Your Localpayment account number | ✅ |
| `to` | Destination bank account object. **Beneficiary must be you**, the same account holder as the source account, not a third party. | ✅ |
| `to.name` | Destination bank name | ✅ |
| `to.swift` | SWIFT/BIC code of the destination bank | ✅ |
| `to.address` | Destination bank address | ✅ |
| `to.accountName` | Account holder name at the destination bank. | ✅ |
| `to.accountNumber` | Account number at the destination bank. | ✅ |
| `to.routingNumber` | Routing number / sort code (varies by country, e.g., US transfers) | ❌ |
| `to.beneficiaryAddress` | Your address as the beneficiary at the destination bank. | ✅ |
| `comment` | Optional note about the transaction | ❌ |

### Example Request

> [tab] Standard (fiat)
>
> ```bash curl theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
> curl --request POST \
>   --url https://api.stage.localpayment.com/api/account/wire-out \
>   --header 'Authorization: Bearer <your_access_token>' \
>   --header 'accept: application/json' \
>   --header 'content-type: application/json' \
>   --data '{
>     "transactionType": "WireOut",
>     "externalId": "c048aaea-5916-4dfe-add9-e3a720c42a08",
>     "country": "ARG",
>     "currency": "ARS",
>     "amount": 1000,
>     "accountNumber": "{{accountNumber}}",
>     "to": {
>       "name": "BBVA Arg.",
>       "swift": "BCSARG",
>       "address": "Centro 123",
>       "accountName": "John Doe",
>       "accountNumber": "3220001805117354710015",
>       "beneficiaryAddress": "Av. Corrientes 1234"
>     },
>     "comment": "Settlement"
>   }'
> ```

> [tab] Stablecoin (USDC / USDT)
>
> ```bash curl theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
> curl --request POST \
>   --url https://api.stage.localpayment.com/api/account/wire-out \
>   --header 'Authorization: Bearer <your_access_token>' \
>   --header 'accept: application/json' \
>   --header 'content-type: application/json' \
>   --data '{
>     "transactionType": "WireOut",
>     "externalId": "a3f7c912-4e85-4b2d-9c0f-6d1e8a2b5f47",
>     "country": "GLO",
>     "currency": "USDC",
>     "amount": 100,
>     "accountNumber": "{{accountNumber}}",
>     "to": {
>       "name": "Banco Galicia",
>       "swift": "GALVARAR",
>       "address": "123 Blockchain Ave",
>       "accountName": "Jane Doe",
>       "accountNumber": "{{walletAddress}}",
>       "routingNumber": "routingNumber",
>       "beneficiaryAddress": "123 Blockchain Ave"
>     },
>     "comment": "Stablecoin settlement"
>   }'
> ```
>
> > [!NOTE]
> >
> > For stablecoin wire outs, set `currency` to `"USDC"` or `"USDT"`. For `country`, use `"GLO"` or the ISO alpha-3 country code that corresponds to the destination wallet. The `to.accountNumber` field must contain the destination wallet address.

See all [available parameters](https://docs.localpayment.com/reference/wire-out.md) in the request.

***

## Step 2: Handle the Response

### Successful Response

A successfully initiated Wire Out returns transaction details with initial status:

> [tab] Standard (fiat)
>
> ```json theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
> {
>     "transactionType": "WireOut",
>     "externalId": "c048aaea-5916-4dfe-add9-e3a720c42a08",
>     "internalId": "c0e5ec40-b5b6-49aa-8c2d-b1ba01080100",
>     "country": "ARG",
>     "currency": "ARS",
>     "clientCode": "0001",
>     "creationDate": "2025-09-29T18:41:49.940+00:00",
>     "errors": [],
>     "status": {
>         "code": "100",
>         "description": "RECEIVED",
>         "detail": "WIRE OUT"
>     },
>     "accountNumber": "{{accountNumber}}",
>     "amount": 1000.0,
>     "fees": {
>         "description": "Fee",
>         "currency": "ARS",
>         "amount": 30.0,
>         "account": "{{accountNumber}}"
>     },
>     "localTaxes": [],
>     "withHoldings": [],
>     "comment": "Settlement"
> }
> ```

> [tab] Stablecoin (USDC / USDT)
>
> ```json theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
> {
>     "internalId": "53f2fcb7-0cf0-40f4-8416-2d00e91786a1",
>     "externalId": "a3f7c912-4e85-4b2d-9c0f-6d1e8a2b5f47",
>     "clientCode": "0001",
>     "country": "GLO",
>     "errors": [],
>     "accountNumber": "{{accountNumber}}",
>     "code": "102",
>     "comment": "Stablecoin settlement",
>     "creationDate": "2026-01-15T15:18:43.121+00:00",
>     "localTaxes": [],
>     "status": {
>         "code": "102",
>         "description": "Received",
>         "detail": "Authorized"
>     },
>     "transactionType": "WireOut",
>     "currency": "USDC",
>     "fees": {
>         "account": "{{accountNumber}}",
>         "amount": 0,
>         "currency": "USDC",
>         "description": "Fee"
>     },
>     "withHoldings": [],
>     "amount": 100,
>     "transactionFlow": "wireInAutomatic"
> }
> ```

### Key Response Fields

| Parameter | Description | Use Case |
| - | - | - |
| `externalId` | Your reference for the original transaction. | Reconciliation and tracking. |
| `internalId` | Localpayment's unique transaction identifier. | Support and audit purposes. |
| `status.code` | Current transaction status code. | Status monitoring. |
| `creationDate` | When the transaction was created. | Audit trail and reporting. |

### Error Response

When a Wire Out request fails, you'll receive detailed error information:

```json theme={"theme":{"light":"github-light-high-contrast","dark":"github-dark-high-contrast"}}
{
    "status": {
        "code": "300",
        "description": "REJECTED",
        "detail": "[to.address must not be empty]"
    },
    "timestamp": "2025-09-29 18:52:05.640378596",
    "errors": [
        {
            "code": "300",
            "detail": "to.address must not be empty"
        }
    ]
}
```

***

## Step 3: Track Wire Out Status

After initiating a Wire Out, monitor its progress through these methods:

> [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.

### Common Wire Out Status Codes

| Code | Status | Description |
| - | - | - |
| `100` | `PendingAuth` | Transaction created, pending authorization |
| `101` | `PendingDebit` | Transaction in process after Localpayment validation |
| `102` | `Received` | Transaction authorized |
| `200` | `Completed` | Funds successfully transferred to destination bank |
| `404` | `Rejected` | Provider code doesn't match account number |
| `511` | `Rejected` | Zero amount specified in request |
| `716` | `Rejected` | Rejected by administrator during authorization |
| `717` | `RejectedByBank` | Transaction rejected by destination bank |

> [!NOTE]
>
> **Completion Notifications**
>
> You will receive email notifications when transactions reach `Completed` or `Rejected` statuses, regardless of whether they were initiated via API or Business Portal. For crypto Wire Out transactions (USDC/USDT), the `Completed` webhook callback also includes the blockchain transaction hash (`hash` field) so you can verify the payment independently in a block explorer. This field does not apply to fiat Wire Out — see [Webhooks](https://docs.localpayment.com/docs/webhooks.md) for the full payload example.

***

## Business Portal Wire Out Processing

Wire Out transactions can also be processed through the Localpayment Business Portal interface. This method provides a visual workflow for managing fund transfers and is particularly useful for:

* **One-time settlements** that don't require API automation.
* **Administrative oversight** with visual authorization workflows.
* **Quick fund transfers** without development resources.

For detailed instructions on processing Wire Out transactions through the Business Portal, including step-by-step guidance and interface walkthroughs, please refer to the [Business Portal Wire Out Guide](https://docs.localpayment.com/docs/dashboard-wire-out.md).

***

## Testing Your Integration

### Test Scenarios

Verify your integration handles these scenarios:

1. **Successful Wire Out**: Process transfer with valid parameters and sufficient balance.
2. **Insufficient Funds**: Attempt transfer exceeding account balance.
3. **Invalid Bank Details**: Test with incorrect SWIFT codes or account numbers.
4. **Authorization Workflow**: Verify pending authorization status and approval process.

***

## Next Steps

> [card] [View transaction status](https://docs.localpayment.com/reference/get-transaction-status.md)
>
> Check the current status of Wire Out transactions using the Transaction
> Status API.

> [card] [Configure webhooks](https://docs.localpayment.com/docs/webhooks.md)
>
> Set up webhooks to receive real-time notifications for Wire Out status
> changes.


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