> This page is for Internet banking (beta).

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

# Execute Pix outbound transfer (via Pix Key)

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

Executes a PIX transfer directly to a PIX key.

**Balance verification**: The system automatically checks if there is sufficient
available balance before executing the transfer.

**Supported key types**:

* `CPF` - Recipient's CPF (11 digits, numbers only)
* `CNPJ` - Recipient's CNPJ (14 digits, numbers only)
* `EMAIL` - Recipient's email address
* `PHONE` - Phone with +55 and area code (e.g., +5511999999999)
* `EVP` - Random key (UUID v4)

**Tip**: To pay a QR Code, use `POST /v1/accounts/{accountId}/pix/out/qr-code/async`
(preferred). The synchronous `/pix/out/qr-code` endpoint is deprecated.

**Tip**: To send a PIX using bank account details (ISPB, branch, account number) instead of a PIX key, use `POST /v1/accounts/{accountId}/pix/out/bank-account`.

**Sync rate limit**: This endpoint applies per-account rate limiting (current default: 100 req/min, configurable by policy).
In the next days, the default for synchronous requests is planned to be adjusted to `10 req/min`.
When exceeded, it returns `429 rate_limit_exceeded` with the current limit and a recommendation to use async cashout.

**Breaking behavior change**: Partner timeout for sync PIX OUT returns `207 Multi-Status` (previously `504`).
In this scenario, always check statement/payment status before retrying.

**Immediate rejections** (v2.24.0): when the settlement bank refuses the transfer right away
(anti-fraud or insufficient settlement funds), the endpoint responds `422 FAILED` immediately
with `errorCode` (`partner_rejected` / `insufficient_funds`) and `errorReason`. Transfers held
for risk analysis show as `PENDING_APPROVAL` on payment lookups and wait up to \~25 minutes for
the final outcome (delivered via `pix.out.completed` / `pix.out.failed` webhooks) before
marking `TIMEOUT`.

**Held by the settlement bank** (v2.64.0): while the order is held, payment lookups and the
`pix.out.timeout` webhook carry `hold.owner: "partner"` plus `hold.reason`, and the raw state
in `partnerStatus`/`partnerStatusId`. `PENDING_APPROVAL` never means an approval is pending on
your side or on ours. `TIMEOUT` is indeterminate, not final: we keep polling the settlement
bank for up to 7 days and, if it settles or rejects the order in that window, you receive
`pix.out.completed` / `pix.out.failed` with `late: true` and the same `paymentId`.

Reference: https://docs.api.corpx.com/ib/referencia/pix/create-pix-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.
- `X-Request-Timestamp` (string, required) — Unix seconds. Required on the signed host; tolerance is 300s either way (`403 request_timestamp_skew`).
- `X-Content-SHA256` (string, required) — Lowercase hex SHA-256 of the body. An empty body hashes the empty string, so the header is always present. Mismatch returns `400 body_hash_mismatch`.
- `X-Request-Signature` (string, required) — Detached JWS (`<protected>..<signature>`, ES256 or PS256) over `METHOD\nPATH?QUERY\nTIMESTAMP\nIDEMPOTENCY_KEY_OR_EMPTY\nX_CONTENT_SHA256`.

### Body (application/json)

This endpoint expects a PixOutRequest.

- `accountId` (string, required) — Source account identifier (UUID).
- `keyType` (enum, required) — Recipient's PIX key type: - `CPF` - CPF (11 digits, numbers only) - `CNPJ` - CNPJ (14 digits, numbers only) - `EMAIL` - Email address - `PHONE` - Phone with country code (+5511999999999) - `EVP` - Random key (UUID v4)
  - Allowed values: `CPF`, `CNPJ`, `EMAIL`, `PHONE`, `EVP`
- `key` (string, required) — Recipient's PIX key value. Format depends on the provided `keyType`.
- `amount` (double, required) — Transfer amount in BRL. Max 2 decimal places (e.g., 150.75 for R$150,75).
- `currency` (enum, required, default: BRL) — Currency code (only BRL supported).
  - Allowed values: `BRL`
- `description` (string, optional) — Transfer description (visible to recipient).
- `identifier` (string, optional) — Integrator-provided identifier for tracking and reconciliation. Appears in the statement when the payment is reconciled.
- `metadata` (map from string to any, optional) — Additional metadata (not sent to recipient).

## Response

### 202

PIX transfer accepted/executed.

- `paymentId` (string, required) — Internal payment intent identifier (tracking/reconciliation).
- `status` (enum, required) — Canonical status: - `COMPLETED` - settled (HTTP 200) - `FAILED` - rejected (HTTP 422; see `errorCode`/`errorReason`) - `TIMEOUT` - indeterminate; request reached the partner (HTTP 202; check the statement before retrying) - `PENDING` / `PENDING_APPROVAL` / `PROCESSING` - not terminal yet (HTTP 202)
  - Allowed values: `COMPLETED`, `FAILED`, `TIMEOUT`, `PENDING`, `PENDING_APPROVAL`, `PROCESSING`
- `identifier` (string, required) — Business identifier (client-provided or auto-generated UUID).
- `transactionId` (string, optional) — Transaction identifier in the system.
- `endToEndId` (string, optional) — BACEN end-to-end PIX identifier (present once settled).
- `errorCode` (string, optional) — Error code (present when `FAILED`).
- `errorReason` (string, optional) — Error reason (present when `FAILED`).
- `completedAt` (datetime, optional) — Completion timestamp (UTC).
- `idempotencyKey` (string, optional)
- `workflowId` (string, optional) — Durable workflow identifier.
- `warning` (string, optional) — Present on indeterminate (`TIMEOUT`) results.

### 207

Partner timeout. Transfer may have been executed; confirm in statement/payment status before retrying.

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

## Errors

### 400 Bad Request Error

Invalid request (invalid key, insufficient balance, etc.)

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

### 409 Conflict Error

Request conflicts with the current state of the resource.

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

### 422 Unprocessable Entity Error

Business validation rejection from partner (e.g., PIX key not found/inactive), or rejection by a policy rule configured for the account/tenant (`policy_denied`).

- `CreatePixOutRequestUnprocessableEntityError`
  - ErrorResponse: ErrorResponse
  - PolicyDeniedResponse: PolicyDeniedResponse

### 429 Too Many Requests Error

Synchronous PIX OUT rate limit exceeded for the account.

- `errorCode` (string, required)
- `message` (string, required)
- `currentRateLimit` (integer, required)
- `scope` (string, required)
- `suggestion` (string, required)
- `recommendedAction` (string, optional)

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

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

### 504 Gateway Timeout Error

Timeout while contacting banking partner.

- `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

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

### ErrorResponse

Standard error body. `errorCode` is the stable contract — branch on it, never on `message`. The catalogue of codes (with HTTP status, retryability and what to do) is generated from the gateway source and published at `docs`; `ErrorCode` lists the known values but new codes may appear without a breaking change, so treat unknown values as a generic error of the same HTTP status.

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

### PolicyDeniedResponse

Rejection by a policy rule configured for the account or tenant. Same shape as `ErrorResponse` plus the list of rules that were violated.

- `errorCode` (enum, required)
  - Allowed values: `policy_denied`
- `message` (string, required) — All violation messages, joined by `; `.
- `violations` (list of PolicyDeniedResponseViolationsItems, required)

### PolicyDeniedResponseViolationsItems

- `rule` (string, required) — Rule identifier. PIX Out rules carry no prefix: `pixOutDisabled`, `cpfCnpjBlacklist`, `sameOwnershipOnly`, `operatingHours`, `allowedPersonTypes`. PIX out `maxAmount` and `nightMaxAmount` are no longer emitted; an amount refusal is `limit_exceeded_transaction`. The other sections are prefixed: `qrCode.canCreateStatic`, `qrCode.canCreateDynamic`, `qrCode.minAmount`, `qrCode.maxAmount`, `qrCode.maxIssuesPerDay`, `qrCode.maxIssuesPerMonth`, `keys.canCreate`, `keys.maxKeys`, `refund.disabled`, `refund.maxAmount`. The MED rate rules (`med.maxRatePercent`, `med.critical.maxRatePercent`) never come in a 422: they block the account after a dispute is received and only appear in the `policy.violation` webhook.
- `message` (string, required)

## Examples

### Transfer completed (HTTP 200)

**Response**

```json
{
  "paymentId": "pay_2f4a0f88-2147-49f2-a4e2-4f7b9f6c0f7a",
  "status": "COMPLETED",
  "identifier": "fatura-jan2026",
  "transactionId": "txn-abc123-def456",
  "endToEndId": "E12345678202301011234abcdefghijkl",
  "completedAt": "2026-01-28T15:00:02Z",
  "workflowId": "pix-out-{accountId}-{identifier}"
}
```

**SDK Code**

```python Transfer completed (HTTP 200)
import requests

url = "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>"
}

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

print(response.json())
```

```javascript Transfer completed (HTTP 200)
const url = 'https://client.api.corpx.com/v1/accounts/accountId/pix/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>'
  }
};

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

```go Transfer completed (HTTP 200)
package main

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

func main() {

	url := "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

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

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("X-Acting-Geo", "-22.9068,-43.1729")
	req.Header.Add("X-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby Transfer completed (HTTP 200)
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'

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

```java Transfer completed (HTTP 200)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/accounts/accountId/pix/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Transfer completed (HTTP 200)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/pix/out', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp Transfer completed (HTTP 200)
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Transfer completed (HTTP 200)
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>"
]

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

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()
```

### Transfer pending (HTTP 202)

**Response**

```json
{
  "paymentId": "pay_2f4a0f88-2147-49f2-a4e2-4f7b9f6c0f7a",
  "status": "PENDING",
  "identifier": "fatura-jan2026",
  "transactionId": "txn-abc123-def789",
  "workflowId": "pix-out-{accountId}-{identifier}"
}
```

**SDK Code**

```python Transfer pending (HTTP 202)
import requests

url = "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>"
}

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

print(response.json())
```

```javascript Transfer pending (HTTP 202)
const url = 'https://client.api.corpx.com/v1/accounts/accountId/pix/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>'
  }
};

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

```go Transfer pending (HTTP 202)
package main

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

func main() {

	url := "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

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

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("X-Acting-Geo", "-22.9068,-43.1729")
	req.Header.Add("X-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby Transfer pending (HTTP 202)
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'

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

```java Transfer pending (HTTP 202)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/accounts/accountId/pix/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Transfer pending (HTTP 202)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/pix/out', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp Transfer pending (HTTP 202)
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Transfer pending (HTTP 202)
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>"
]

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

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()
```

### Partner timeout with warning

**Response**

```json
{
  "errorCode": "partner_timeout",
  "message": "Partner did not respond in time. The transfer MAY have been executed. Check your statement and payment status using paymentId: 2f4a0f88-2147-49f2-a4e2-4f7b9f6c0f7a before retrying."
}
```

**SDK Code**

```python Partner timeout with warning
import requests

url = "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "X-Tenant-Id": "X-Tenant-Id",
    "Authorization": "Bearer <token>"
}

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

print(response.json())
```

```javascript Partner timeout with warning
const url = 'https://client.api.corpx.com/v1/accounts/accountId/pix/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>'
  }
};

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

```go Partner timeout with warning
package main

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

func main() {

	url := "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

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

	req.Header.Add("Idempotency-Key", "Idempotency-Key")
	req.Header.Add("X-Acting-Geo", "-22.9068,-43.1729")
	req.Header.Add("X-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	req.Header.Add("X-Tenant-Id", "X-Tenant-Id")
	req.Header.Add("Authorization", "Bearer <token>")

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

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

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

}
```

```ruby Partner timeout with warning
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'

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

```java Partner timeout with warning
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/accounts/accountId/pix/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Partner timeout with warning
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/pix/out', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp Partner timeout with warning
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Partner timeout with warning
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>"
]

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

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()
```

### PIX to CPF

**Request**

```json
{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "CPF",
  "key": "12345678900",
  "amount": 150,
  "currency": "BRL",
  "description": "Service payment",
  "identifier": "order-123"
}
```

**Response**

```json
{
  "paymentId": "pay_2f4a0f88-2147-49f2-a4e2-4f7b9f6c0f7a",
  "status": "COMPLETED",
  "identifier": "fatura-jan2026",
  "transactionId": "txn-abc123-def456",
  "endToEndId": "E12345678202301011234abcdefghijkl",
  "completedAt": "2026-01-28T15:00:02Z",
  "workflowId": "pix-out-{accountId}-{identifier}"
}
```

**SDK Code**

```python PIX to CPF
import requests

url = "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

payload = {
    "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
    "keyType": "CPF",
    "key": "12345678900",
    "amount": 150,
    "currency": "BRL",
    "description": "Service payment",
    "identifier": "order-123"
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "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 PIX to CPF
const url = 'https://client.api.corpx.com/v1/accounts/accountId/pix/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"accountId":"2e6b725b-84a0-400d-8740-22a5ba0f23e6","keyType":"CPF","key":"12345678900","amount":150,"currency":"BRL","description":"Service payment","identifier":"order-123"}'
};

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

```go PIX to CPF
package main

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

func main() {

	url := "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

	payload := strings.NewReader("{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"CPF\",\n  \"key\": \"12345678900\",\n  \"amount\": 150,\n  \"currency\": \"BRL\",\n  \"description\": \"Service payment\",\n  \"identifier\": \"order-123\"\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-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	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 PIX to CPF
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"CPF\",\n  \"key\": \"12345678900\",\n  \"amount\": 150,\n  \"currency\": \"BRL\",\n  \"description\": \"Service payment\",\n  \"identifier\": \"order-123\"\n}"

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

```java PIX to CPF
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/accounts/accountId/pix/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"CPF\",\n  \"key\": \"12345678900\",\n  \"amount\": 150,\n  \"currency\": \"BRL\",\n  \"description\": \"Service payment\",\n  \"identifier\": \"order-123\"\n}")
  .asString();
```

```php PIX to CPF
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/pix/out', [
  'body' => '{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "CPF",
  "key": "12345678900",
  "amount": 150,
  "currency": "BRL",
  "description": "Service payment",
  "identifier": "order-123"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp PIX to CPF
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"CPF\",\n  \"key\": \"12345678900\",\n  \"amount\": 150,\n  \"currency\": \"BRL\",\n  \"description\": \"Service payment\",\n  \"identifier\": \"order-123\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift PIX to CPF
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "CPF",
  "key": "12345678900",
  "amount": 150,
  "currency": "BRL",
  "description": "Service payment",
  "identifier": "order-123"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/accounts/accountId/pix/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()
```

### PIX to Email

**Request**

```json
{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "EMAIL",
  "key": "vendor@company.com.br",
  "amount": 75.5,
  "currency": "BRL",
  "description": "Invoice 456 payment"
}
```

**Response**

```json
{
  "paymentId": "pay_2f4a0f88-2147-49f2-a4e2-4f7b9f6c0f7a",
  "status": "COMPLETED",
  "identifier": "fatura-jan2026",
  "transactionId": "txn-abc123-def456",
  "endToEndId": "E12345678202301011234abcdefghijkl",
  "completedAt": "2026-01-28T15:00:02Z",
  "workflowId": "pix-out-{accountId}-{identifier}"
}
```

**SDK Code**

```python PIX to Email
import requests

url = "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

payload = {
    "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
    "keyType": "EMAIL",
    "key": "vendor@company.com.br",
    "amount": 75.5,
    "currency": "BRL",
    "description": "Invoice 456 payment"
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "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 PIX to Email
const url = 'https://client.api.corpx.com/v1/accounts/accountId/pix/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"accountId":"2e6b725b-84a0-400d-8740-22a5ba0f23e6","keyType":"EMAIL","key":"vendor@company.com.br","amount":75.5,"currency":"BRL","description":"Invoice 456 payment"}'
};

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

```go PIX to Email
package main

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

func main() {

	url := "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

	payload := strings.NewReader("{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"EMAIL\",\n  \"key\": \"vendor@company.com.br\",\n  \"amount\": 75.5,\n  \"currency\": \"BRL\",\n  \"description\": \"Invoice 456 payment\"\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-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	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 PIX to Email
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"EMAIL\",\n  \"key\": \"vendor@company.com.br\",\n  \"amount\": 75.5,\n  \"currency\": \"BRL\",\n  \"description\": \"Invoice 456 payment\"\n}"

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

```java PIX to Email
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/accounts/accountId/pix/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"EMAIL\",\n  \"key\": \"vendor@company.com.br\",\n  \"amount\": 75.5,\n  \"currency\": \"BRL\",\n  \"description\": \"Invoice 456 payment\"\n}")
  .asString();
```

```php PIX to Email
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/pix/out', [
  'body' => '{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "EMAIL",
  "key": "vendor@company.com.br",
  "amount": 75.5,
  "currency": "BRL",
  "description": "Invoice 456 payment"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp PIX to Email
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"EMAIL\",\n  \"key\": \"vendor@company.com.br\",\n  \"amount\": 75.5,\n  \"currency\": \"BRL\",\n  \"description\": \"Invoice 456 payment\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift PIX to Email
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "EMAIL",
  "key": "vendor@company.com.br",
  "amount": 75.5,
  "currency": "BRL",
  "description": "Invoice 456 payment"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/accounts/accountId/pix/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()
```

### PIX to Phone

**Request**

```json
{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "PHONE",
  "key": "+5511999999999",
  "amount": 200,
  "currency": "BRL",
  "description": "Transfer"
}
```

**Response**

```json
{
  "paymentId": "pay_2f4a0f88-2147-49f2-a4e2-4f7b9f6c0f7a",
  "status": "COMPLETED",
  "identifier": "fatura-jan2026",
  "transactionId": "txn-abc123-def456",
  "endToEndId": "E12345678202301011234abcdefghijkl",
  "completedAt": "2026-01-28T15:00:02Z",
  "workflowId": "pix-out-{accountId}-{identifier}"
}
```

**SDK Code**

```python PIX to Phone
import requests

url = "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

payload = {
    "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
    "keyType": "PHONE",
    "key": "+5511999999999",
    "amount": 200,
    "currency": "BRL",
    "description": "Transfer"
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "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 PIX to Phone
const url = 'https://client.api.corpx.com/v1/accounts/accountId/pix/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"accountId":"2e6b725b-84a0-400d-8740-22a5ba0f23e6","keyType":"PHONE","key":"+5511999999999","amount":200,"currency":"BRL","description":"Transfer"}'
};

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

```go PIX to Phone
package main

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

func main() {

	url := "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

	payload := strings.NewReader("{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"PHONE\",\n  \"key\": \"+5511999999999\",\n  \"amount\": 200,\n  \"currency\": \"BRL\",\n  \"description\": \"Transfer\"\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-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	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 PIX to Phone
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"PHONE\",\n  \"key\": \"+5511999999999\",\n  \"amount\": 200,\n  \"currency\": \"BRL\",\n  \"description\": \"Transfer\"\n}"

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

```java PIX to Phone
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/accounts/accountId/pix/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"PHONE\",\n  \"key\": \"+5511999999999\",\n  \"amount\": 200,\n  \"currency\": \"BRL\",\n  \"description\": \"Transfer\"\n}")
  .asString();
```

```php PIX to Phone
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/pix/out', [
  'body' => '{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "PHONE",
  "key": "+5511999999999",
  "amount": 200,
  "currency": "BRL",
  "description": "Transfer"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp PIX to Phone
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"PHONE\",\n  \"key\": \"+5511999999999\",\n  \"amount\": 200,\n  \"currency\": \"BRL\",\n  \"description\": \"Transfer\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift PIX to Phone
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "PHONE",
  "key": "+5511999999999",
  "amount": 200,
  "currency": "BRL",
  "description": "Transfer"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/accounts/accountId/pix/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()
```

### PIX to Random Key (EVP)

**Request**

```json
{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "EVP",
  "key": "123e4567-e89b-12d3-a456-426614174000",
  "amount": 500,
  "currency": "BRL",
  "description": "Vendor payment"
}
```

**Response**

```json
{
  "paymentId": "pay_2f4a0f88-2147-49f2-a4e2-4f7b9f6c0f7a",
  "status": "COMPLETED",
  "identifier": "fatura-jan2026",
  "transactionId": "txn-abc123-def456",
  "endToEndId": "E12345678202301011234abcdefghijkl",
  "completedAt": "2026-01-28T15:00:02Z",
  "workflowId": "pix-out-{accountId}-{identifier}"
}
```

**SDK Code**

```python PIX to Random Key (EVP)
import requests

url = "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

payload = {
    "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
    "keyType": "EVP",
    "key": "123e4567-e89b-12d3-a456-426614174000",
    "amount": 500,
    "currency": "BRL",
    "description": "Vendor payment"
}
headers = {
    "Idempotency-Key": "Idempotency-Key",
    "X-Acting-Geo": "-22.9068,-43.1729",
    "X-Content-SHA256": "X-Content-SHA256",
    "X-Request-Signature": "X-Request-Signature",
    "X-Request-Timestamp": "X-Request-Timestamp",
    "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 PIX to Random Key (EVP)
const url = 'https://client.api.corpx.com/v1/accounts/accountId/pix/out';
const options = {
  method: 'POST',
  headers: {
    'Idempotency-Key': 'Idempotency-Key',
    'X-Acting-Geo': '-22.9068,-43.1729',
    'X-Content-SHA256': 'X-Content-SHA256',
    'X-Request-Signature': 'X-Request-Signature',
    'X-Request-Timestamp': 'X-Request-Timestamp',
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"accountId":"2e6b725b-84a0-400d-8740-22a5ba0f23e6","keyType":"EVP","key":"123e4567-e89b-12d3-a456-426614174000","amount":500,"currency":"BRL","description":"Vendor payment"}'
};

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

```go PIX to Random Key (EVP)
package main

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

func main() {

	url := "https://client.api.corpx.com/v1/accounts/accountId/pix/out"

	payload := strings.NewReader("{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"EVP\",\n  \"key\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"amount\": 500,\n  \"currency\": \"BRL\",\n  \"description\": \"Vendor payment\"\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-Content-SHA256", "X-Content-SHA256")
	req.Header.Add("X-Request-Signature", "X-Request-Signature")
	req.Header.Add("X-Request-Timestamp", "X-Request-Timestamp")
	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 PIX to Random Key (EVP)
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256"] = 'X-Content-SHA256'
request["X-Request-Signature"] = 'X-Request-Signature'
request["X-Request-Timestamp"] = 'X-Request-Timestamp'
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"EVP\",\n  \"key\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"amount\": 500,\n  \"currency\": \"BRL\",\n  \"description\": \"Vendor payment\"\n}"

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

```java PIX to Random Key (EVP)
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://client.api.corpx.com/v1/accounts/accountId/pix/out")
  .header("Idempotency-Key", "Idempotency-Key")
  .header("X-Acting-Geo", "-22.9068,-43.1729")
  .header("X-Content-SHA256", "X-Content-SHA256")
  .header("X-Request-Signature", "X-Request-Signature")
  .header("X-Request-Timestamp", "X-Request-Timestamp")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"EVP\",\n  \"key\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"amount\": 500,\n  \"currency\": \"BRL\",\n  \"description\": \"Vendor payment\"\n}")
  .asString();
```

```php PIX to Random Key (EVP)
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/pix/out', [
  'body' => '{
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "EVP",
  "key": "123e4567-e89b-12d3-a456-426614174000",
  "amount": 500,
  "currency": "BRL",
  "description": "Vendor payment"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'Idempotency-Key' => 'Idempotency-Key',
    'X-Acting-Geo' => '-22.9068,-43.1729',
    'X-Content-SHA256' => 'X-Content-SHA256',
    'X-Request-Signature' => 'X-Request-Signature',
    'X-Request-Timestamp' => 'X-Request-Timestamp',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp PIX to Random Key (EVP)
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/pix/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-Content-SHA256", "X-Content-SHA256");
request.AddHeader("X-Request-Signature", "X-Request-Signature");
request.AddHeader("X-Request-Timestamp", "X-Request-Timestamp");
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"accountId\": \"2e6b725b-84a0-400d-8740-22a5ba0f23e6\",\n  \"keyType\": \"EVP\",\n  \"key\": \"123e4567-e89b-12d3-a456-426614174000\",\n  \"amount\": 500,\n  \"currency\": \"BRL\",\n  \"description\": \"Vendor payment\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift PIX to Random Key (EVP)
import Foundation

let headers = [
  "Idempotency-Key": "Idempotency-Key",
  "X-Acting-Geo": "-22.9068,-43.1729",
  "X-Content-SHA256": "X-Content-SHA256",
  "X-Request-Signature": "X-Request-Signature",
  "X-Request-Timestamp": "X-Request-Timestamp",
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "accountId": "2e6b725b-84a0-400d-8740-22a5ba0f23e6",
  "keyType": "EVP",
  "key": "123e4567-e89b-12d3-a456-426614174000",
  "amount": 500,
  "currency": "BRL",
  "description": "Vendor payment"
] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://client.api.corpx.com/v1/accounts/accountId/pix/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()
```