curl --request POST \
--url https://plugin-pix-indirect.api.lerian.net/v1/collections/duedate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Account-Id: <x-account-id>' \
--data '
{
"amount": {
"original": "100.00"
},
"debtor": {
"document": "52998224725",
"name": "João da Silva",
"address": "Rua das Flores, 123",
"city": "São Paulo",
"email": "joao@example.com",
"state": "SP",
"zipCode": "01310-100"
},
"dueDate": "2024-12-31",
"receiverKey": "+5511999999999",
"txId": "TXabcdefghijklmno123456789",
"validAfterDue": 5,
"additionalInfo": {
"customerId": "67890",
"orderId": "12345"
},
"description": "Payment for order #12345",
"locationInformation": {
"categoryCode": "5411",
"merchantCity": "São Paulo",
"merchantName": "Loja ABC",
"postalCode": "01310-100"
},
"metadata": {},
"tags": [
"ecommerce",
"subscription"
]
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://plugin-pix-indirect.api.lerian.net/v1/collections/duedate"
payload := strings.NewReader("{\n \"amount\": {\n \"original\": \"100.00\"\n },\n \"debtor\": {\n \"document\": \"52998224725\",\n \"name\": \"João da Silva\",\n \"address\": \"Rua das Flores, 123\",\n \"city\": \"São Paulo\",\n \"email\": \"joao@example.com\",\n \"state\": \"SP\",\n \"zipCode\": \"01310-100\"\n },\n \"dueDate\": \"2024-12-31\",\n \"receiverKey\": \"+5511999999999\",\n \"txId\": \"TXabcdefghijklmno123456789\",\n \"validAfterDue\": 5,\n \"additionalInfo\": {\n \"customerId\": \"67890\",\n \"orderId\": \"12345\"\n },\n \"description\": \"Payment for order #12345\",\n \"locationInformation\": {\n \"categoryCode\": \"5411\",\n \"merchantCity\": \"São Paulo\",\n \"merchantName\": \"Loja ABC\",\n \"postalCode\": \"01310-100\"\n },\n \"metadata\": {},\n \"tags\": [\n \"ecommerce\",\n \"subscription\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Account-Id", "<x-account-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(string(body))
}const options = {
method: 'POST',
headers: {
'X-Account-Id': '<x-account-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: {original: '100.00'},
debtor: {
document: '52998224725',
name: 'João da Silva',
address: 'Rua das Flores, 123',
city: 'São Paulo',
email: 'joao@example.com',
state: 'SP',
zipCode: '01310-100'
},
dueDate: '2024-12-31',
receiverKey: '+5511999999999',
txId: 'TXabcdefghijklmno123456789',
validAfterDue: 5,
additionalInfo: {customerId: '67890', orderId: '12345'},
description: 'Payment for order #12345',
locationInformation: {
categoryCode: '5411',
merchantCity: 'São Paulo',
merchantName: 'Loja ABC',
postalCode: '01310-100'
},
metadata: {},
tags: ['ecommerce', 'subscription']
})
};
fetch('https://plugin-pix-indirect.api.lerian.net/v1/collections/duedate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://plugin-pix-indirect.api.lerian.net/v1/collections/duedate"
payload = {
"amount": { "original": "100.00" },
"debtor": {
"document": "52998224725",
"name": "João da Silva",
"address": "Rua das Flores, 123",
"city": "São Paulo",
"email": "joao@example.com",
"state": "SP",
"zipCode": "01310-100"
},
"dueDate": "2024-12-31",
"receiverKey": "+5511999999999",
"txId": "TXabcdefghijklmno123456789",
"validAfterDue": 5,
"additionalInfo": {
"customerId": "67890",
"orderId": "12345"
},
"description": "Payment for order #12345",
"locationInformation": {
"categoryCode": "5411",
"merchantCity": "São Paulo",
"merchantName": "Loja ABC",
"postalCode": "01310-100"
},
"metadata": {},
"tags": ["ecommerce", "subscription"]
}
headers = {
"X-Account-Id": "<x-account-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"amount": {
"original": "100.00",
"abatement": {
"modality": "PERCENT",
"value": "3.00"
},
"discount": {
"modality": "AMOUNT_ADVANCE_BUSINESS_DAY",
"discountDateFixed": [
{
"date": "2024-12-25",
"value": "10.00"
}
],
"value": "5.00"
},
"fine": {
"modality": "PERCENT",
"value": "2.00"
},
"interest": {
"modality": "PERCENTAGE_PER_MONTH_CALENDAR_DAYS",
"value": "1.00"
}
},
"createdAt": "2024-01-15T10:30:00Z",
"debtor": {
"document": "52998224725",
"name": "João da Silva",
"address": "Rua das Flores, 123",
"city": "São Paulo",
"email": "joao@example.com",
"state": "SP",
"zipCode": "01310-100"
},
"dueDate": "2024-12-31",
"emv": "00020126580014br.gov.bcb.pix...",
"id": "550e8400-e29b-41d4-a716-446655440010",
"locationUrl": "https://api.example.com/qr/550e8400",
"receiver": {
"address": "Rua das Flores, 123",
"city": "São Paulo",
"document": "52998224725",
"name": "João da Silva",
"state": "SP",
"zipCode": "01310-100",
"tradeName": "Company Name"
},
"receiverKey": "+5511999999999",
"review": 0,
"status": "ACTIVE",
"txId": "TXabcdefghijklmno123456789",
"updatedAt": "2024-01-20T14:45:00Z",
"validAfterDue": 5,
"additionalInfo": {
"customerId": "67890",
"orderId": "12345"
},
"deletedAt": "2024-01-25T10:30:00Z",
"description": "Payment for order #12345",
"metadata": {},
"tags": [
"ecommerce",
"subscription"
]
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}Create a Dynamic Charge with Due Date
Use this endpoint to create a due date Pix collection (cobrança com vencimento) with complex payment rules including fines, interest, discounts, and rebates.
Notes:
- Similar to traditional boletos with Pix payment capability
- Due date defines when payment is expected
- Supports complex amount calculations with fines, interest, discounts, and rebates
- Requires complete debtor and receiver information
- Transaction ID (txId) must be unique per receiver
- Collection remains valid for a configurable period after the due date
curl --request POST \
--url https://plugin-pix-indirect.api.lerian.net/v1/collections/duedate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Account-Id: <x-account-id>' \
--data '
{
"amount": {
"original": "100.00"
},
"debtor": {
"document": "52998224725",
"name": "João da Silva",
"address": "Rua das Flores, 123",
"city": "São Paulo",
"email": "joao@example.com",
"state": "SP",
"zipCode": "01310-100"
},
"dueDate": "2024-12-31",
"receiverKey": "+5511999999999",
"txId": "TXabcdefghijklmno123456789",
"validAfterDue": 5,
"additionalInfo": {
"customerId": "67890",
"orderId": "12345"
},
"description": "Payment for order #12345",
"locationInformation": {
"categoryCode": "5411",
"merchantCity": "São Paulo",
"merchantName": "Loja ABC",
"postalCode": "01310-100"
},
"metadata": {},
"tags": [
"ecommerce",
"subscription"
]
}
'package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://plugin-pix-indirect.api.lerian.net/v1/collections/duedate"
payload := strings.NewReader("{\n \"amount\": {\n \"original\": \"100.00\"\n },\n \"debtor\": {\n \"document\": \"52998224725\",\n \"name\": \"João da Silva\",\n \"address\": \"Rua das Flores, 123\",\n \"city\": \"São Paulo\",\n \"email\": \"joao@example.com\",\n \"state\": \"SP\",\n \"zipCode\": \"01310-100\"\n },\n \"dueDate\": \"2024-12-31\",\n \"receiverKey\": \"+5511999999999\",\n \"txId\": \"TXabcdefghijklmno123456789\",\n \"validAfterDue\": 5,\n \"additionalInfo\": {\n \"customerId\": \"67890\",\n \"orderId\": \"12345\"\n },\n \"description\": \"Payment for order #12345\",\n \"locationInformation\": {\n \"categoryCode\": \"5411\",\n \"merchantCity\": \"São Paulo\",\n \"merchantName\": \"Loja ABC\",\n \"postalCode\": \"01310-100\"\n },\n \"metadata\": {},\n \"tags\": [\n \"ecommerce\",\n \"subscription\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Account-Id", "<x-account-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(string(body))
}const options = {
method: 'POST',
headers: {
'X-Account-Id': '<x-account-id>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
amount: {original: '100.00'},
debtor: {
document: '52998224725',
name: 'João da Silva',
address: 'Rua das Flores, 123',
city: 'São Paulo',
email: 'joao@example.com',
state: 'SP',
zipCode: '01310-100'
},
dueDate: '2024-12-31',
receiverKey: '+5511999999999',
txId: 'TXabcdefghijklmno123456789',
validAfterDue: 5,
additionalInfo: {customerId: '67890', orderId: '12345'},
description: 'Payment for order #12345',
locationInformation: {
categoryCode: '5411',
merchantCity: 'São Paulo',
merchantName: 'Loja ABC',
postalCode: '01310-100'
},
metadata: {},
tags: ['ecommerce', 'subscription']
})
};
fetch('https://plugin-pix-indirect.api.lerian.net/v1/collections/duedate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://plugin-pix-indirect.api.lerian.net/v1/collections/duedate"
payload = {
"amount": { "original": "100.00" },
"debtor": {
"document": "52998224725",
"name": "João da Silva",
"address": "Rua das Flores, 123",
"city": "São Paulo",
"email": "joao@example.com",
"state": "SP",
"zipCode": "01310-100"
},
"dueDate": "2024-12-31",
"receiverKey": "+5511999999999",
"txId": "TXabcdefghijklmno123456789",
"validAfterDue": 5,
"additionalInfo": {
"customerId": "67890",
"orderId": "12345"
},
"description": "Payment for order #12345",
"locationInformation": {
"categoryCode": "5411",
"merchantCity": "São Paulo",
"merchantName": "Loja ABC",
"postalCode": "01310-100"
},
"metadata": {},
"tags": ["ecommerce", "subscription"]
}
headers = {
"X-Account-Id": "<x-account-id>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"amount": {
"original": "100.00",
"abatement": {
"modality": "PERCENT",
"value": "3.00"
},
"discount": {
"modality": "AMOUNT_ADVANCE_BUSINESS_DAY",
"discountDateFixed": [
{
"date": "2024-12-25",
"value": "10.00"
}
],
"value": "5.00"
},
"fine": {
"modality": "PERCENT",
"value": "2.00"
},
"interest": {
"modality": "PERCENTAGE_PER_MONTH_CALENDAR_DAYS",
"value": "1.00"
}
},
"createdAt": "2024-01-15T10:30:00Z",
"debtor": {
"document": "52998224725",
"name": "João da Silva",
"address": "Rua das Flores, 123",
"city": "São Paulo",
"email": "joao@example.com",
"state": "SP",
"zipCode": "01310-100"
},
"dueDate": "2024-12-31",
"emv": "00020126580014br.gov.bcb.pix...",
"id": "550e8400-e29b-41d4-a716-446655440010",
"locationUrl": "https://api.example.com/qr/550e8400",
"receiver": {
"address": "Rua das Flores, 123",
"city": "São Paulo",
"document": "52998224725",
"name": "João da Silva",
"state": "SP",
"zipCode": "01310-100",
"tradeName": "Company Name"
},
"receiverKey": "+5511999999999",
"review": 0,
"status": "ACTIVE",
"txId": "TXabcdefghijklmno123456789",
"updatedAt": "2024-01-20T14:45:00Z",
"validAfterDue": 5,
"additionalInfo": {
"customerId": "67890",
"orderId": "12345"
},
"deletedAt": "2024-01-25T10:30:00Z",
"description": "Payment for order #12345",
"metadata": {},
"tags": [
"ecommerce",
"subscription"
]
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}{
"message": "<string>",
"code": "<string>",
"title": "<string>",
"fields": {},
"headers": {},
"paths": {},
"queryParams": {},
"raw": "<string>"
}Authorizations
JWT bearer token issued by the identity provider.
Headers
Account ID (UUID format)
Body
Show child attributes
Show child attributes
Show child attributes
Show child attributes
1"2024-12-31"
1"+5511999999999"
1"TXabcdefghijklmno123456789"
x >= 15
Show child attributes
Show child attributes
{ "customerId": "67890", "orderId": "12345" }
"Payment for order #12345"
Show child attributes
Show child attributes
Show child attributes
Show child attributes
["ecommerce", "subscription"]
Response
Created
Show child attributes
Show child attributes
"2024-01-15T10:30:00Z"
Show child attributes
Show child attributes
"2024-12-31"
"00020126580014br.gov.bcb.pix..."
"550e8400-e29b-41d4-a716-446655440010"
"https://api.example.com/qr/550e8400"
Show child attributes
Show child attributes
"+5511999999999"
0
"ACTIVE"
"TXabcdefghijklmno123456789"
"2024-01-20T14:45:00Z"
5
Show child attributes
Show child attributes
{ "customerId": "67890", "orderId": "12345" }
"2024-01-25T10:30:00Z"
"Payment for order #12345"
Show child attributes
Show child attributes
["ecommerce", "subscription"]
Was this page helpful?

