> 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 composite QR with due date (charge + recurrence)

POST https://tenant.api.corpx.com/v1/accounts/{accountId}/pix/automatic/composite-qr-codes/due-date
Content-Type: application/json

Same as the static composite QR, with a due date and the
optional `deduction`, `discount`, `interest` and `penalty` amounts.

Reference: https://en.docs.api.corpx.com/baas/referencia/pix-automatic/create-pix-automatic-composite-qr-due-date

## 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, optional) — Optional client-generated idempotency token (recommended for safe retries).

### Body (application/json)

This endpoint expects an object.

- `identifier` (string, required) — Your UUID for the QR. Unique per account.
- `pixKey` (string, required) — Pix key of the account that receives the payment.
- `value` (double, required) — Amount charged by the QR.
- `requestExpiration` (datetime, required) — Deadline of the recurrence offer: after today and up to 30 days ahead. Without an offset it is read in Brasília time.
- `recurrence` (V1AccountsAccountIdPixAutomaticCompositeQrCodesDueDatePostRequestBodyContentApplicationJsonSchemaRecurrence, required) — Send exactly one of `value` or `maximumValue`.
- `dueDate` (date, required)
- `message` (string, optional)
- `payer` (V1AccountsAccountIdPixAutomaticCompositeQrCodesDueDatePostRequestBodyContentApplicationJsonSchemaPayer, optional)
- `daysAfterDueDate` (integer, optional) — Days the QR stays payable after `dueDate`.
- `deduction` (double, optional)
- `discount` (double, optional)
- `interest` (double, optional)
- `penalty` (double, optional)

## Response

### 201

Composite QR issued

- `recurrenceId` (string, optional)
- `recurrenceIdentifier` (string, optional)
- `status` (enum, optional)
  - Allowed values: `awaiting_authorization`, `authorization_received`, `authorized`, `rejected`, `request_failed`, `authorization_failed`, `canceled`, `expired`
- `identifier` (string, optional)
- `qrCodeId` (string, optional)
- `pixCopyPaste` (string, optional) — Pix copia e cola.
- `image` (string, optional) — QR image (base64 PNG).
- `dueDate` (date, optional)
- `daysAfterDueDate` (integer, optional)
- `requestExpiration` (datetime, optional)
- `createdAt` (datetime, optional)

## 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` already used by another composite QR on this account (`automatic_pix_identifier_in_use`)

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

Recurrence terms rejected

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

Banking partner returned an 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.

## Types

### V1AccountsAccountIdPixAutomaticCompositeQrCodesDueDatePostRequestBodyContentApplicationJsonSchemaRecurrence

Send exactly one of `value` or `maximumValue`.

- `frequency` (enum, required)
  - Allowed values: `weekly`, `monthly`, `quarterly`, `semiannual`, `annual`
- `firstPaymentDate` (date, required)
- `contract` (V1AccountsAccountIdPixAutomaticCompositeQrCodesDueDatePostRequestBodyContentApplicationJsonSchemaRecurrenceContract, required)
- `debtor` (V1AccountsAccountIdPixAutomaticCompositeQrCodesDueDatePostRequestBodyContentApplicationJsonSchemaRecurrenceDebtor, required) — Debtor of the recurrence. Required on composite QRs.
- `lastPaymentDate` (date, optional) — Omit for an open-ended recurrence.
- `value` (double, optional) — Fixed amount of every charge.
- `maximumValue` (double, optional) — Ceiling for variable-amount charges.
- `paymentRetry` (boolean, optional) — Allows settlement retries after a failed charge.

### V1AccountsAccountIdPixAutomaticCompositeQrCodesDueDatePostRequestBodyContentApplicationJsonSchemaPayer

- `taxNumber` (string, optional)
- `name` (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.

### V1AccountsAccountIdPixAutomaticCompositeQrCodesDueDatePostRequestBodyContentApplicationJsonSchemaRecurrenceContract

- `number` (string, required)
- `description` (string, optional)

### V1AccountsAccountIdPixAutomaticCompositeQrCodesDueDatePostRequestBodyContentApplicationJsonSchemaRecurrenceDebtor

Debtor of the recurrence. Required on composite QRs.

- `taxNumber` (string, required)
- `name` (string, required)

## Examples

**Request**

```json
{
  "identifier": "1542bab1-12e8-4b12-bb70-605882e57238",
  "pixKey": "3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21",
  "value": 49.9,
  "requestExpiration": "2026-11-20T23:59:59-03:00",
  "recurrence": {
    "frequency": "monthly",
    "firstPaymentDate": "2026-12-30",
    "contract": {
      "number": "CONTRATO-1002"
    },
    "debtor": {
      "taxNumber": "12345678909",
      "name": "MARIA DA SILVA"
    },
    "value": 49.9
  },
  "dueDate": "2026-11-30",
  "payer": {
    "taxNumber": "12345678909",
    "name": "MARIA DA SILVA"
  },
  "daysAfterDueDate": 5
}
```

**Response**

```json
{
  "recurrenceId": "f6c7cb5e-7dca-4195-bbbc-edda5c3868d9",
  "status": "awaiting_authorization",
  "identifier": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "qrCodeId": "9d3a1f2e-6b4c-4e8a-b1d0-7c5e2f3a4b6c",
  "pixCopyPaste": "00020101021226...6304ABCD",
  "createdAt": "2026-11-01T13:00:00Z"
}
```

**SDK Code**

```python Pix Automatic_createPixAutomaticCompositeQRDueDate_example
import requests

url = "https://tenant.api.corpx.com/v1/accounts/accountId/pix/automatic/composite-qr-codes/due-date"

payload = {
    "identifier": "1542bab1-12e8-4b12-bb70-605882e57238",
    "pixKey": "3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21",
    "value": 49.9,
    "requestExpiration": "2026-11-20T23:59:59-03:00",
    "recurrence": {
        "frequency": "monthly",
        "firstPaymentDate": "2026-12-30",
        "contract": { "number": "CONTRATO-1002" },
        "debtor": {
            "taxNumber": "12345678909",
            "name": "MARIA DA SILVA"
        },
        "value": 49.9
    },
    "dueDate": "2026-11-30",
    "payer": {
        "taxNumber": "12345678909",
        "name": "MARIA DA SILVA"
    },
    "daysAfterDueDate": 5
}
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 Automatic_createPixAutomaticCompositeQRDueDate_example
const url = 'https://tenant.api.corpx.com/v1/accounts/accountId/pix/automatic/composite-qr-codes/due-date';
const options = {
  method: 'POST',
  headers: {
    'X-Tenant-Id': 'X-Tenant-Id',
    Authorization: 'Bearer <token>',
    'Content-Type': 'application/json'
  },
  body: '{"identifier":"1542bab1-12e8-4b12-bb70-605882e57238","pixKey":"3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21","value":49.9,"requestExpiration":"2026-11-20T23:59:59-03:00","recurrence":{"frequency":"monthly","firstPaymentDate":"2026-12-30","contract":{"number":"CONTRATO-1002"},"debtor":{"taxNumber":"12345678909","name":"MARIA DA SILVA"},"value":49.9},"dueDate":"2026-11-30","payer":{"taxNumber":"12345678909","name":"MARIA DA SILVA"},"daysAfterDueDate":5}'
};

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

```go Pix Automatic_createPixAutomaticCompositeQRDueDate_example
package main

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

func main() {

	url := "https://tenant.api.corpx.com/v1/accounts/accountId/pix/automatic/composite-qr-codes/due-date"

	payload := strings.NewReader("{\n  \"identifier\": \"1542bab1-12e8-4b12-bb70-605882e57238\",\n  \"pixKey\": \"3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21\",\n  \"value\": 49.9,\n  \"requestExpiration\": \"2026-11-20T23:59:59-03:00\",\n  \"recurrence\": {\n    \"frequency\": \"monthly\",\n    \"firstPaymentDate\": \"2026-12-30\",\n    \"contract\": {\n      \"number\": \"CONTRATO-1002\"\n    },\n    \"debtor\": {\n      \"taxNumber\": \"12345678909\",\n      \"name\": \"MARIA DA SILVA\"\n    },\n    \"value\": 49.9\n  },\n  \"dueDate\": \"2026-11-30\",\n  \"payer\": {\n    \"taxNumber\": \"12345678909\",\n    \"name\": \"MARIA DA SILVA\"\n  },\n  \"daysAfterDueDate\": 5\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 Automatic_createPixAutomaticCompositeQRDueDate_example
require 'uri'
require 'net/http'

url = URI("https://tenant.api.corpx.com/v1/accounts/accountId/pix/automatic/composite-qr-codes/due-date")

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\": \"1542bab1-12e8-4b12-bb70-605882e57238\",\n  \"pixKey\": \"3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21\",\n  \"value\": 49.9,\n  \"requestExpiration\": \"2026-11-20T23:59:59-03:00\",\n  \"recurrence\": {\n    \"frequency\": \"monthly\",\n    \"firstPaymentDate\": \"2026-12-30\",\n    \"contract\": {\n      \"number\": \"CONTRATO-1002\"\n    },\n    \"debtor\": {\n      \"taxNumber\": \"12345678909\",\n      \"name\": \"MARIA DA SILVA\"\n    },\n    \"value\": 49.9\n  },\n  \"dueDate\": \"2026-11-30\",\n  \"payer\": {\n    \"taxNumber\": \"12345678909\",\n    \"name\": \"MARIA DA SILVA\"\n  },\n  \"daysAfterDueDate\": 5\n}"

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

```java Pix Automatic_createPixAutomaticCompositeQRDueDate_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/automatic/composite-qr-codes/due-date")
  .header("X-Tenant-Id", "X-Tenant-Id")
  .header("Authorization", "Bearer <token>")
  .header("Content-Type", "application/json")
  .body("{\n  \"identifier\": \"1542bab1-12e8-4b12-bb70-605882e57238\",\n  \"pixKey\": \"3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21\",\n  \"value\": 49.9,\n  \"requestExpiration\": \"2026-11-20T23:59:59-03:00\",\n  \"recurrence\": {\n    \"frequency\": \"monthly\",\n    \"firstPaymentDate\": \"2026-12-30\",\n    \"contract\": {\n      \"number\": \"CONTRATO-1002\"\n    },\n    \"debtor\": {\n      \"taxNumber\": \"12345678909\",\n      \"name\": \"MARIA DA SILVA\"\n    },\n    \"value\": 49.9\n  },\n  \"dueDate\": \"2026-11-30\",\n  \"payer\": {\n    \"taxNumber\": \"12345678909\",\n    \"name\": \"MARIA DA SILVA\"\n  },\n  \"daysAfterDueDate\": 5\n}")
  .asString();
```

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

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://tenant.api.corpx.com/v1/accounts/accountId/pix/automatic/composite-qr-codes/due-date', [
  'body' => '{
  "identifier": "1542bab1-12e8-4b12-bb70-605882e57238",
  "pixKey": "3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21",
  "value": 49.9,
  "requestExpiration": "2026-11-20T23:59:59-03:00",
  "recurrence": {
    "frequency": "monthly",
    "firstPaymentDate": "2026-12-30",
    "contract": {
      "number": "CONTRATO-1002"
    },
    "debtor": {
      "taxNumber": "12345678909",
      "name": "MARIA DA SILVA"
    },
    "value": 49.9
  },
  "dueDate": "2026-11-30",
  "payer": {
    "taxNumber": "12345678909",
    "name": "MARIA DA SILVA"
  },
  "daysAfterDueDate": 5
}',
  'headers' => [
    'Authorization' => 'Bearer <token>',
    'Content-Type' => 'application/json',
    'X-Tenant-Id' => 'X-Tenant-Id',
  ],
]);

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

```csharp Pix Automatic_createPixAutomaticCompositeQRDueDate_example
using RestSharp;

var client = new RestClient("https://tenant.api.corpx.com/v1/accounts/accountId/pix/automatic/composite-qr-codes/due-date");
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\": \"1542bab1-12e8-4b12-bb70-605882e57238\",\n  \"pixKey\": \"3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21\",\n  \"value\": 49.9,\n  \"requestExpiration\": \"2026-11-20T23:59:59-03:00\",\n  \"recurrence\": {\n    \"frequency\": \"monthly\",\n    \"firstPaymentDate\": \"2026-12-30\",\n    \"contract\": {\n      \"number\": \"CONTRATO-1002\"\n    },\n    \"debtor\": {\n      \"taxNumber\": \"12345678909\",\n      \"name\": \"MARIA DA SILVA\"\n    },\n    \"value\": 49.9\n  },\n  \"dueDate\": \"2026-11-30\",\n  \"payer\": {\n    \"taxNumber\": \"12345678909\",\n    \"name\": \"MARIA DA SILVA\"\n  },\n  \"daysAfterDueDate\": 5\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift Pix Automatic_createPixAutomaticCompositeQRDueDate_example
import Foundation

let headers = [
  "X-Tenant-Id": "X-Tenant-Id",
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = [
  "identifier": "1542bab1-12e8-4b12-bb70-605882e57238",
  "pixKey": "3f1c0b6e-9a2d-4c71-8e55-1b7a0d4c9e21",
  "value": 49.9,
  "requestExpiration": "2026-11-20T23:59:59-03:00",
  "recurrence": [
    "frequency": "monthly",
    "firstPaymentDate": "2026-12-30",
    "contract": ["number": "CONTRATO-1002"],
    "debtor": [
      "taxNumber": "12345678909",
      "name": "MARIA DA SILVA"
    ],
    "value": 49.9
  ],
  "dueDate": "2026-11-30",
  "payer": [
    "taxNumber": "12345678909",
    "name": "MARIA DA SILVA"
  ],
  "daysAfterDueDate": 5
] 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/automatic/composite-qr-codes/due-date")! 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()
```