> This page is for BaaS.

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

# Issue a boleto (Boleto Charge)

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

Issues a boleto for this account. Scope `boleto_charge.manage`. The feature `boleto_charge` starts **disabled for every tenant**, including tenants created after this release. While it is off every boleto charge route returns **403** `feature_disabled`. With the feature on, issuance still requires `boletoCharge.enabled=true` on the tenant policy (every account of the tenant) or on this account's policy; otherwise the route returns **403** `boleto_charge_account_disabled`. `enabled=false` on the account policy opts that account out of a tenant-wide enable.

**Beneficiary.** If the holder is not yet a beneficiary (or the relationship is closed), this call registers the holder from the account's own data and returns **202** with `errorCode: boleto_charge_beneficiary_pending` and `Retry-After: 300`. Nothing was issued. Repeat the same body in a few minutes. You can also register first with `POST .../boleto/charge/beneficiary` (no body).

`identifier` is required in the JSON body and is the only idempotency key for this operation. `Idempotency-Key` is not accepted as a fallback. Repeating the same boleto returns **200** without consuming quota again.

The beneficiary is validated before quota is reserved. A new issuance
must fit both monthly BRT quotas: the tenant policy
`boletoCharge.maxIssuesPerMonth` (default 100) and the account policy
(default 5 for PF, 10 for PJ). Once admitted, the slot is consumed even
if the settlement bank later fails; it is never refunded.

When the beneficiary is already eligible and quota is available, the response is **202** with the boleto (`chargeId`, `barcode`, `digitableLine`). Registration at the central base is still asynchronous: subscribe to `boleto.charge.registered` and `boleto.charge.registration_failed`.

There is no write-off of an open boleto. Bound validity with `expirationPolicy.paymentLimitDate`.

Reference: https://en.docs.api.corpx.com/baas/referencia/boleto-charge/issue-boleto-charge

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

### Body (application/json)

This endpoint expects a BoletoChargeCreateRequest.

- `identifier` (string, required) — Caller-owned idempotency key, unique per account.
- `dueDate` (date, required) — Due date, YYYY-MM-DD.
- `amount` (BoletoChargeCreateRequestAmount, required) — Face amount of the boleto.
- `payer` (BoletoChargeCreateRequestPayer, required) — Who must pay the boleto.
- `issueDate` (date, optional) — Issue date, YYYY-MM-DD. dueDate cannot be before it.
- `interest` (BoletoChargeFee, optional) — Interest or fine. startDate, when set, must be after dueDate.
- `fine` (BoletoChargeFee, optional) — Interest or fine. startDate, when set, must be after dueDate.
- `discount` (BoletoChargeCreateRequestDiscount, optional) — Early-payment discount. Each groups[].limitDate must be before dueDate.
- `abatement` (BoletoChargeCreateRequestAbatement, optional) — Fixed abatement. Together with discounts it must not reach amount.nominal.
- `allowPartialPayment` (boolean, optional) — Accept a payment below the amount.
- `allowDivergentPayment` (boolean, optional) — Accept an amount other than the face value, within min and max.
- `divergentPaymentMode` (enum, optional) — How a divergent payment is bounded.
  - Allowed values: `anyValue`, `minMax`, `minOnly`
- `minPaymentAmount` (double, optional) — Minimum accepted payment when divergent payment is on. Not greater than maxPaymentAmount.
- `maxPaymentAmount` (double, optional) — Maximum accepted payment when divergent payment is on.
- `expirationPolicy` (BoletoChargeCreateRequestExpirationPolicy, optional) — How long the boleto can be paid. There is no write-off of an open boleto; paymentLimitDate is how you bound validity.

## Response

### 200

This identifier was already issued. Body is the live boleto.

- `chargeId` (string, required) — Settlement-bank id of this boleto. Use it on the item route and in webhooks.
- `identifier` (string, required) — Your idempotency key.
- `status` (enum, required) — Canonical status.
  - Allowed values: `OPEN`, `SETTLED`, `OVERDUE`, `WRITTEN_OFF`, `CANCELLED`, `EXPIRED`
- `updatedAt` (datetime, required) — Last successful synchronization with the settlement bank, in UTC.
- `barcode` (string, optional) — Barcode.
- `digitableLine` (string, optional) — Linha digitável.
- `ourNumber` (string, optional) — Our number at the settlement bank.
- `registrationCondition` (enum, optional) — Registration at the central base. PENDING right after issuance.
  - Allowed values: `REGISTERED`, `PENDING`, `REJECTED`
- `dueDate` (date, optional) — Due date.
- `amount` (BoletoChargeAmount, optional)
- `statusReason` (string, optional) — Present when the settlement bank sent a reason.
- `paymentLimitDate` (date, optional) — Last day payment is accepted.
- `payment` (BoletoChargePayment, optional) — Present after settlement.
- `payer` (BoletoChargePayer, optional)
- `request` (BoletoChargeCreateRequest, optional) — Original normalized issuance request, available on item detail.

### 202

Boleto accepted (`BoletoCharge`), or beneficiary registration still pending (`errorCode` boleto_charge_beneficiary_pending, Retry-After 300). Nothing was issued in the pending case.

- `Boleto Charge_issueBoletoCharge_Response_202`
  - BoletoCharge: BoletoCharge
  - BoletoChargeIssueBoletoChargeResponse2021

## Errors

### 400 Bad Request Error

Invalid request sent by client.

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

### 403 Forbidden Error

Requester does not have permission to perform the operation.

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

identifier or barcode already active

- `any`

### 422 Unprocessable Entity Error

Charge rules or an ineligible beneficiary

- `any`

### 429 Too Many Requests Error

`boleto_charge_monthly_limit_exceeded`: the issuance does not fit the remaining tenant or account quota for the current BRT calendar month. No quota is consumed when this response is returned.

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

### 502 Bad Gateway Error

`boleto_charge_beneficiary_registration_failed`: beneficiary registration failed at the settlement bank. Nothing was issued. If the bank rejected a registration in the last 24 hours, issuance does not register again: `details.lastEvent` carries `rejectionCode` and `rejectionReason`, and `Retry-After` carries the seconds left. Fix the account data and register with `POST .../boleto/charge/beneficiary`, which does not wait.

- `any`

## Types

### BoletoChargeCreateRequestAmount

Face amount of the boleto.

- `nominal` (double, required) — Face amount in BRL, greater than zero. Two decimal places, never cents-as-integer.
- `currency` (enum, optional, default: BRL) — Currency. Always BRL.
  - Allowed values: `BRL`

### BoletoChargeCreateRequestPayer

Who must pay the boleto.

- `name` (string, required) — Payer name.
- `personType` (enum, required) — person for CPF, company for CNPJ.
  - Allowed values: `person`, `company`
- `taxNumber` (string, required) — CPF when personType is person, CNPJ when company. Digits only.
- `email` (string, optional) — Payer email.
- `addressStreet` (string, optional) — Street.
- `addressNumber` (string, optional) — Street number.
- `addressComplement` (string, optional) — Complement.
- `addressDistrict` (string, optional) — District.
- `addressCity` (string, optional) — City.
- `addressState` (string, optional) — State, two letters.
- `addressZipCode` (string, optional) — ZIP code, 8 digits.

### BoletoChargeFee

Interest or fine. startDate, when set, must be after dueDate.

- `calculationModel` (enum, optional) — Which institution computes the amounts before and after dueDate. Optional.
  - Allowed values: `receiver-calculates-all`, `recipient-calculates-overdue`, `recipient-calculates-all`
- `typeId` (integer, optional) — Optional. Filled from typeKey when omitted; when sent, it must match typeKey.
- `typeKey` (string, optional) — Fee type. Interest: `exempt`, `fixed-value-calendar-day`, `fixed-value-business-day`, `percentage-calendar-day`, `percentage-business-day`, `percentage-month-calendar-day`, `percentage-month-business-day`, `percentage-year-calendar-day`, `percentage-year-business-day`. Fine: `exempt`, `fixed-value`, `percentage`. Any other value returns 400 `invalid_payload`.
- `value` (double, optional) — Amount in BRL, or a percent when typeKey says percentage. Required and greater than zero unless typeKey is exempt.
- `startDate` (date, optional) — First day the fee applies, YYYY-MM-DD, after dueDate.

### BoletoChargeCreateRequestDiscount

Early-payment discount. Each groups[].limitDate must be before dueDate.

- `calculationModel` (enum, optional) — Which institution computes the discount. Optional.
  - Allowed values: `receiver-calculates-all`, `recipient-calculates-overdue`, `recipient-calculates-all`
- `groups` (list of BoletoChargeCreateRequestDiscountGroupsItems, optional) — Discount steps.

### BoletoChargeCreateRequestAbatement

Fixed abatement. Together with discounts it must not reach amount.nominal.

- `amount` (double, optional) — Abatement in BRL, not negative.

### BoletoChargeCreateRequestExpirationPolicy

How long the boleto can be paid. There is no write-off of an open boleto; paymentLimitDate is how you bound validity.

- `allowPaymentAfterDueDate` (boolean, optional) — Whether payment is accepted after dueDate.
- `paymentLimitDate` (date, optional) — Last day payment is accepted, YYYY-MM-DD, not before dueDate.
- `blockPaymentAfterLimit` (boolean, optional) — Reject payment after paymentLimitDate.
- `decursoGraceDays` (integer, optional) — Grace days after the payment limit.

### BoletoChargeAmount

- `nominal` (double, optional) — Face amount in BRL.
- `updatedAmount` (double, optional) — Amount with interest, fine and discount as of today.
- `currency` (string, optional) — Currency.

### BoletoChargePayment

Present after settlement.

- `amount` (double, optional) — Amount paid, in BRL.
- `settledAt` (datetime, optional) — When it was paid.

### BoletoChargePayer

- `name` (string, optional)
- `taxNumber` (string, optional)
- `personType` (enum, optional)
  - Allowed values: `person`, `company`

### BoletoChargeCreateRequest

One boleto issuance request. `identifier` is required and is the sole idempotency key for this account; `Idempotency-Key` is not a fallback.

- `identifier` (string, required) — Caller-owned idempotency key, unique per account.
- `dueDate` (date, required) — Due date, YYYY-MM-DD.
- `amount` (BoletoChargeCreateRequestAmount, required) — Face amount of the boleto.
- `payer` (BoletoChargeCreateRequestPayer, required) — Who must pay the boleto.
- `issueDate` (date, optional) — Issue date, YYYY-MM-DD. dueDate cannot be before it.
- `interest` (BoletoChargeFee, optional) — Interest or fine. startDate, when set, must be after dueDate.
- `fine` (BoletoChargeFee, optional) — Interest or fine. startDate, when set, must be after dueDate.
- `discount` (BoletoChargeCreateRequestDiscount, optional) — Early-payment discount. Each groups[].limitDate must be before dueDate.
- `abatement` (BoletoChargeCreateRequestAbatement, optional) — Fixed abatement. Together with discounts it must not reach amount.nominal.
- `allowPartialPayment` (boolean, optional) — Accept a payment below the amount.
- `allowDivergentPayment` (boolean, optional) — Accept an amount other than the face value, within min and max.
- `divergentPaymentMode` (enum, optional) — How a divergent payment is bounded.
  - Allowed values: `anyValue`, `minMax`, `minOnly`
- `minPaymentAmount` (double, optional) — Minimum accepted payment when divergent payment is on. Not greater than maxPaymentAmount.
- `maxPaymentAmount` (double, optional) — Maximum accepted payment when divergent payment is on.
- `expirationPolicy` (BoletoChargeCreateRequestExpirationPolicy, optional) — How long the boleto can be paid. There is no write-off of an open boleto; paymentLimitDate is how you bound validity.

### BoletoCharge

Issued boleto.

- `chargeId` (string, required) — Settlement-bank id of this boleto. Use it on the item route and in webhooks.
- `identifier` (string, required) — Your idempotency key.
- `status` (enum, required) — Canonical status.
  - Allowed values: `OPEN`, `SETTLED`, `OVERDUE`, `WRITTEN_OFF`, `CANCELLED`, `EXPIRED`
- `updatedAt` (datetime, required) — Last successful synchronization with the settlement bank, in UTC.
- `barcode` (string, optional) — Barcode.
- `digitableLine` (string, optional) — Linha digitável.
- `ourNumber` (string, optional) — Our number at the settlement bank.
- `registrationCondition` (enum, optional) — Registration at the central base. PENDING right after issuance.
  - Allowed values: `REGISTERED`, `PENDING`, `REJECTED`
- `dueDate` (date, optional) — Due date.
- `amount` (BoletoChargeAmount, optional)
- `statusReason` (string, optional) — Present when the settlement bank sent a reason.
- `paymentLimitDate` (date, optional) — Last day payment is accepted.
- `payment` (BoletoChargePayment, optional) — Present after settlement.
- `payer` (BoletoChargePayer, optional)
- `request` (BoletoChargeCreateRequest, optional) — Original normalized issuance request, available on item detail.

### BoletoChargeIssueBoletoChargeResponse2021

- `errorCode` (string, optional)
- `message` (string, optional)

### ErrorResponsePartner

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

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

### BoletoChargeCreateRequestDiscountGroupsItems

- `sequence` (integer, optional) — Step order, starting at 1.
- `typeId` (integer, optional) — Optional. Filled from typeKey when omitted; when sent, it must match typeKey.
- `typeKey` (string, optional) — Discount type: `exempt`, `fixed-value-until-date`, `percentage-until-date`, `fixed-value-anticipation-calendar-day`, `fixed-value-anticipation-business-day`, `percentage-anticipation-calendar-day`, `percentage-anticipation-business-day`. `-until-date` types require limitDate; anticipation types must not send it.
- `value` (double, optional) — Discount amount in BRL, or a percent when typeKey says percentage.
- `limitDate` (date, optional) — Last day this step applies, YYYY-MM-DD, before dueDate. Only for `-until-date` types.

## Examples

### Boleto Charge_issueBoletoCharge_example

**Request**

```json
{
  "identifier": "order-12345",
  "dueDate": "2026-10-23",
  "amount": {
    "nominal": 150.75,
    "currency": "BRL"
  },
  "payer": {
    "name": "Maria da Silva",
    "personType": "person",
    "taxNumber": "52998224725",
    "email": "maria.silva@example.com",
    "addressStreet": "Avenida Paulista",
    "addressNumber": "1000",
    "addressDistrict": "Bela Vista",
    "addressCity": "Sao Paulo",
    "addressState": "SP",
    "addressZipCode": "01310100"
  },
  "issueDate": "2026-09-23",
  "expirationPolicy": {
    "allowPaymentAfterDueDate": true,
    "paymentLimitDate": "2026-10-30",
    "blockPaymentAfterLimit": true,
    "decursoGraceDays": 1
  }
}
```

**Response**

```json
{
  "chargeId": "8c1f6a2e-4d3b-4b9a-9f0e-1a2b3c4d5e6f",
  "identifier": "order-12345",
  "status": "OPEN",
  "updatedAt": "2026-09-24T14:08:12Z",
  "barcode": "23793381286000782713695000063305975520000015075",
  "digitableLine": "23793381286000782713695000063305975520000015075",
  "ourNumber": "string",
  "registrationCondition": "REGISTERED",
  "dueDate": "2026-02-20",
  "amount": {
    "nominal": 150.75,
    "updatedAmount": 150.75,
    "currency": "BRL"
  },
  "statusReason": "Pagamento pedido #12345",
  "paymentLimitDate": "2026-02-20",
  "payment": {
    "amount": 150.75,
    "settledAt": "2026-02-20T08:33:39Z"
  },
  "payer": {
    "name": "MARIA DA SILVA",
    "taxNumber": "12345678000190",
    "personType": "person"
  }
}
```

**SDK Code**

```python Boleto Charge_issueBoletoCharge_example
import requests

url = "https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge"

payload = {
    "identifier": "order-12345",
    "dueDate": "2026-10-23",
    "amount": {
        "nominal": 150.75,
        "currency": "BRL"
    },
    "payer": {
        "name": "Maria da Silva",
        "personType": "person",
        "taxNumber": "52998224725",
        "email": "maria.silva@example.com",
        "addressStreet": "Avenida Paulista",
        "addressNumber": "1000",
        "addressDistrict": "Bela Vista",
        "addressCity": "Sao Paulo",
        "addressState": "SP",
        "addressZipCode": "01310100"
    },
    "issueDate": "2026-09-23",
    "expirationPolicy": {
        "allowPaymentAfterDueDate": True,
        "paymentLimitDate": "2026-10-30",
        "blockPaymentAfterLimit": True,
        "decursoGraceDays": 1
    }
}
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 Boleto Charge_issueBoletoCharge_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge';
const options = {
  method: 'POST',
  headers: {
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"identifier":"order-12345","dueDate":"2026-10-23","amount":{"nominal":150.75,"currency":"BRL"},"payer":{"name":"Maria da Silva","personType":"person","taxNumber":"52998224725","email":"maria.silva@example.com","addressStreet":"Avenida Paulista","addressNumber":"1000","addressDistrict":"Bela Vista","addressCity":"Sao Paulo","addressState":"SP","addressZipCode":"01310100"},"issueDate":"2026-09-23","expirationPolicy":{"allowPaymentAfterDueDate":true,"paymentLimitDate":"2026-10-30","blockPaymentAfterLimit":true,"decursoGraceDays":1}}'
};

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

```go Boleto Charge_issueBoletoCharge_example
package main

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

func main() {

	url := "https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge"

	payload := strings.NewReader("{\n  \"identifier\": \"order-12345\",\n  \"dueDate\": \"2026-10-23\",\n  \"amount\": {\n    \"nominal\": 150.75,\n    \"currency\": \"BRL\"\n  },\n  \"payer\": {\n    \"name\": \"Maria da Silva\",\n    \"personType\": \"person\",\n    \"taxNumber\": \"52998224725\",\n    \"email\": \"maria.silva@example.com\",\n    \"addressStreet\": \"Avenida Paulista\",\n    \"addressNumber\": \"1000\",\n    \"addressDistrict\": \"Bela Vista\",\n    \"addressCity\": \"Sao Paulo\",\n    \"addressState\": \"SP\",\n    \"addressZipCode\": \"01310100\"\n  },\n  \"issueDate\": \"2026-09-23\",\n  \"expirationPolicy\": {\n    \"allowPaymentAfterDueDate\": true,\n    \"paymentLimitDate\": \"2026-10-30\",\n    \"blockPaymentAfterLimit\": true,\n    \"decursoGraceDays\": 1\n  }\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 Boleto Charge_issueBoletoCharge_example
require 'uri'
require 'net/http'

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

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  \"identifier\": \"order-12345\",\n  \"dueDate\": \"2026-10-23\",\n  \"amount\": {\n    \"nominal\": 150.75,\n    \"currency\": \"BRL\"\n  },\n  \"payer\": {\n    \"name\": \"Maria da Silva\",\n    \"personType\": \"person\",\n    \"taxNumber\": \"52998224725\",\n    \"email\": \"maria.silva@example.com\",\n    \"addressStreet\": \"Avenida Paulista\",\n    \"addressNumber\": \"1000\",\n    \"addressDistrict\": \"Bela Vista\",\n    \"addressCity\": \"Sao Paulo\",\n    \"addressState\": \"SP\",\n    \"addressZipCode\": \"01310100\"\n  },\n  \"issueDate\": \"2026-09-23\",\n  \"expirationPolicy\": {\n    \"allowPaymentAfterDueDate\": true,\n    \"paymentLimitDate\": \"2026-10-30\",\n    \"blockPaymentAfterLimit\": true,\n    \"decursoGraceDays\": 1\n  }\n}"

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

```java Boleto Charge_issueBoletoCharge_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/boleto/charge")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"identifier\": \"order-12345\",\n  \"dueDate\": \"2026-10-23\",\n  \"amount\": {\n    \"nominal\": 150.75,\n    \"currency\": \"BRL\"\n  },\n  \"payer\": {\n    \"name\": \"Maria da Silva\",\n    \"personType\": \"person\",\n    \"taxNumber\": \"52998224725\",\n    \"email\": \"maria.silva@example.com\",\n    \"addressStreet\": \"Avenida Paulista\",\n    \"addressNumber\": \"1000\",\n    \"addressDistrict\": \"Bela Vista\",\n    \"addressCity\": \"Sao Paulo\",\n    \"addressState\": \"SP\",\n    \"addressZipCode\": \"01310100\"\n  },\n  \"issueDate\": \"2026-09-23\",\n  \"expirationPolicy\": {\n    \"allowPaymentAfterDueDate\": true,\n    \"paymentLimitDate\": \"2026-10-30\",\n    \"blockPaymentAfterLimit\": true,\n    \"decursoGraceDays\": 1\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge', [
  'body' => '{
  "identifier": "order-12345",
  "dueDate": "2026-10-23",
  "amount": {
    "nominal": 150.75,
    "currency": "BRL"
  },
  "payer": {
    "name": "Maria da Silva",
    "personType": "person",
    "taxNumber": "52998224725",
    "email": "maria.silva@example.com",
    "addressStreet": "Avenida Paulista",
    "addressNumber": "1000",
    "addressDistrict": "Bela Vista",
    "addressCity": "Sao Paulo",
    "addressState": "SP",
    "addressZipCode": "01310100"
  },
  "issueDate": "2026-09-23",
  "expirationPolicy": {
    "allowPaymentAfterDueDate": true,
    "paymentLimitDate": "2026-10-30",
    "blockPaymentAfterLimit": true,
    "decursoGraceDays": 1
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp Boleto Charge_issueBoletoCharge_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge");
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  \"identifier\": \"order-12345\",\n  \"dueDate\": \"2026-10-23\",\n  \"amount\": {\n    \"nominal\": 150.75,\n    \"currency\": \"BRL\"\n  },\n  \"payer\": {\n    \"name\": \"Maria da Silva\",\n    \"personType\": \"person\",\n    \"taxNumber\": \"52998224725\",\n    \"email\": \"maria.silva@example.com\",\n    \"addressStreet\": \"Avenida Paulista\",\n    \"addressNumber\": \"1000\",\n    \"addressDistrict\": \"Bela Vista\",\n    \"addressCity\": \"Sao Paulo\",\n    \"addressState\": \"SP\",\n    \"addressZipCode\": \"01310100\"\n  },\n  \"issueDate\": \"2026-09-23\",\n  \"expirationPolicy\": {\n    \"allowPaymentAfterDueDate\": true,\n    \"paymentLimitDate\": \"2026-10-30\",\n    \"blockPaymentAfterLimit\": true,\n    \"decursoGraceDays\": 1\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Boleto Charge_issueBoletoCharge_example
import Foundation

let headers = [
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "identifier": "order-12345",
  "dueDate": "2026-10-23",
  "amount": [
    "nominal": 150.75,
    "currency": "BRL"
  ],
  "payer": [
    "name": "Maria da Silva",
    "personType": "person",
    "taxNumber": "52998224725",
    "email": "maria.silva@example.com",
    "addressStreet": "Avenida Paulista",
    "addressNumber": "1000",
    "addressDistrict": "Bela Vista",
    "addressCity": "Sao Paulo",
    "addressState": "SP",
    "addressZipCode": "01310100"
  ],
  "issueDate": "2026-09-23",
  "expirationPolicy": [
    "allowPaymentAfterDueDate": true,
    "paymentLimitDate": "2026-10-30",
    "blockPaymentAfterLimit": true,
    "decursoGraceDays": 1
  ]
] as [String : Any]

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

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

### Boleto Charge_issueBoletoCharge_example

**Request**

```json
{
  "identifier": "order-12345",
  "dueDate": "2026-10-23",
  "amount": {
    "nominal": 150.75,
    "currency": "BRL"
  },
  "payer": {
    "name": "Maria da Silva",
    "personType": "person",
    "taxNumber": "52998224725",
    "email": "maria.silva@example.com",
    "addressStreet": "Avenida Paulista",
    "addressNumber": "1000",
    "addressDistrict": "Bela Vista",
    "addressCity": "Sao Paulo",
    "addressState": "SP",
    "addressZipCode": "01310100"
  },
  "issueDate": "2026-09-23",
  "expirationPolicy": {
    "allowPaymentAfterDueDate": true,
    "paymentLimitDate": "2026-10-30",
    "blockPaymentAfterLimit": true,
    "decursoGraceDays": 1
  }
}
```

**Response**

```json
{
  "chargeId": "string",
  "identifier": "string",
  "status": "OPEN",
  "updatedAt": "2024-01-15T09:30:00Z",
  "barcode": "string",
  "digitableLine": "string",
  "ourNumber": "string",
  "registrationCondition": "REGISTERED",
  "dueDate": "2023-01-15",
  "amount": {
    "nominal": 1.1,
    "updatedAmount": 1.1,
    "currency": "string"
  },
  "statusReason": "string",
  "paymentLimitDate": "2023-01-15",
  "payment": {
    "amount": 1.1,
    "settledAt": "2024-01-15T09:30:00Z"
  },
  "payer": {
    "name": "string",
    "taxNumber": "string",
    "personType": "person"
  },
  "request": {
    "identifier": "string",
    "dueDate": "2023-01-15",
    "amount": {
      "nominal": 150.75,
      "currency": "BRL"
    },
    "payer": {
      "name": "Maria da Silva",
      "personType": "person",
      "taxNumber": "52998224725",
      "email": "string",
      "addressStreet": "string",
      "addressNumber": "string",
      "addressComplement": "string",
      "addressDistrict": "string",
      "addressCity": "string",
      "addressState": "SP",
      "addressZipCode": "01310100"
    },
    "issueDate": "2023-01-15",
    "interest": {
      "calculationModel": "receiver-calculates-all",
      "typeId": 1,
      "typeKey": "percentage-month-calendar-day",
      "value": 1.1,
      "startDate": "2023-01-15"
    },
    "fine": {
      "calculationModel": "receiver-calculates-all",
      "typeId": 1,
      "typeKey": "percentage-month-calendar-day",
      "value": 1.1,
      "startDate": "2023-01-15"
    },
    "discount": {
      "calculationModel": "receiver-calculates-all",
      "groups": [
        {
          "sequence": 1,
          "typeId": 1,
          "typeKey": "percentage-until-date",
          "value": 1.1,
          "limitDate": "2023-01-15"
        }
      ]
    },
    "abatement": {
      "amount": 1.1
    },
    "allowPartialPayment": true,
    "allowDivergentPayment": true,
    "divergentPaymentMode": "anyValue",
    "minPaymentAmount": 1.1,
    "maxPaymentAmount": 1.1,
    "expirationPolicy": {
      "allowPaymentAfterDueDate": true,
      "paymentLimitDate": "2023-01-15",
      "blockPaymentAfterLimit": true,
      "decursoGraceDays": 1
    }
  }
}
```

**SDK Code**

```python Boleto Charge_issueBoletoCharge_example
import requests

url = "https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge"

payload = {
    "identifier": "order-12345",
    "dueDate": "2026-10-23",
    "amount": {
        "nominal": 150.75,
        "currency": "BRL"
    },
    "payer": {
        "name": "Maria da Silva",
        "personType": "person",
        "taxNumber": "52998224725",
        "email": "maria.silva@example.com",
        "addressStreet": "Avenida Paulista",
        "addressNumber": "1000",
        "addressDistrict": "Bela Vista",
        "addressCity": "Sao Paulo",
        "addressState": "SP",
        "addressZipCode": "01310100"
    },
    "issueDate": "2026-09-23",
    "expirationPolicy": {
        "allowPaymentAfterDueDate": True,
        "paymentLimitDate": "2026-10-30",
        "blockPaymentAfterLimit": True,
        "decursoGraceDays": 1
    }
}
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 Boleto Charge_issueBoletoCharge_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge';
const options = {
  method: 'POST',
  headers: {
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"identifier":"order-12345","dueDate":"2026-10-23","amount":{"nominal":150.75,"currency":"BRL"},"payer":{"name":"Maria da Silva","personType":"person","taxNumber":"52998224725","email":"maria.silva@example.com","addressStreet":"Avenida Paulista","addressNumber":"1000","addressDistrict":"Bela Vista","addressCity":"Sao Paulo","addressState":"SP","addressZipCode":"01310100"},"issueDate":"2026-09-23","expirationPolicy":{"allowPaymentAfterDueDate":true,"paymentLimitDate":"2026-10-30","blockPaymentAfterLimit":true,"decursoGraceDays":1}}'
};

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

```go Boleto Charge_issueBoletoCharge_example
package main

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

func main() {

	url := "https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge"

	payload := strings.NewReader("{\n  \"identifier\": \"order-12345\",\n  \"dueDate\": \"2026-10-23\",\n  \"amount\": {\n    \"nominal\": 150.75,\n    \"currency\": \"BRL\"\n  },\n  \"payer\": {\n    \"name\": \"Maria da Silva\",\n    \"personType\": \"person\",\n    \"taxNumber\": \"52998224725\",\n    \"email\": \"maria.silva@example.com\",\n    \"addressStreet\": \"Avenida Paulista\",\n    \"addressNumber\": \"1000\",\n    \"addressDistrict\": \"Bela Vista\",\n    \"addressCity\": \"Sao Paulo\",\n    \"addressState\": \"SP\",\n    \"addressZipCode\": \"01310100\"\n  },\n  \"issueDate\": \"2026-09-23\",\n  \"expirationPolicy\": {\n    \"allowPaymentAfterDueDate\": true,\n    \"paymentLimitDate\": \"2026-10-30\",\n    \"blockPaymentAfterLimit\": true,\n    \"decursoGraceDays\": 1\n  }\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 Boleto Charge_issueBoletoCharge_example
require 'uri'
require 'net/http'

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

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  \"identifier\": \"order-12345\",\n  \"dueDate\": \"2026-10-23\",\n  \"amount\": {\n    \"nominal\": 150.75,\n    \"currency\": \"BRL\"\n  },\n  \"payer\": {\n    \"name\": \"Maria da Silva\",\n    \"personType\": \"person\",\n    \"taxNumber\": \"52998224725\",\n    \"email\": \"maria.silva@example.com\",\n    \"addressStreet\": \"Avenida Paulista\",\n    \"addressNumber\": \"1000\",\n    \"addressDistrict\": \"Bela Vista\",\n    \"addressCity\": \"Sao Paulo\",\n    \"addressState\": \"SP\",\n    \"addressZipCode\": \"01310100\"\n  },\n  \"issueDate\": \"2026-09-23\",\n  \"expirationPolicy\": {\n    \"allowPaymentAfterDueDate\": true,\n    \"paymentLimitDate\": \"2026-10-30\",\n    \"blockPaymentAfterLimit\": true,\n    \"decursoGraceDays\": 1\n  }\n}"

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

```java Boleto Charge_issueBoletoCharge_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/boleto/charge")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"identifier\": \"order-12345\",\n  \"dueDate\": \"2026-10-23\",\n  \"amount\": {\n    \"nominal\": 150.75,\n    \"currency\": \"BRL\"\n  },\n  \"payer\": {\n    \"name\": \"Maria da Silva\",\n    \"personType\": \"person\",\n    \"taxNumber\": \"52998224725\",\n    \"email\": \"maria.silva@example.com\",\n    \"addressStreet\": \"Avenida Paulista\",\n    \"addressNumber\": \"1000\",\n    \"addressDistrict\": \"Bela Vista\",\n    \"addressCity\": \"Sao Paulo\",\n    \"addressState\": \"SP\",\n    \"addressZipCode\": \"01310100\"\n  },\n  \"issueDate\": \"2026-09-23\",\n  \"expirationPolicy\": {\n    \"allowPaymentAfterDueDate\": true,\n    \"paymentLimitDate\": \"2026-10-30\",\n    \"blockPaymentAfterLimit\": true,\n    \"decursoGraceDays\": 1\n  }\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge', [
  'body' => '{
  "identifier": "order-12345",
  "dueDate": "2026-10-23",
  "amount": {
    "nominal": 150.75,
    "currency": "BRL"
  },
  "payer": {
    "name": "Maria da Silva",
    "personType": "person",
    "taxNumber": "52998224725",
    "email": "maria.silva@example.com",
    "addressStreet": "Avenida Paulista",
    "addressNumber": "1000",
    "addressDistrict": "Bela Vista",
    "addressCity": "Sao Paulo",
    "addressState": "SP",
    "addressZipCode": "01310100"
  },
  "issueDate": "2026-09-23",
  "expirationPolicy": {
    "allowPaymentAfterDueDate": true,
    "paymentLimitDate": "2026-10-30",
    "blockPaymentAfterLimit": true,
    "decursoGraceDays": 1
  }
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp Boleto Charge_issueBoletoCharge_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/boleto/charge");
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  \"identifier\": \"order-12345\",\n  \"dueDate\": \"2026-10-23\",\n  \"amount\": {\n    \"nominal\": 150.75,\n    \"currency\": \"BRL\"\n  },\n  \"payer\": {\n    \"name\": \"Maria da Silva\",\n    \"personType\": \"person\",\n    \"taxNumber\": \"52998224725\",\n    \"email\": \"maria.silva@example.com\",\n    \"addressStreet\": \"Avenida Paulista\",\n    \"addressNumber\": \"1000\",\n    \"addressDistrict\": \"Bela Vista\",\n    \"addressCity\": \"Sao Paulo\",\n    \"addressState\": \"SP\",\n    \"addressZipCode\": \"01310100\"\n  },\n  \"issueDate\": \"2026-09-23\",\n  \"expirationPolicy\": {\n    \"allowPaymentAfterDueDate\": true,\n    \"paymentLimitDate\": \"2026-10-30\",\n    \"blockPaymentAfterLimit\": true,\n    \"decursoGraceDays\": 1\n  }\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Boleto Charge_issueBoletoCharge_example
import Foundation

let headers = [
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "identifier": "order-12345",
  "dueDate": "2026-10-23",
  "amount": [
    "nominal": 150.75,
    "currency": "BRL"
  ],
  "payer": [
    "name": "Maria da Silva",
    "personType": "person",
    "taxNumber": "52998224725",
    "email": "maria.silva@example.com",
    "addressStreet": "Avenida Paulista",
    "addressNumber": "1000",
    "addressDistrict": "Bela Vista",
    "addressCity": "Sao Paulo",
    "addressState": "SP",
    "addressZipCode": "01310100"
  ],
  "issueDate": "2026-09-23",
  "expirationPolicy": [
    "allowPaymentAfterDueDate": true,
    "paymentLimitDate": "2026-10-30",
    "blockPaymentAfterLimit": true,
    "decursoGraceDays": 1
  ]
] as [String : Any]

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

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