> 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 transfer by bank account (sync)

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

Sends a PIX transfer using the recipient's bank account details (ISPB, branch, account number)
instead of a PIX key. Same behavior as `POST /pix/out` but without DICT key lookup.


Reference: https://docs.api.corpx.com/ib/referencia/pix/out-bank-account

## 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-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-Tenant-Id` (string, required) — Tenant context used for authorization and routing.
- `Idempotency-Key` (string, optional) — Optional client-generated idempotency token (recommended for safe retries).
- `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 an object.

- `amount` (double, required) — Amount in BRL
- `bankIspb` (string, required) — Identificador do banco destino. Aceita 2 formatos no mesmo campo: - **COMPE** (3 dígitos, ex.: `"341"` Itaú, `"237"` Bradesco) - **ISPB** (8 dígitos, ex.: `"60701190"` Itaú, `"60746948"` Bradesco) A API normaliza (digits-only) e detecta o formato pelo tamanho, roteando para o campo correto na chamada ao parceiro. Aceita também `"0341"` (COMPE com leading zero legado) e máscaras com pontos/traços (`"60.701.190"`). Pode usar o apelido `bankCode` — semanticamente equivalente. Envie **um** dos dois, não os dois.
- `accountNumber` (string, required) — Recipient account number
- `accountBranch` (string, required) — Recipient branch number
- `documentNumber` (string, required) — Recipient CPF or CNPJ (digits only)
- `name` (string, required) — Recipient full name
- `currency` (string, optional, default: BRL)
- `bankCode` (string, optional) — Apelido para `bankIspb`. Aceita COMPE (3 dígitos) ou ISPB (8 dígitos) — mesma lógica de detecção. Use um OU outro, não os dois.
- `accountType` (enum, optional, default: CHECKING_ACCOUNT) — Account type
  - Allowed values: `CHECKING_ACCOUNT`, `SAVINGS_ACCOUNT`, `PAYMENT`
- `description` (string, optional) — Transfer description
- `identifier` (string, optional) — Integrator-provided identifier for tracking

## Response

### 202

Transfer accepted

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

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

### 422 Unprocessable Entity Error

Rejected by a policy rule (see the Policies and Rules guide). The payload is valid and the caller is authorized — a rule configured by the tenant refused the operation. On PIX Out, rules that depend on the recipient's document are only evaluated here in `BANK_ACCOUNT` mode; in the other modes the recipient is resolved later and the payment fails asynchronously with the same `policy_denied` error code. QR code creation, PIX key creation, and refunds are always decided synchronously in this response.

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

### 429 Too Many Requests Error

Rate limit exceeded — use the async endpoint instead

- `any`

### 502 Bad Gateway Error

Partner error

- `any`

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

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

**Request**

```json
{
  "amount": 150,
  "bankIspb": "60701190",
  "accountNumber": "200037834",
  "accountBranch": "0001",
  "documentNumber": "12345678900",
  "name": "MARIA DA SILVA",
  "currency": "BRL",
  "bankCode": "341",
  "accountType": "CHECKING_ACCOUNT",
  "description": "Pagamento pedido #12345",
  "identifier": "order-12345"
}
```

**Response**

```json
{
  "paymentId": "pay_2f4a0f88-2147-49f2-a4e2-4f7b9f6c0f7a",
  "status": "COMPLETED",
  "identifier": "order-12345",
  "transactionId": "txn-abc123-def456",
  "endToEndId": "E12345678202301011234abcdefghijkl",
  "completedAt": "2026-02-20T08:33:39Z",
  "idempotencyKey": "9a5f8c2e-1b3d-4e6f-8a7b-0c1d2e3f4a5b",
  "workflowId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f"
}
```

**SDK Code**

```python Pix_outBankAccount_example
import requests

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

payload = {
    "amount": 150,
    "bankIspb": "60701190",
    "accountNumber": "200037834",
    "accountBranch": "0001",
    "documentNumber": "12345678900",
    "name": "MARIA DA SILVA",
    "currency": "BRL",
    "bankCode": "341",
    "accountType": "CHECKING_ACCOUNT",
    "description": "Pagamento pedido #12345",
    "identifier": "order-12345"
}
headers = {
    "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_outBankAccount_example
const url = 'https://client.api.corpx.com/v1/accounts/accountId/pix/out/bank-account';
const options = {
  method: 'POST',
  headers: {
    '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: '{"amount":150,"bankIspb":"60701190","accountNumber":"200037834","accountBranch":"0001","documentNumber":"12345678900","name":"MARIA DA SILVA","currency":"BRL","bankCode":"341","accountType":"CHECKING_ACCOUNT","description":"Pagamento pedido #12345","identifier":"order-12345"}'
};

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

```go Pix_outBankAccount_example
package main

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

func main() {

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

	payload := strings.NewReader("{\n  \"amount\": 150,\n  \"bankIspb\": \"60701190\",\n  \"accountNumber\": \"200037834\",\n  \"accountBranch\": \"0001\",\n  \"documentNumber\": \"12345678900\",\n  \"name\": \"MARIA DA SILVA\",\n  \"currency\": \"BRL\",\n  \"bankCode\": \"341\",\n  \"accountType\": \"CHECKING_ACCOUNT\",\n  \"description\": \"Pagamento pedido #12345\",\n  \"identifier\": \"order-12345\"\n}")

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

	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_outBankAccount_example
require 'uri'
require 'net/http'

url = URI("https://client.api.corpx.com/v1/accounts/accountId/pix/out/bank-account")

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

request = Net::HTTP::Post.new(url)
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  \"amount\": 150,\n  \"bankIspb\": \"60701190\",\n  \"accountNumber\": \"200037834\",\n  \"accountBranch\": \"0001\",\n  \"documentNumber\": \"12345678900\",\n  \"name\": \"MARIA DA SILVA\",\n  \"currency\": \"BRL\",\n  \"bankCode\": \"341\",\n  \"accountType\": \"CHECKING_ACCOUNT\",\n  \"description\": \"Pagamento pedido #12345\",\n  \"identifier\": \"order-12345\"\n}"

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

```java Pix_outBankAccount_example
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/bank-account")
  .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  \"amount\": 150,\n  \"bankIspb\": \"60701190\",\n  \"accountNumber\": \"200037834\",\n  \"accountBranch\": \"0001\",\n  \"documentNumber\": \"12345678900\",\n  \"name\": \"MARIA DA SILVA\",\n  \"currency\": \"BRL\",\n  \"bankCode\": \"341\",\n  \"accountType\": \"CHECKING_ACCOUNT\",\n  \"description\": \"Pagamento pedido #12345\",\n  \"identifier\": \"order-12345\"\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://client.api.corpx.com/v1/accounts/accountId/pix/out/bank-account', [
  'body' => '{
  "amount": 150,
  "bankIspb": "60701190",
  "accountNumber": "200037834",
  "accountBranch": "0001",
  "documentNumber": "12345678900",
  "name": "MARIA DA SILVA",
  "currency": "BRL",
  "bankCode": "341",
  "accountType": "CHECKING_ACCOUNT",
  "description": "Pagamento pedido #12345",
  "identifier": "order-12345"
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    '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_outBankAccount_example
using RestSharp;

var client = new RestClient("https://client.api.corpx.com/v1/accounts/accountId/pix/out/bank-account");
var request = new RestRequest(Method.POST);
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  \"amount\": 150,\n  \"bankIspb\": \"60701190\",\n  \"accountNumber\": \"200037834\",\n  \"accountBranch\": \"0001\",\n  \"documentNumber\": \"12345678900\",\n  \"name\": \"MARIA DA SILVA\",\n  \"currency\": \"BRL\",\n  \"bankCode\": \"341\",\n  \"accountType\": \"CHECKING_ACCOUNT\",\n  \"description\": \"Pagamento pedido #12345\",\n  \"identifier\": \"order-12345\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Pix_outBankAccount_example
import Foundation

let headers = [
  "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 = [
  "amount": 150,
  "bankIspb": "60701190",
  "accountNumber": "200037834",
  "accountBranch": "0001",
  "documentNumber": "12345678900",
  "name": "MARIA DA SILVA",
  "currency": "BRL",
  "bankCode": "341",
  "accountType": "CHECKING_ACCOUNT",
  "description": "Pagamento pedido #12345",
  "identifier": "order-12345"
] 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/bank-account")! 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()
```