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

# Dispatch a reviewed PIX batch

POST https://tenant.api.corpx.com/v1/accounts/{accountId}/pix/batches/{batchId}/dispatch
Content-Type: application/json

Queues a `REVIEWED` batch with no invalid items. The body must carry
`acknowledged: true` — the caller's statement that the review summary
(amounts, balance and limits) was read. The available balance is
re-checked at dispatch time (`422 pix_batch_insufficient_balance`
starts nothing).

Processing is asynchronous: each item becomes its own PIX out
(`identifier` = item identifier, idempotency `{batchId}_{itemId}`)
and goes through the same limits, policies and `pix.out.*` webhooks
as a single transfer. Batch status becomes `COMPLETED`,
`PARTIAL_FAILED` or `FAILED` and `pix.batch.completed` is delivered.
A repeated dispatch of an already dispatched batch is idempotent
(`200`).

This is a cashout route: account cashout locks and the transaction
PIN / acting-document headers apply exactly as in `POST /pix/out`.

Reference: https://en.docs.api.corpx.com/baas/referencia/pix/dispatch-pix-batch

## 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.
- `batchId` (string, required) — PIX batch identifier (`pxb_…`) returned by the create endpoint.

### Headers

- `X-Tenant-Id` (string, required) — Tenant context used for authorization and routing.
- `X-Acting-Document` (string, optional) — CPF of the human performing the operation. Required on cashout routes when the credential enforces a transaction PIN.
- `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.
- `Idempotency-Key` (string, optional) — Optional client-generated idempotency token (recommended for safe retries).

### Body (application/json)

This endpoint expects an object.

- `acknowledged` (boolean, required) — Must be `true`; confirms the review summary was read.

## Response

### 200

Idempotent repeat; the batch had already been dispatched

- `batchId` (string, required) — Batch identifier (`pxb_…`).
- `name` (string, required) — Optional operator-facing name; empty when omitted.
- `status` (enum, required) — Batch lifecycle. `DRAFT` and `REVIEWED` are editable (editing a `REVIEWED` batch returns it to `DRAFT`). `REVIEWING` is the asynchronous pre-flight. Dispatch requires `REVIEWED`. `COMPLETED`, `PARTIAL_FAILED` and `FAILED` are terminal and the only states with receipts.
  - Allowed values: `DRAFT`, `REVIEWING`, `REVIEWED`, `QUEUED`, `PROCESSING`, `COMPLETED`, `PARTIAL_FAILED`, `FAILED`
- `totalItems` (integer, required) — Number of staged items.
- `totalAmount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `completedItems` (integer, required) — Items settled so far.
- `failedItems` (integer, required) — Items failed so far.
- `limits` (PixBatchLimits, required) — Effective item limit for this account and where it comes from.
- `createdAt` (datetime, required) — Draft creation instant, in UTC.
- `updatedAt` (datetime, required) — Last persisted update, in UTC.
- `statistics` (PixBatchStatistics, required) — Live item counters and amounts.
- `items` (list of PixBatchItem, required) — Current page of items.
- `page` (integer, required) — Current item page.
- `pageSize` (integer, required) — Requested item page size.
- `totalPages` (integer, required) — Number of item pages.
- `hasNext` (boolean, required) — Whether another item page exists.
- `review` (PixBatchReview, optional) — Summary written when the review finishes (or aborts).
- `reviewedAt` (datetime, optional) — Instant the last review finished.
- `acknowledgedAt` (datetime, optional) — Instant the caller acknowledged the review at dispatch.
- `dispatchedAt` (datetime, optional) — Instant the batch was queued.
- `completedAt` (datetime, optional) — Instant every item reached an outcome.

### 202

Batch queued

- `batchId` (string, required) — Batch identifier (`pxb_…`).
- `name` (string, required) — Optional operator-facing name; empty when omitted.
- `status` (enum, required) — Batch lifecycle. `DRAFT` and `REVIEWED` are editable (editing a `REVIEWED` batch returns it to `DRAFT`). `REVIEWING` is the asynchronous pre-flight. Dispatch requires `REVIEWED`. `COMPLETED`, `PARTIAL_FAILED` and `FAILED` are terminal and the only states with receipts.
  - Allowed values: `DRAFT`, `REVIEWING`, `REVIEWED`, `QUEUED`, `PROCESSING`, `COMPLETED`, `PARTIAL_FAILED`, `FAILED`
- `totalItems` (integer, required) — Number of staged items.
- `totalAmount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `completedItems` (integer, required) — Items settled so far.
- `failedItems` (integer, required) — Items failed so far.
- `limits` (PixBatchLimits, required) — Effective item limit for this account and where it comes from.
- `createdAt` (datetime, required) — Draft creation instant, in UTC.
- `updatedAt` (datetime, required) — Last persisted update, in UTC.
- `statistics` (PixBatchStatistics, required) — Live item counters and amounts.
- `items` (list of PixBatchItem, required) — Current page of items.
- `page` (integer, required) — Current item page.
- `pageSize` (integer, required) — Requested item page size.
- `totalPages` (integer, required) — Number of item pages.
- `hasNext` (boolean, required) — Whether another item page exists.
- `review` (PixBatchReview, optional) — Summary written when the review finishes (or aborts).
- `reviewedAt` (datetime, optional) — Instant the last review finished.
- `acknowledgedAt` (datetime, optional) — Instant the caller acknowledged the review at dispatch.
- `dispatchedAt` (datetime, optional) — Instant the batch was queued.
- `completedAt` (datetime, optional) — Instant every item reached an outcome.

## Errors

### 400 Bad Request Error

`pix_batch_too_large` or malformed JSON (`invalid_payload`).

- `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.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 403 Forbidden Error

`feature_disabled`, `pix_batch_account_disabled`, or a cashout lock / PIN failure.

- `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.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 404 Not Found Error

`pix_batch_not_found`.

- `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.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 409 Conflict Error

`pix_batch_not_reviewed`, `pix_batch_acknowledgement_required`, `pix_batch_empty` or `pix_batch_has_invalid_items`.

- `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.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 422 Unprocessable Entity Error

`pix_batch_insufficient_balance` — nothing was started.

- `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.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

### 503 Service Unavailable Error

`workflow_unavailable` — repeat the dispatch to retry.

- `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.
- `partner` (ErrorResponsePartner, optional) — Raw error from the settlement bank, when the failure came from it. Diagnostic only.

## Types

### PixBatchLimits

Effective item limit for this account and where it comes from.

- `maxItems` (integer, required) — Maximum number of items per batch (`pixBatch.maxItems`; default 50).
- `source` (string, required) — Policy level that set the limit (`default`, `tenant` or `account`).

### PixBatchStatistics

Live item counters and amounts.

- `total` (integer, required) — Items in the batch.
- `pending` (integer, required) — Items not yet started.
- `processing` (integer, required) — Items with a PIX out in flight.
- `completed` (integer, required) — Items settled.
- `failed` (integer, required) — Items that ended without settlement.
- `reviewedOk` (integer, required) — Items that passed the review.
- `invalid` (integer, required) — Items flagged by the review.
- `totalAmount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `validAmount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `completedAmount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `failedAmount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `progressPercentage` (double, required) — `(completed + failed) / total × 100`; zero when total is zero.

### PixBatchItem

One staged payment, its review outcome and its execution result.

- `itemId` (string, required) — Batch-local item identifier (`pxi_…`) used by delete and receipt routes.
- `line` (integer, required) — Stable order of this item inside the batch (CSV line order).
- `identifier` (string, required) — Caller-owned identifier.
- `mode` (enum, required) — How the receiver was given.
  - Allowed values: `KEY`, `BANK_ACCOUNT`
- `amount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `description` (string, required) — Free text sent with the PIX.
- `status` (enum, required) — Execution state.
  - Allowed values: `PENDING`, `PROCESSING`, `COMPLETED`, `FAILED`
- `reviewStatus` (enum, required) — Review outcome.
  - Allowed values: `PENDING`, `OK`, `INVALID`
- `receiver` (PixBatchItemReceiver, required) — Receiver as staged (bank-account mode) or as resolved by the review (key mode).
- `createdAt` (datetime, required) — Item staging instant, in UTC.
- `updatedAt` (datetime, required) — Last item update, in UTC.
- `reviewError` (PixBatchItemError, optional) — Stable code plus diagnostic text.
- `error` (PixBatchItemError, optional) — Stable code plus diagnostic text.
- `paymentId` (string, optional) — PIX out payment id once the item was prepared.
- `endToEndId` (string, optional) — End-to-end id when settled.
- `transactionId` (string, optional) — Settlement-bank transaction id when settled.
- `completedAt` (datetime, optional) — Settlement instant.

### PixBatchReview

Summary written when the review finishes (or aborts).

- `reviewedAt` (datetime, required) — Instant the review finished, in UTC.
- `totalItems` (integer, required) — Items in the batch.
- `validItems` (integer, required) — Items that passed every check.
- `invalidItems` (integer, required) — Items flagged `INVALID`; they block dispatch.
- `totalAmount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `validAmount` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `balance` (PixBatchReviewBalance, required) — Available balance snapshot taken by the review.
- `limits` (list of PixBatchReviewLimit, required) — One entry per cashout window.
- `warnings` (list of string, optional) — Non-blocking notices (e.g. balance currently insufficient).
- `error` (string, optional) — Present only when the review aborted.

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

### PixBatchItemReceiver

Receiver as staged (bank-account mode) or as resolved by the review (key mode).

- `name` (string, optional) — Receiver name.
- `documentNumber` (string, optional) — Receiver document; masked when it came from DICT.
- `keyType` (string, optional) — Key type (key mode).
- `key` (string, optional) — PIX key (key mode).
- `bankIspb` (string, optional) — Receiver bank ISPB.
- `bankCode` (string, optional) — Receiver bank COMPE code.
- `accountBranch` (string, optional) — Receiver branch (bank-account mode).
- `accountNumber` (string, optional) — Receiver account number (bank-account mode).
- `accountType` (string, optional) — Receiver account type (bank-account mode).

### PixBatchItemError

Stable code plus diagnostic text.

- `errorCode` (string, required) — Stable machine-readable code.
- `message` (string, required) — Human-readable diagnostic; do not branch on it.

### PixBatchReviewBalance

Available balance snapshot taken by the review.

- `available` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `sufficient` (boolean, required) — Whether `available` covers `validAmount`.
- `checked` (boolean, required) — False when the settlement bank did not answer; a warning is added.

### PixBatchReviewLimit

Comparison of the batch total with one cashout limit window.

- `window` (string, required) — Window label (`daily_out`, `nightly_out`, `monthly`).
- `enforced` (boolean, required) — Whether a ceiling is configured for this window.
- `limit` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `used` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `available` (string, required) — Amount in BRL as a decimal string with two places (`1234.56`).
- `sufficient` (boolean, required) — Whether `available` covers `validAmount` (always true when not enforced).

## Examples

### Pix_dispatchPixBatch_example

**Request**

```json
{
  "acknowledged": true
}
```

**Response**

```json
{
  "batchId": "string",
  "name": "string",
  "status": "DRAFT",
  "totalItems": 1,
  "totalAmount": "1436.85",
  "completedItems": 1,
  "failedItems": 1,
  "limits": {
    "maxItems": 1,
    "source": "string"
  },
  "createdAt": "2024-01-15T09:30:00Z",
  "updatedAt": "2024-01-15T09:30:00Z",
  "statistics": {
    "total": 1,
    "pending": 1,
    "processing": 1,
    "completed": 1,
    "failed": 1,
    "reviewedOk": 1,
    "invalid": 1,
    "totalAmount": "1436.85",
    "validAmount": "1436.85",
    "completedAmount": "1436.85",
    "failedAmount": "1436.85",
    "progressPercentage": 1.1
  },
  "items": [
    {
      "itemId": "string",
      "line": 1,
      "identifier": "string",
      "mode": "KEY",
      "amount": "1436.85",
      "description": "string",
      "status": "PENDING",
      "reviewStatus": "PENDING",
      "receiver": {
        "name": "string",
        "documentNumber": "string",
        "keyType": "string",
        "key": "string",
        "bankIspb": "string",
        "bankCode": "string",
        "accountBranch": "string",
        "accountNumber": "string",
        "accountType": "string"
      },
      "createdAt": "2024-01-15T09:30:00Z",
      "updatedAt": "2024-01-15T09:30:00Z",
      "reviewError": {
        "errorCode": "string",
        "message": "string"
      },
      "error": {
        "errorCode": "string",
        "message": "string"
      },
      "paymentId": "string",
      "endToEndId": "string",
      "transactionId": "string",
      "completedAt": "2024-01-15T09:30:00Z"
    }
  ],
  "page": 1,
  "pageSize": 1,
  "totalPages": 1,
  "hasNext": true,
  "review": {
    "reviewedAt": "2024-01-15T09:30:00Z",
    "totalItems": 1,
    "validItems": 1,
    "invalidItems": 1,
    "totalAmount": "1436.85",
    "validAmount": "1436.85",
    "balance": {
      "available": "1436.85",
      "sufficient": true,
      "checked": true
    },
    "limits": [
      {
        "window": "string",
        "enforced": true,
        "limit": "1436.85",
        "used": "1436.85",
        "available": "1436.85",
        "sufficient": true
      }
    ],
    "warnings": [
      "string"
    ],
    "error": "string"
  },
  "reviewedAt": "2024-01-15T09:30:00Z",
  "acknowledgedAt": "2024-01-15T09:30:00Z",
  "dispatchedAt": "2024-01-15T09:30:00Z",
  "completedAt": "2024-01-15T09:30:00Z"
}
```

**SDK Code**

```python Pix_dispatchPixBatch_example
import requests

url = "https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch"

payload = { "acknowledged": True }
headers = {
    "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_dispatchPixBatch_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch';
const options = {
  method: 'POST',
  headers: {
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"acknowledged":true}'
};

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

```go Pix_dispatchPixBatch_example
package main

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

func main() {

	url := "https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch"

	payload := strings.NewReader("{\n  \"acknowledged\": true\n}")

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

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

url = URI("https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch")

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

request = Net::HTTP::Post.new(url)
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"acknowledged\": true\n}"

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

```java Pix_dispatchPixBatch_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/pix/batches/batchId/dispatch")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"acknowledged\": true\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch', [
  'body' => '{
  "acknowledged": true
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp Pix_dispatchPixBatch_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"acknowledged\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Pix_dispatchPixBatch_example
import Foundation

let headers = [
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["acknowledged": true] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch")! 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_dispatchPixBatch_example

**Request**

```json
{
  "acknowledged": true
}
```

**Response**

```json
{
  "batchId": "pxb_3f9c2a1b7d4e5f60718293a4b5c6d7e8",
  "name": "Folha de setembro",
  "status": "QUEUED",
  "totalItems": 2,
  "totalAmount": "3936.85",
  "completedItems": 0,
  "failedItems": 0,
  "limits": {
    "maxItems": 50,
    "source": "default"
  },
  "createdAt": "2026-09-30T13:08:12Z",
  "updatedAt": "2026-09-30T13:10:00Z",
  "statistics": {
    "total": 2,
    "pending": 2,
    "processing": 0,
    "completed": 0,
    "failed": 0,
    "reviewedOk": 2,
    "invalid": 0,
    "totalAmount": "3936.85",
    "validAmount": "3936.85",
    "completedAmount": "0.00",
    "failedAmount": "0.00",
    "progressPercentage": 0
  },
  "items": [],
  "page": 1,
  "pageSize": 50,
  "totalPages": 1,
  "hasNext": false,
  "review": {
    "reviewedAt": "2026-09-30T13:09:30Z",
    "totalItems": 2,
    "validItems": 2,
    "invalidItems": 0,
    "totalAmount": "3936.85",
    "validAmount": "3936.85",
    "balance": {
      "available": "12000.00",
      "sufficient": true,
      "checked": true
    },
    "limits": [
      {
        "window": "daily_out",
        "enforced": true,
        "limit": "50000.00",
        "used": "1200.00",
        "available": "48800.00",
        "sufficient": true
      }
    ]
  },
  "reviewedAt": "2026-09-30T13:09:30Z",
  "acknowledgedAt": "2026-09-30T13:10:00Z",
  "dispatchedAt": "2026-09-30T13:10:00Z"
}
```

**SDK Code**

```python Pix_dispatchPixBatch_example
import requests

url = "https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch"

payload = { "acknowledged": True }
headers = {
    "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_dispatchPixBatch_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch';
const options = {
  method: 'POST',
  headers: {
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"acknowledged":true}'
};

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

```go Pix_dispatchPixBatch_example
package main

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

func main() {

	url := "https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch"

	payload := strings.NewReader("{\n  \"acknowledged\": true\n}")

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

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

url = URI("https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch")

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

request = Net::HTTP::Post.new(url)
request["X-Tenant-Id"] = 'X-Tenant-Id'
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"acknowledged\": true\n}"

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

```java Pix_dispatchPixBatch_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/pix/batches/batchId/dispatch")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"acknowledged\": true\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch', [
  'body' => '{
  "acknowledged": true
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp Pix_dispatchPixBatch_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/pix/batches/batchId/dispatch");
var request = new RestRequest(Method.POST);
request.AddHeader("X-Tenant-Id", "X-Tenant-Id");
request.AddHeader("Authorization", "Bearer <token>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"acknowledged\": true\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Pix_dispatchPixBatch_example
import Foundation

let headers = [
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["acknowledged": true] as [String : Any]

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

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