pixcli
CLI Commands

pixcli charge

Create and manage Pix charges (cobranças)

Commands

pixcli charge create

Create a new immediate Pix charge (cobrança imediata).

pixcli charge create --amount 25.00 --key "+5511999999999" --description "Order #123"

Output:

✅ Charge created
   TxID:    abc123def456
   Amount:  R$25.00
   Status:  ATIVA
   Expires: 2026-03-20T10:00:00Z
   Copy-paste: 00020126...

Flags

FlagRequiredDefaultDescription
--amountYesAmount in BRL (e.g. 10.50)
--keyNoProfile defaultRecipient Pix key
--descriptionNoPayment description
--expiryNo3600Expiry in seconds
--debtor-docNoDebtor CPF or CNPJ
--debtor-nameNoDebtor name
--txidNoAuto-generatedCustom transaction ID

Charge with debtor info

pixcli charge create \
  --amount 150.00 \
  --key "+5511999999999" \
  --description "Invoice #456" \
  --debtor-doc "12345678901" \
  --debtor-name "João Silva" \
  --expiry 7200

JSON output for scripting

pixcli charge create --amount 25.00 --output json
{
  "txid": "abc123def456",
  "status": "ATIVA",
  "amount": "25.00",
  "pix_key": "+5511999999999",
  "expiration": 3600,
  "created_at": "2026-03-19T10:00:00Z",
  "brcode": "00020126580014br.gov.bcb.pix..."
}

In sandbox mode, charges under R$10.00 are automatically confirmed by the Efí sandbox.


pixcli charge get

Get details of a charge by its transaction ID.

pixcli charge get abc123def456

Output:

📋 Charge Details
   TxID:        abc123def456
   Amount:      R$25.00
   Status:      ATIVA
   Description: Order #123
   Created:     2026-03-19T10:00:00Z
   Expires:     2026-03-19T11:00:00Z

Charge Lifecycle

StatusMeaning
ATIVAActive — waiting for payment
CONCLUIDACompleted — payment received
REMOVIDA_PELO_USUARIO_RECEBEDORRemoved by recipient
REMOVIDA_PELO_PSPRemoved by PSP (expired)

pixcli charge list

List recent charges.

pixcli charge list --days 7

Output:

📋 Recent Charges (last 7 days)

   abc123def456  R$25.00   ATIVA       2026-03-19T10:00:00Z
   xyz789ghi012  R$50.00   CONCLUIDA   2026-03-18T15:30:00Z
   mno345pqr678  R$10.00   CONCLUIDA   2026-03-17T09:00:00Z

Flags

FlagRequiredDefaultDescription
--daysNo7Number of days to look back
--fromNoStart date (ISO 8601, overrides --days)
--toNoEnd date (ISO 8601)

Filter by date range

pixcli charge list --from 2026-03-01T00:00:00Z --to 2026-03-15T23:59:59Z

What is a TxID?

A TxID (Transaction ID) is a unique identifier for a Pix charge. It's generated by the PSP when you create a charge, or you can provide a custom one with --txid. The TxID is alphanumeric, 26–35 characters long, and is used to track the lifecycle of a charge.

On this page