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

# Creare un Wire Out

Avvia un **Wire Out** per trasferire i fondi dal tuo conto Localpayment al tuo conto bancario esterno (regolamento).

> 📌 **Wire Out o Payout?**
>
> * Un **Wire Out** è un **regolamento / prelievo**: i fondi passano dal tuo conto Localpayment al **tuo conto bancario esterno**. Come beneficiario nell'oggetto `to` **devi indicare te stesso**, cioè lo stesso titolare del conto di origine, mai una terza parte.
> * Un **Payout** è un **pagamento a un destinatario finale** (in genere un tuo cliente). Se devi inviare fondi a una terza parte, usa invece l'endpoint [Creare un payout](https://docs.localpayment.com/it/reference/create-a-payout.md).

Per avviare un Wire Out, fornisci:

* **Dati della banca di destinazione (il tuo conto bancario esterno):** `name` della banca, `swift`, `address` della banca, `accountName`, `accountNumber` e `beneficiaryAddress`. Il titolare del conto **deve corrispondere a te**, in quanto titolare del conto di origine.
* **Conto Localpayment di origine:** l'`accountNumber` del conto Localpayment da cui verranno addebitati i fondi.
* **Dettagli del trasferimento:** `amount`, `currency`, `country`, `transactionType` impostato su `"WireOut"`, il tuo `externalId` e un `comment` facoltativo.

Se l'operazione va a buon fine, Localpayment restituisce un `internalId` che puoi usare per monitorare il bonifico. Puoi seguirne lo stato da `RECEIVED` fino a `Completed` (fondi accreditati sul tuo conto bancario di destinazione) o `Rejected`.


## OpenAPI

````yaml openapi/it/localpayment.json POST /api/account/wire-out
openapi: 3.1.0
info:
  version: '1.0'
  title: Localpayment
  contact:
    name: Support
    url: mailto:support@localpayment.com
servers:
  - url: https://api.stage.localpayment.com
    description: Stage
security:
  - token: []
paths:
  /api/account/wire-out:
    post:
      summary: Creare un Wire Out
      operationId: wire-out
      parameters:
        - name: Authorization
          in: header
          description: >-
            Token di accesso Bearer per l'autenticazione. Questo token si
            ottiene dagli endpoint [Ottenere il token di
            accesso](/it/reference/get-token) o [Rinnovare il token di
            accesso](/it/reference/refresh-token).
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                to:
                  type: object
                  description: >-
                    Conto bancario di destinazione del Wire Out. **Il
                    beneficiario devi essere tu**, lo stesso titolare del conto
                    di origine. Il Wire Out è un regolamento verso il tuo conto
                    bancario esterno, non un payout a terzi. Usa [Creare un
                    payout](/it/reference/create-payout) se il destinatario è un
                    tuo cliente.
                  properties:
                    name:
                      type: string
                      description: >-
                        Nome della banca di destinazione presso cui detieni il
                        conto esterno.
                    swift:
                      type: string
                      description: Codice SWIFT/BIC della banca di destinazione.
                    address:
                      type: string
                      description: Indirizzo della banca di destinazione.
                    accountName:
                      type: string
                      description: >-
                        Nome del titolare del conto presso la banca di
                        destinazione.
                    accountNumber:
                      type: string
                      description: >-
                        Numero di conto presso la banca di destinazione su cui
                        verranno accreditati i fondi. Per i Wire Out in
                        stablecoin (USDC / USDT), inserisci l'indirizzo del
                        wallet crypto di destinazione.
                    routingNumber:
                      type: string
                      description: >-
                        Codice di routing (o sort code) della banca di
                        destinazione. Facoltativo; può variare in base al paese.
                    beneficiaryAddress:
                      type: string
                      description: >-
                        Il tuo indirizzo come beneficiario presso la banca di
                        destinazione.
                  required:
                    - name
                    - swift
                    - address
                    - accountName
                    - accountNumber
                    - beneficiaryAddress
                amount:
                  type: number
                  description: Importo della transazione.
                comment:
                  type: string
                  description: Commento o nota associati alla transazione.
                country:
                  type: string
                  description: >-
                    [Paese del documento](/it/reference/country-codes). ISO
                    3166-1 alpha-3. Per i Wire Out in stablecoin (USDC / USDT),
                    usa `GLO` o il codice paese ISO alpha-3 corrispondente al
                    wallet crypto di destinazione.
                currency:
                  type: string
                  description: >-
                    [Codici valuta](/it/reference/currency-codes). Sono
                    supportate le stablecoin **USDC** e **USDT**.
                externalId:
                  type: string
                  description: >-
                    Identificatore univoco generato dal tuo sistema per
                    tracciare la transazione (caratteri alfanumerici e
                    trattini). Consigliamo di usare UUID4 per garantirne
                    l'univocità.
                accountNumber:
                  type: string
                  description: Numero di conto Localpayment.
                transactionType:
                  type: string
                  description: Tipo di transazione in elaborazione.
              required:
                - to
                - amount
                - country
                - currency
                - externalId
                - accountNumber
                - transactionType
              x-examples:
                Example 1:
                  to:
                    name: BBVA Arg.
                    swift: BCSARG
                    address: YourAccountNumber
                    accountName: YourAccountName
                    accountNumber: YourAccountNumber
                    routingNumber: routingNumber
                    beneficiaryAddress: beneficiaryAddress
                  amount: 1000
                  comment: WireOut_External
                  country: ARG
                  currency: ARS
                  externalId: '{{externalId}}'
                  accountNumber: '{{accountNumber}}'
                  transactionType: WireOut
                Stablecoin (USDC):
                  to:
                    name: Banco Galicia
                    swift: GALVARAR
                    address: 123 Blockchain Ave
                    accountName: Jane Doe
                    accountNumber: '{{walletAddress}}'
                    routingNumber: routingNumber
                    beneficiaryAddress: 123 Blockchain Ave
                  amount: 100
                  comment: Stablecoin settlement
                  country: GLO
                  currency: USDC
                  externalId: a3f7c912-4e85-4b2d-9c0f-6d1e8a2b5f47
                  accountNumber: '{{accountNumber}}'
                  transactionType: WireOut
            examples:
              Wire Out Example:
                value:
                  to:
                    name: BBVA Arg.
                    swift: BCSARG
                    address: YourAccountNumber
                    accountName: YourAccountName
                    accountNumber: YourAccountNumber
                    routingNumber: routingNumber
                    beneficiaryAddress: beneficiaryAddress
                  amount: 1000
                  comment: WireOut_External
                  country: ARG
                  currency: ARS
                  externalId: '{{externalId}}'
                  accountNumber: '{{accountNumber}}'
                  transactionType: WireOut
              Wire Out Stablecoin (USDC):
                value:
                  to:
                    name: Banco Galicia
                    swift: GALVARAR
                    address: 123 Blockchain Ave
                    accountName: Jane Doe
                    accountNumber: '{{walletAddress}}'
                    routingNumber: routingNumber
                    beneficiaryAddress: 123 Blockchain Ave
                  amount: 100
                  comment: Stablecoin settlement
                  country: GLO
                  currency: USDC
                  externalId: a3f7c912-4e85-4b2d-9c0f-6d1e8a2b5f47
                  accountNumber: '{{accountNumber}}'
                  transactionType: WireOut
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  transactionType:
                    type: string
                    description: Tipo di transazione in elaborazione.
                  externalId:
                    type: string
                    description: >-
                      Identificatore univoco generato dal tuo sistema per
                      tracciare la transazione (caratteri alfanumerici e
                      trattini). Consigliamo di usare UUID4 per garantirne
                      l'univocità.
                  internalId:
                    type: string
                    description: Identificatore della transazione Localpayment.
                  country:
                    type: string
                    enum:
                      - ARG
                      - BOL
                      - BRA
                      - CHL
                      - COL
                      - CRI
                      - DOM
                      - ECU
                      - SLV
                      - GTM
                      - HND
                      - MEX
                      - PAN
                      - PRY
                      - PER
                      - URY
                      - GLO
                    description: >-
                      [Paese del documento](/it/reference/country-codes). ISO
                      3166-1 alpha-3.
                  currency:
                    type: string
                    enum:
                      - ARS
                      - BOB
                      - BRL
                      - CLP
                      - COP
                      - CRC
                      - DOP
                      - USD
                      - GTQ
                      - MXN
                      - PYG
                      - PEN
                      - UYU
                      - USDC
                      - USDT
                    description: '[Codici valuta](/it/reference/currency-codes).'
                  clientCode:
                    type: string
                    description: >-
                      Identificatore univoco assegnato al cliente all'interno
                      del sistema Localpayment.
                  creationDate:
                    type: string
                    description: >-
                      Data e ora di creazione della transazione, in formato ISO
                      8601.
                  errors:
                    type: array
                    description: >-
                      Array di oggetti errore, se si sono verificati errori
                      durante la transazione.
                    items:
                      type: object
                  status:
                    type: object
                    title: status
                    description: Stato dell'operazione.
                    properties:
                      code:
                        type: string
                        description: >-
                          [Codice di
                          stato](/it/reference/transaction-status-error-codes).
                      description:
                        type: string
                        description: >-
                          [Descrizione dello
                          stato](/it/reference/transaction-status-error-codes).
                      detail:
                        type: string
                        description: Informazioni aggiuntive sullo stato.
                  accountNumber:
                    type: string
                    description: Numero di conto Localpayment.
                  amount:
                    type: number
                    description: Importo della transazione.
                  fees:
                    type: object
                    description: Dettagli sulle eventuali commissioni addebitate.
                    properties:
                      description:
                        type: string
                        description: >-
                          Descrizione della commissione applicata alla
                          transazione.
                      currency:
                        type: string
                        description: '[Codici valuta](/it/reference/currency-codes).'
                      amount:
                        type: number
                        description: Importo della transazione.
                      account:
                        type: string
                        description: Numero di conto a cui viene applicata la commissione.
                  localTaxes:
                    type: array
                    description: Informazioni sulle imposte locali.
                    items:
                      type: object
                  withHoldings:
                    type: array
                    description: Informazioni sulle ritenute.
                    items:
                      type: object
                  comment:
                    type: string
                    description: Commento o nota associati alla transazione.
                x-examples:
                  Example 1:
                    transactionType: WireOut
                    externalId: ''
                    internalId: c0e5ec40-b5b6-49aa-8c2d-b1ba01080100
                    country: ARG
                    currency: ARS
                    clientCode: '0001'
                    creationDate: '2024-02-29T18:41:49.940+00:00'
                    errors: []
                    status:
                      code: '100'
                      description: RECEIVED
                      detail: WIRE OUT
                    accountNumber: '{{accountNumber}}'
                    amount: 965
                    fees:
                      description: Fee
                      currency: ARS
                      amount: 35
                      account: '{{accountNumber}}'
                    localTaxes: []
                    withHoldings: []
                    comment: WireOut_External
                  Stablecoin (USDC):
                    transactionType: WireOut
                    externalId: a3f7c912-4e85-4b2d-9c0f-6d1e8a2b5f47
                    internalId: 53f2fcb7-0cf0-40f4-8416-2d00e91786a1
                    country: GLO
                    currency: USDC
                    clientCode: '0001'
                    creationDate: '2026-01-15T15:18:43.121+00:00'
                    errors: []
                    status:
                      code: '102'
                      description: Received
                      detail: Authorized
                    accountNumber: '{{accountNumber}}'
                    amount: 100
                    fees:
                      description: Fee
                      currency: USDC
                      amount: 0
                      account: '{{accountNumber}}'
                    localTaxes: []
                    withHoldings: []
                    comment: Stablecoin settlement
              examples:
                100 - Wire Out Example Response:
                  value:
                    transactionType: WireOut
                    externalId: 7532a2f4-f467-4baa-ba02-3c4b20a19f3e
                    internalId: c0e4ec40-b5b6-19aa-8c2d-b1ba05080100
                    country: ARG
                    currency: ARS
                    clientCode: '0001'
                    creationDate: '2024-12-29T18:41:49.940+00:00'
                    errors: []
                    status:
                      code: '100'
                      description: RECEIVED
                      detail: WIRE OUT
                    accountNumber: '{{accountNumber}}'
                    amount: 965
                    fees:
                      description: Fee
                      currency: ARS
                      amount: 35
                      account: '{{accountNumber}}'
                    localTaxes: []
                    withHoldings: []
                    comment: WireOut_External
                102 - Wire Out Stablecoin Response:
                  value:
                    transactionType: WireOut
                    externalId: a3f7c912-4e85-4b2d-9c0f-6d1e8a2b5f47
                    internalId: 53f2fcb7-0cf0-40f4-8416-2d00e91786a1
                    country: GLO
                    currency: USDC
                    clientCode: '0001'
                    creationDate: '2026-01-15T15:18:43.121+00:00'
                    errors: []
                    status:
                      code: '102'
                      description: Received
                      detail: Authorized
                    accountNumber: '{{accountNumber}}'
                    amount: 100
                    fees:
                      description: Fee
                      currency: USDC
                      amount: 0
                      account: '{{accountNumber}}'
                    localTaxes: []
                    withHoldings: []
                    comment: Stablecoin settlement
        '400':
          description: Richiesta non valida.
          content:
            application/json:
              schema:
                type: object
                properties:
                  errors:
                    type: array
                    description: >-
                      Array di oggetti errore, se si sono verificati errori
                      durante la transazione.
                    items:
                      type: object
                      properties:
                        code:
                          type: string
                          description: Codice di errore.
                        detail:
                          type: string
                          description: Dettaglio dell'errore.
                  status:
                    type: object
                    title: status
                    description: Stato dell'operazione.
                    properties:
                      code:
                        type: string
                        description: >-
                          [Codice di
                          stato](/it/reference/transaction-status-error-codes).
                      description:
                        type: string
                        description: >-
                          [Descrizione dello
                          stato](/it/reference/transaction-status-error-codes).
                      detail:
                        type: string
                        description: Informazioni aggiuntive sullo stato.
                x-examples:
                  Example 1:
                    errors:
                      - code: '825'
                        detail: System error to generate transaction
                    status:
                      code: '825'
                      description: REJECTED
                      detail: System error to generate transaction
              examples:
                825 - System error to generate transaction.:
                  value:
                    errors:
                      - code: '825'
                        detail: System error to generate transaction
                    status:
                      code: '825'
                      description: REJECTED
                      detail: System error to generate transaction
        '401':
          description: Non autorizzato.
          content:
            application/json:
              schema:
                type: object
                properties:
                  detail:
                    type: string
                    description: Informazioni aggiuntive della risposta.
                  code:
                    type: string
                    description: Codice di stato.
                  messages:
                    type: array
                    description: Elenco dei messaggi.
                    items:
                      type: object
                      properties:
                        token_class:
                          type: string
                          description: Classe del token.
                        token_type:
                          type: string
                          description: Tipo di token.
                        message:
                          type: string
                          description: Messaggio con informazioni aggiuntive.
                x-examples:
                  Example 1:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
              examples:
                401 - Token is invalid or expired:
                  value:
                    detail: Given token not valid for any token type
                    code: token_not_valid
                    messages:
                      - token_class: AccessToken
                        token_type: access
                        message: Token is invalid or expired
      security:
        - token: []
      servers:
        - url: https://api.stage.localpayment.com
          description: Stage
components:
  securitySchemes:
    token:
      type: http
      scheme: bearer

````

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