> For the complete documentation index, see [llms.txt](https://docs.stric.com.br/documentacao/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stric.com.br/documentacao/transferencias/transferencias-ted.md).

# Transferências (TED)

As transferências do tipo DOC/TED possibilitam o recebimento de instituições diferentes da instituição de origem.

<mark style="color:green;">`POST`</mark> `https://dev.stric.com.br/transfers`

#### Headers

| Name                                            | Type   | Description               |
| ----------------------------------------------- | ------ | ------------------------- |
| account<mark style="color:red;">\*</mark>       | String | ID da conta a ser operada |
| authorization<mark style="color:red;">\*</mark> | String | Bearer Token              |

#### Request Body

| Name                                                   | Type    | Description                  |
| ------------------------------------------------------ | ------- | ---------------------------- |
| amount<mark style="color:red;">\*</mark>               | Number  | Valor                        |
| beneficiary{}                                          | Obeject | Objeto beneficiário          |
| beneficiary.name<mark style="color:red;">\*</mark>     | String  | Nome                         |
| beneficiary.document<mark style="color:red;">\*</mark> | String  | CPF/CNPJ                     |
| bank<mark style="color:red;">\*</mark>                 | String  | Banco (3 dígitos)            |
| branch<mark style="color:red;">\*</mark>               | String  | Agência                      |
| account<mark style="color:red;">\*</mark>              | String  | Número da conta sem o dígito |
| accountDigit<mark style="color:red;">\*</mark>         | String  | Dígito da conta              |

{% tabs %}
{% tab title="200: OK Caso de sucesso" %}

```javascript
{
    "credit": false,
    "amount": 1,
    "description": "TRANSFERÊNCIA PARA JOSÉ HENRIQUE MARTINS",
    "rateValue": 0,
    "consignorName": "JOSÉ HENRIQUE MARTINS",
    "consignorDocument": "17447408018",
    "consignorBankNumber": "450",
    "consignorBankBranch": "0001",
    "consignorBankAccount": "189881001",
    "consignorBankAccountDigit": "7",
    "beneficiaryName": "JOSÉ HENRIQUE MARTINS",
    "beneficiaryDocument": "17447408018",
    "beneficiaryBankNumber": "341",
    "beneficiaryBankBranch": "0001",
    "beneficiaryBankAccount": "03462",
    "beneficiaryBankAccountDigit": "4",
    "status": "PROCESSING",
    "id": "16ad60c4-18a9-4db4-942b-d0234178b8f8",
    "date": "2022-06-28T14:03:47.473Z"
}
```

{% endtab %}

{% tab title="400: Bad Request Ausencia de parâmetros obrigatórios" %}

```javascript
{
    "statusCode": 400,
    "error": "Bad Request",
    "message": "Validation failed",
    "validation": {
        "body": {
            "source": "body",
            "keys": [
                "beneficiary.branch"
            ],
            "message": "\"beneficiary.branch\" is not allowed to be empty"
        }
    }
}
```

{% endtab %}
{% endtabs %}
