> This page is for BaaS.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.api.corpx.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.api.corpx.com/_mcp/server.

# Send TED (Brazilian interbank transfer)

POST https://tenant.api.corpx.com/v1/accounts/{accountId}/ted/out
Content-Type: application/json

Sends a TED (Transferência Eletrônica Disponível) to another bank in the SPB network.

**Asynchronous by design.** The POST only confirms receipt by the settlement bank
(status `PROCESSING`); the final terminal state arrives via webhooks `ted.out.confirmed`
or `ted.out.failed` (or via the GET status endpoint).

**BACEN window:** business days 06:30–17:00 (Brazilian time). TEDs sent within the window
settle the same day (~30 minutes). Outside the window, the TED is scheduled for the
next business day.

**Defensive polling:** the server polls the partner statement every 1 minute for up to
48 hours, ensuring convergence even if the partner webhook is delayed or lost.

Settlement bank for **receiving** TEDs: **Compe code 681 / ISPB 50871921**.
See the TED guide for details.


Reference: https://docs.api.corpx.com/baas/referencia/ted/create-ted-out

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Path parameters

- `accountId` (string, required) — Account identifier.

### Headers

- `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing.
- `Idempotency-Key` (string, required) — Client-generated idempotency token.
- `X-Acting-Document` (string, optional) — CPF of the human performing the operation. Required on cashout routes when the credential enforces a transaction PIN. On a company P2P profile contact, this CPF is the holder who signs; it is not taken from the body.
- `X-Transaction-Pin` (string, optional) — Transaction PIN of the operator in `X-Acting-Document`. Required on cashout routes when the credential enforces a PIN (`428 pin_required`).
- `X-Acting-Ip` (string, optional) — Real IP of the end user, for integrator credentials calling on their behalf. This is the IP evaluated against `cashoutSourceIps` — without it the check would see your server's IP. Ignored for delegated credentials, where the connection IP is already the right one.
- `X-Acting-User-Agent` (string, optional) — Optional user-agent of the end user's browser or app, for integrator credentials calling on their behalf. Feeds risk analysis only: an invalid or oversized value is dropped and the payment still proceeds. Ignored for delegated credentials.
- `X-Acting-Device-Id` (string, optional) — Optional device fingerprint or identifier from the integrator's own system. Risk analysis only; never required and never a reason to reject the payment. Ignored for delegated credentials.
- `X-Acting-Session-Id` (string, optional) — Optional session id of the end user in the integrator's system. Risk analysis only; never required and never a reason to reject the payment. Ignored for delegated credentials.
- `X-Acting-Geo` (string, optional) — Optional `latitude,longitude` in decimal degrees. Out of range or malformed values are dropped. Risk analysis only. Ignored for delegated credentials.

### Body (application/json)

This endpoint expects a TEDOutRequest.

- `value` (double, required) — Amount in BRL, from R$ 0.01 through R$ 14,999.99, max 2 decimals.
- `bankCode` (string, required) — Destination bank Compe code — 3 digits (e.g. 001, 237, 341). TED does not accept ISPB: an 8-digit value is rejected with `400 invalid_bank_code`. For PIX by bank account, ISPB is accepted (`bankIspb`).
- `branch` (string, required) — Destination branch, digits only.
- `account` (string, required) — Destination account number, digits only (no final check digit).
- `taxNumber` (string, required) — Recipient CPF (11) or CNPJ (14) digits, no punctuation.
- `holderName` (string, required) — Recipient legal/full name.
- `accountType` (enum, optional, default: CHECKING) — Destination account type. Defaults to CHECKING if omitted.
  - Allowed values: `CHECKING`, `SAVINGS`, `PAYMENT`, `SALARY`
- `description` (string, optional) — Optional free-form message (NF number, reference, etc.).
- `identifier` (string, optional) — Integrator correlation key forwarded to the settlement bank and echoed in TED webhooks (`ted.out.*`). Max 38 chars `[A-Za-z0-9._-]`. Distinct from the `Idempotency-Key` header (HTTP attempt identity). Auto-generated hex UUID (32 chars) if omitted.

## Response

### 200

Idempotent retry — returns the existing TED state.

- `tedId` (string, required) — Internal TED ID (format `ted-{identifier}`). Use to query status.
- `status` (enum, required) — PROCESSING when the workflow started successfully; ACCEPTED when the workflow could not be started immediately (poll later).
  - Allowed values: `PROCESSING`, `ACCEPTED`
- `workflowId` (string, optional)
- `runId` (string, optional)
- `idempotencyKey` (string, optional)
- `identifier` (string, optional)
- `amount` (double, optional)
- `destination` (TedOutResponseDestination, optional)
- `description` (string, optional)
- `info` (string, optional) — Notes about the asynchronous nature of TED.

### 202

TED accepted and queued for settlement (status PROCESSING).

- `tedId` (string, required) — Internal TED ID (format `ted-{identifier}`). Use to query status.
- `status` (enum, required) — PROCESSING when the workflow started successfully; ACCEPTED when the workflow could not be started immediately (poll later).
  - Allowed values: `PROCESSING`, `ACCEPTED`
- `workflowId` (string, optional)
- `runId` (string, optional)
- `idempotencyKey` (string, optional)
- `identifier` (string, optional)
- `amount` (double, optional)
- `destination` (TedOutResponseDestination, optional)
- `description` (string, optional)
- `info` (string, optional) — Notes about the asynchronous nature of TED.

## Errors

### 400 Bad Request Error

Invalid request sent by client.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 403 Forbidden Error

User has no role on this account's tenant.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 500 Internal Server Error

Unexpected server error.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 503 Service Unavailable Error

Settlement bank or the payment workflow is temporarily unavailable.

- `errorCode` (string, required) — Stable machine-readable code. See `ErrorCode` for the known values.
- `message` (string, required) — Human-readable explanation (pt-BR). Presentation only; may change.
- `docs` (string, optional) — Link to this code in the public error catalogue.
- `requestId` (string, optional) — Gateway request id. Quote it when contacting support.
- `details` (map from string to any, optional) — Optional machine-readable context for the specific `errorCode` (for example `kind` on `identity_verification_monthly_limit_exceeded`, `maxBytes` on `payload_too_large`, `attemptsRemaining` on `facetec_attempts_exhausted`). Keys are documented per operation; absent when the code carries no extra context.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

## Types

### TedOutResponseDestination

- `bankCode` (string, optional)
- `branch` (string, optional)
- `account` (string, optional)
- `accountType` (string, optional)
- `taxNumber` (string, optional)
- `holderName` (string, optional)

### ErrorResponsePartner

Raw error from the settlement bank, when the failure came from it. Diagnostic only.

- `code` (string, optional)
- `message` (string, optional)
- `field` (string, optional) — Field the partner pointed at, when any.

## Examples

### TED_createTEDOut_example

**Request**

```json
{
  "value": 5000,
  "bankCode": "001",
  "branch": "1234",
  "account": "56789",
  "taxNumber": "12345678900",
  "holderName": "JOAO DA SILVA",
  "accountType": "CHECKING",
  "description": "Pagamento de fornecedor NF 12345",
  "identifier": "fornecedor-acme-2026-05"
}
```

**Response**

```json
{
  "tedId": "ted-fornecedor-acme-2026-05",
  "status": "PROCESSING",
  "workflowId": "ted-out-ted-fornecedor-acme-2026-05",
  "runId": "string",
  "idempotencyKey": "string",
  "identifier": "string",
  "amount": 1.1,
  "destination": {
    "bankCode": "string",
    "branch": "string",
    "account": "string",
    "accountType": "string",
    "taxNumber": "string",
    "holderName": "string"
  },
  "description": "string",
  "info": "string"
}
```

**SDK Code**

```python TED_createTEDOut_example
import requests

url = "https://tenant.api.corpx.com/v1/accounts/accountId/ted/out"

payload = {
    "value": 5000,
    "bankCode": "001",
    "branch": "1234",
    "account": "56789",
    "taxNumber": "12345678900",
    "holderName": "JOAO DA SILVA",
    "accountType": "CHECKING",
    "description": "Pagamento de fornecedor NF 12345",
    "identifier": "fornecedor-acme-2026-05"
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript TED_createTEDOut_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/ted/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"value":5000,"bankCode":"001","branch":"1234","account":"56789","taxNumber":"12345678900","holderName":"JOAO DA SILVA","accountType":"CHECKING","description":"Pagamento de fornecedor NF 12345","identifier":"fornecedor-acme-2026-05"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go TED_createTEDOut_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://tenant.api.corpx.com/v1/accounts/accountId/ted/out"

	payload := strings.NewReader("{\n  \"value\": 5000,\n  \"bankCode\": \"001\",\n  \"branch\": \"1234\",\n  \"account\": \"56789\",\n  \"taxNumber\": \"12345678900\",\n  \"holderName\": \"JOAO DA SILVA\",\n  \"accountType\": \"CHECKING\",\n  \"description\": \"Pagamento de fornecedor NF 12345\",\n  \"identifier\": \"fornecedor-acme-2026-05\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("X-Acting-Geo", "-22.9068,-43.1729")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby TED_createTEDOut_example
require 'uri'
require 'net/http'

url = URI("https://tenant.api.corpx.com/v1/accounts/accountId/ted/out")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = 'Idempotency-Key'
request["X-Acting-Geo"] = '-22.9068,-43.1729'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"value\": 5000,\n  \"bankCode\": \"001\",\n  \"branch\": \"1234\",\n  \"account\": \"56789\",\n  \"taxNumber\": \"12345678900\",\n  \"holderName\": \"JOAO DA SILVA\",\n  \"accountType\": \"CHECKING\",\n  \"description\": \"Pagamento de fornecedor NF 12345\",\n  \"identifier\": \"fornecedor-acme-2026-05\"\n}"

response = http.request(request)
puts response.read_body
```

```java TED_createTEDOut_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://tenant.api.corpx.com/v1/accounts/accountId/ted/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"value\": 5000,\n  \"bankCode\": \"001\",\n  \"branch\": \"1234\",\n  \"account\": \"56789\",\n  \"taxNumber\": \"12345678900\",\n  \"holderName\": \"JOAO DA SILVA\",\n  \"accountType\": \"CHECKING\",\n  \"description\": \"Pagamento de fornecedor NF 12345\",\n  \"identifier\": \"fornecedor-acme-2026-05\"\n}")
  .asString();
```

```php TED_createTEDOut_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://tenant.api.corpx.com/v1/accounts/accountId/ted/out', [
  'body' => '{
  "value": 5000,
  "bankCode": "001",
  "branch": "1234",
  "account": "56789",
  "taxNumber": "12345678900",
  "holderName": "JOAO DA SILVA",
  "accountType": "CHECKING",
  "description": "Pagamento de fornecedor NF 12345",
  "identifier": "fornecedor-acme-2026-05"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

echo $response->getBody();
```

```csharp TED_createTEDOut_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/ted/out");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "Idempotency-Key");
request.AddHeader("X-Acting-Geo", "-22.9068,-43.1729");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"value\": 5000,\n  \"bankCode\": \"001\",\n  \"branch\": \"1234\",\n  \"account\": \"56789\",\n  \"taxNumber\": \"12345678900\",\n  \"holderName\": \"JOAO DA SILVA\",\n  \"accountType\": \"CHECKING\",\n  \"description\": \"Pagamento de fornecedor NF 12345\",\n  \"identifier\": \"fornecedor-acme-2026-05\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift TED_createTEDOut_example
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "value": 5000,
  "bankCode": "001",
  "branch": "1234",
  "account": "56789",
  "taxNumber": "12345678900",
  "holderName": "JOAO DA SILVA",
  "accountType": "CHECKING",
  "description": "Pagamento de fornecedor NF 12345",
  "identifier": "fornecedor-acme-2026-05"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://tenant.api.corpx.com/v1/accounts/accountId/ted/out")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```

### TED_createTEDOut_example

**Request**

```json
{
  "value": 5000,
  "bankCode": "001",
  "branch": "1234",
  "account": "56789",
  "taxNumber": "12345678900",
  "holderName": "JOAO DA SILVA",
  "accountType": "CHECKING",
  "description": "Pagamento de fornecedor NF 12345",
  "identifier": "fornecedor-acme-2026-05"
}
```

**Response**

```json
{
  "tedId": "ted-fornecedor-acme-2026-05",
  "status": "PROCESSING",
  "workflowId": "ted-out-ted-fornecedor-acme-2026-05",
  "runId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f",
  "idempotencyKey": "9a5f8c2e-1b3d-4e6f-8a7b-0c1d2e3f4a5b",
  "identifier": "order-12345",
  "amount": 150.75,
  "destination": {
    "bankCode": "36741675",
    "branch": "0001",
    "account": "200037834",
    "accountType": "PIX",
    "taxNumber": "12345678000190"
  },
  "description": "Pagamento pedido #12345",
  "info": "Pagamento pedido #12345"
}
```

**SDK Code**

```python TED_createTEDOut_example
import requests

url = "https://tenant.api.corpx.com/v1/accounts/accountId/ted/out"

payload = {
    "value": 5000,
    "bankCode": "001",
    "branch": "1234",
    "account": "56789",
    "taxNumber": "12345678900",
    "holderName": "JOAO DA SILVA",
    "accountType": "CHECKING",
    "description": "Pagamento de fornecedor NF 12345",
    "identifier": "fornecedor-acme-2026-05"
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript TED_createTEDOut_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/ted/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"value":5000,"bankCode":"001","branch":"1234","account":"56789","taxNumber":"12345678900","holderName":"JOAO DA SILVA","accountType":"CHECKING","description":"Pagamento de fornecedor NF 12345","identifier":"fornecedor-acme-2026-05"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go TED_createTEDOut_example
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://tenant.api.corpx.com/v1/accounts/accountId/ted/out"

	payload := strings.NewReader("{\n  \"value\": 5000,\n  \"bankCode\": \"001\",\n  \"branch\": \"1234\",\n  \"account\": \"56789\",\n  \"taxNumber\": \"12345678900\",\n  \"holderName\": \"JOAO DA SILVA\",\n  \"accountType\": \"CHECKING\",\n  \"description\": \"Pagamento de fornecedor NF 12345\",\n  \"identifier\": \"fornecedor-acme-2026-05\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("X-Acting-Geo", "-22.9068,-43.1729")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby TED_createTEDOut_example
require 'uri'
require 'net/http'

url = URI("https://tenant.api.corpx.com/v1/accounts/accountId/ted/out")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Idempotency-Key"] = 'Idempotency-Key'
request["X-Acting-Geo"] = '-22.9068,-43.1729'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"value\": 5000,\n  \"bankCode\": \"001\",\n  \"branch\": \"1234\",\n  \"account\": \"56789\",\n  \"taxNumber\": \"12345678900\",\n  \"holderName\": \"JOAO DA SILVA\",\n  \"accountType\": \"CHECKING\",\n  \"description\": \"Pagamento de fornecedor NF 12345\",\n  \"identifier\": \"fornecedor-acme-2026-05\"\n}"

response = http.request(request)
puts response.read_body
```

```java TED_createTEDOut_example
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://tenant.api.corpx.com/v1/accounts/accountId/ted/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"value\": 5000,\n  \"bankCode\": \"001\",\n  \"branch\": \"1234\",\n  \"account\": \"56789\",\n  \"taxNumber\": \"12345678900\",\n  \"holderName\": \"JOAO DA SILVA\",\n  \"accountType\": \"CHECKING\",\n  \"description\": \"Pagamento de fornecedor NF 12345\",\n  \"identifier\": \"fornecedor-acme-2026-05\"\n}")
  .asString();
```

```php TED_createTEDOut_example
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://tenant.api.corpx.com/v1/accounts/accountId/ted/out', [
  'body' => '{
  "value": 5000,
  "bankCode": "001",
  "branch": "1234",
  "account": "56789",
  "taxNumber": "12345678900",
  "holderName": "JOAO DA SILVA",
  "accountType": "CHECKING",
  "description": "Pagamento de fornecedor NF 12345",
  "identifier": "fornecedor-acme-2026-05"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

echo $response->getBody();
```

```csharp TED_createTEDOut_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/ted/out");
var request = new RestRequest(Method.POST);
request.AddHeader("Idempotency-Key", "Idempotency-Key");
request.AddHeader("X-Acting-Geo", "-22.9068,-43.1729");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"value\": 5000,\n  \"bankCode\": \"001\",\n  \"branch\": \"1234\",\n  \"account\": \"56789\",\n  \"taxNumber\": \"12345678900\",\n  \"holderName\": \"JOAO DA SILVA\",\n  \"accountType\": \"CHECKING\",\n  \"description\": \"Pagamento de fornecedor NF 12345\",\n  \"identifier\": \"fornecedor-acme-2026-05\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift TED_createTEDOut_example
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "value": 5000,
  "bankCode": "001",
  "branch": "1234",
  "account": "56789",
  "taxNumber": "12345678900",
  "holderName": "JOAO DA SILVA",
  "accountType": "CHECKING",
  "description": "Pagamento de fornecedor NF 12345",
  "identifier": "fornecedor-acme-2026-05"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://tenant.api.corpx.com/v1/accounts/accountId/ted/out")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```