# Countries Chile

> Create a Payout for Chile using our API and Dashboard

export const bankTransfer = PAYOUT_PAYMENT_METHODS.find(
  (method) => method.id === "bank-transfer",
);

# 🇨🇱 Chile

Learn everything you need to know about making payouts in Chile.

## Payment Methods

Checkout our SLAs for each payment method:

## Instructions

To create a payout using EBANX Direct API, follow the steps below.

  ### Define request parameters

    Provide the required parameters listed below to create a payout.

    
      | Field                | Description                                                                                             |
      | -------------------- | ------------------------------------------------------------------------------------------------------- |
      | `integration_key`    | Your EBANX integration key.                                                                             |
      | `external_reference` | The unique payout ID provided by you.                                                                   |
      | `country`            | The two-letter country code for the customer country. In this case, we'll show the method to cl (Chile) |
      | `amount`             | The amount in the specified currency (currency_code).                                                   |
      | `currency_code`      | Three-letter code of the payout currency. In this case, we'll use CLP (Chilean Peso)                    |
      | `payee`              | A JSON object containing the details of the payee of your request.                                      |
    
  
    
    **Document Types Allowed**

    These document types are used to identify payees or shareholders.

    
      | Document type | Description                                      |
      | ------------- | ------------------------------------------------ |
      | RUN           | B2C - Rol Único Nacional (National Unique Role). |
      | RUT           | B2B - Rol Único Tributario (Unique Tax Role).    |
    

    > **RUN vs RUT**
> In Chile, **RUN** (Rol Único Nacional) is used for individuals and **RUT** (Rol Único Tributario) is used for companies. Both follow the same format: 8-9 digits followed by a verification digit (e.g., `12345678-9` or `12345678-K`).

  ### Send payout request to EBANX

    To create a new Payout, you will use the [**/ws/payout/create**](/api-reference?api=payout&page=post--ws-payout-create) endpoint.

    Choose the transaction type for your payout request:

            B2C (Individual)

        }
      >
    The following example demonstrates a payout request to an individual payee using their RUN:

    ```bash
curl -X POST \
  --location 'https://sandbox.ebanxpay.com/ws/payout/create' \
  --header 'Content-Type: application/json' \
  --data '{
    "integration_key": "{{integration_key}}",
    "external_reference": "{{unique_external_reference}}",
    "country": "cl",
    "amount": 50000,
    "currency_code": "CLP",
    "payee": {
        "name": "Carlos Gonzalez Silva",
        "email": "carlos.gonzalez@email.com",
        "phone": "+56912345678",
        "document": "{{tax_id}}",
        "document_type": "RUN",
        "bank_info": {
            "bank_name": "001 Banco de Chile",
            "bank_branch": "{{bank_branch}}",
            "bank_account": "{{bank_account}}",
            "account_type": "S"
        },
        "address": {
            "zipcode": "7500000",
            "state": "RM",
            "city": "Santiago",
            "street_address": "Av. Providencia 1234",
            "street_complement": "Depto 501"
        }
    }
}'
```

    A successful creation will return a JSON Object with type "success" and a payout object with all the details of the newly created payout.

    ```json
{
  "type": "success",
  "payout": {
    "uid": "{{payout_uid}}",
    "external_reference": "{{unique_external_reference}}",
    "status": "OP",
    "request_date": "2024-01-15 10:30:00",
    "status_date": null,
    "paid_date": null,
    "cancel_date": null,
    "payee": {
      "name": "Carlos Gonzalez Silva",
      "email": "carlos.gonzalez@email.com",
      "phone": "56912345678",
      "document": "{{tax_id}}",
      "document_type": "RUN",
      "birthdate": null,
      "bank_info": {
        "bank_name": "001 Banco de Chile",
        "bank_branch": "{{bank_branch}}",
        "bank_account": "{{bank_account}}",
        "account_type": "S",
        "bank_details": null
      }
    },
    "request_amount": 50000,
    "request_currency": "CLP",
    "request_exchange_rate": 1,
    "debit_amount": 50000,
    "debit_fee": 500,
    "debit_amount_total": 50500,
    "debit_currency": "CLP",
    "local_tax_amount": "0.00",
    "local_amount_total": "50000.00",
    "local_currency": "CLP",
    "local_exchange_rate": "1.0000"
  }
}
```

        B2B (Organization)

    }
  >
    To create a payout for an organization entity (company), you need to use the **RUT** document type and include shareholder information.

    The following fields are required in the **shareholder** object:
    - `name`
    - `document`
    - `document_type`

    

    ```bash
curl -X POST \
  --location 'https://sandbox.ebanxpay.com/ws/payout/create' \
  --header 'Content-Type: application/json' \
  --data '{
    "integration_key": "{{integration_key}}",
    "external_reference": "{{unique_external_reference}}",
    "country": "cl",
    "amount": 500000,
    "currency_code": "CLP",
    "payee": {
        "name": "Empresa Chilena SpA",
        "email": "contacto@empresachilena.cl",
        "phone": "+56223456789",
        "document": "{{tax_id}}",
        "document_type": "RUT",
        "bank_info": {
            "bank_name": "001 Banco de Chile",
            "bank_branch": "{{bank_branch}}",
            "bank_account": "{{bank_account}}",
            "account_type": "C"
        },
        "address": {
            "zipcode": "7500000",
            "state": "RM",
            "city": "Santiago",
            "street_address": "Av. Apoquindo 4500",
            "street_complement": "Oficina 1201"
        },
        "shareholder": [
            {
                "name": "Carlos Gonzalez Silva",
                "document": "{{tax_id}}",
                "document_type": "RUN",
                "email": "carlos.gonzalez@mail.com",
                "zipcode": "7500000",
                "state": "RM",
                "city": "Santiago",
                "address": "Av. Providencia 1234",
                "complement": "Depto 501",
                "ownership_percent": 60
            },
            {
                "name": "Maria Rodriguez Perez",
                "document": "{{tax_id}}",
                "document_type": "RUN",
                "email": "maria.rodriguez@mail.com",
                "zipcode": "7500000",
                "state": "RM",
                "city": "Santiago",
                "address": "Av. Las Condes 5678",
                "complement": "Casa 12",
                "ownership_percent": 40
            }
        ]
    }
}'
```

  </TabItem>
</Tabs>

  </IntegrationStepsItem>
  ### Send commit request to EBANX

    Once the new payout record is created it'll be committed automatically after 6 hours. Or you can use the [**/ws/payout/commit**](/api-reference?api=payout&page=post--ws-payout-commit) endpoint to start the payment process.

    Here's an example of a commit operation using the payout we've just created:

    ```bash
curl -X POST \
  --location 'https://sandbox.ebanxpay.com/ws/payout/commit' \
  --header 'Content-Type: application/json' \
  --data '{
    "integration_key": "{{integration_key}}",
    "uid": "{{payout_uid}}"
}'
```

    Once the new payout is committed, a JSON Object with type "success" will be returned.

    ```json
{
  "type": "success",
  "message": "Payout has already been committed"
}
```

  ### Congratulations!

    You have successfully **Created a Payout** in Chile.

## Creating a Payout using the Dashboard

You can also create a payout through our Dashboard in the Overview section of the Payout tab. Click on Create Payout, fill in the payee information, payout amount and click on Create. Additionally, you can create a Mass Payout by sending a spreadsheet to be processed in bulks.

## Available Banks

  | Bank Code | Institution Name                             |
  | :-------- | :------------------------------------------- |
  | **001**   | Banco de Chile                               |
  | **009**   | Banco Internacional                          |
  | **012**   | Banco del Estado de Chile                    |
  | **014**   | Scotiabank Chile                             |
  | **016**   | Banco de Crédito e Inversiones (BCI)         |
  | **027**   | Corpbanca                                    |
  | **028**   | Banco Bice                                   |
  | **031**   | HSBC Bank Chile                              |
  | **037**   | Banco Santander Chile                        |
  | **039**   | Itaú Corpbanca                               |
  | **049**   | Banco Security                               |
  | **051**   | Banco Falabella                              |
  | **053**   | Banco Ripley                                 |
  | **054**   | Banco Consorcio                              |
  | **055**   | Banco Penta (actual Banco BTG Pactual Chile) |
  | **504**   | Banco BBVA Chile                             |
  | **672**   | Coopeuch                                     |

## Possible Errors

See the [Payout Error Code page](/docs/payout/create-payout/errors/payout-error-codes) to learn more about the possible errors.
## Still need help?

If you still have questions, you can explore the following options:

- **Merchant support:** Contact our support team at [sales.engineering@ebanx.com](mailto:sales.engineering@ebanx.com) for assistance.
- **Not a partner yet?** Complete the [Merchant Signup Form](https://business.ebanx.com/en/request-contact), and our commercial team will reach out to you.
