api-charge-pix
Original:🇺🇸 English
Translated
Guide for managing Pix charges, accounts, and payments using Kobana API. Use when the user wants to create, list, update, or cancel Pix charges, manage Pix accounts, or handle charge payments.
1installs
Added on
NPX Install
npx skill4agent add universokobana/kobana-agent-skills api-charge-pixTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Kobana Charge API Skill
Manage Pix charges, accounts, and payments via Kobana API.
Base URLs
Production: https://api.kobana.com.br
Sandbox: https://api-sandbox.kobana.com.brAuthentication
Authorization: Bearer {your_api_token}API Endpoints Overview
Pix Accounts
| Method | Endpoint | Description |
|---|---|---|
| GET | | List all Pix accounts |
| POST | | Create a new Pix account |
| GET | | Get a specific Pix account |
| PUT | | Update a Pix account |
| DELETE | | Delete a Pix account |
Pix Charges
| Method | Endpoint | Description |
|---|---|---|
| GET | | List all Pix charges |
| POST | | Create a new Pix charge |
| GET | | Get a specific Pix charge |
| PUT | | Update a Pix charge |
| DELETE | | Delete a Pix charge |
| POST | | Cancel a Pix charge |
Pix Commands
| Method | Endpoint | Description |
|---|---|---|
| GET | | List commands for a Pix charge |
| GET | | Get a specific command |
Charge Payments
| Method | Endpoint | Description |
|---|---|---|
| GET | | List all payments |
| POST | | Create a new payment |
| GET | | Get a specific payment |
| DELETE | | Delete a payment |
Creating a Pix Charge
Minimum Required Parameters
json
POST /v2/charge/pix
{
"amount": 100.50,
"pix_account_uid": "018df180-7208-727b-...",
"expire_at": "2026-12-02T10:03:56-03:00"
}Complete Example (Billing Pix)
json
POST /v2/charge/pix
{
"amount": 500.00,
"pix_account_uid": "018df180-7208-727b-...",
"expire_at": "2026-02-10T23:59:59-03:00",
"registration_kind": "billing",
"payer": {
"document_number": "12.345.678/0001-90",
"name": "Company LTDA",
"email": "finance@company.com"
},
"fine_type": "percentage",
"fine_percentage": 2.0,
"interest_type": "monthly_percentage_calendar",
"interest_percentage": 1.0,
"discount_type": "advance_percentage_calendar",
"discount_first_percentage": 5.0,
"discount_first_days": 5,
"revoke_days": 30,
"external_id": "invoice_2026_001",
"tags": ["monthly", "subscription"],
"message": "Invoice January/2026"
}Pix Types
Instant Pix (registration_kind: "instant"
)
registration_kind: "instant"- Short expiration (minutes to hours)
- No interest, fines, or discounts
- Use for: e-commerce, delivery, point-of-sale
Billing Pix (registration_kind: "billing"
)
registration_kind: "billing"- Formal due date
- Supports interest, fines, discounts
- Stays active after due date (if set)
revoke_days - Use for: monthly invoices, subscriptions
Important: Asynchronous Behavior
The QR Code is NOT returned in the initial response. Options:
- Poll the charge - GET until
/v2/charge/pix/{uid}isregistration_statusconfirmed - Use webhooks - Configure webhook for event
pix.register.confirmed
Listing and Filtering
List Pix Charges with Filters
GET /v2/charge/pix?status=opened&created_from=2026-01-01&per_page=50| Parameter | Description |
|---|---|
| Filter by status (opened, paid, overdue, canceled) |
| Filter by registration status |
| Filter by Pix account |
| Filter by creation date |
| Filter by expiration date |
| Filter by payment date |
| Filter by TXID |
| Filter by external ID |
| Filter by tags |
| Pagination |
List Pix Accounts
GET /v2/charge/pix_accountsUpdating and Canceling
Update a Pix Charge
json
PUT /v2/charge/pix/{uid}/update
{
"amount": 550.00,
"expire_at": "2026-02-15T23:59:59-03:00"
}Cancel a Pix Charge
POST /v2/charge/pix/{uid}/cancelStatus Reference
Charge Status
- - Open (initial)
opened - - Paid
paid - - Overdue
overdue - - Canceled
canceled - - Registration failed
generation_failed
Registration Status
- - Waiting
pending - - Ready (has QR Code)
confirmed - /
rejected- Errorfailed
Common Parameters
Fine (after due date)
json
{
"fine_type": "percentage", // or "amount"
"fine_percentage": 2.0
}Interest
json
{
"interest_type": "monthly_percentage_calendar",
"interest_percentage": 1.0
}Interest types: , , , , , , ,
daily_amount_calendardaily_percentage_calendarmonthly_percentage_calendaryearly_percentage_calendardaily_amount_businessdaily_percentage_businessmonthly_percentage_businessyearly_percentage_businessDiscount
json
{
"discount_type": "advance_percentage_calendar",
"discount_first_percentage": 5.0,
"discount_first_days": 5
}Days Active After Due Date
json
{
"revoke_days": 30
}Required when using interest or fines.
Best Practices
- Poll or use webhooks - QR Code comes asynchronously
- Use external_id - Track charges in your system
- Set revoke_days - Required for interest/fines
- Validate CPF/CNPJ - Before sending to API
- Use X-Idempotency-Key header - Prevent duplicates
- Test in sandbox - Before production
Reference Documentation
See references/REFERENCE.md for complete API documentation including all parameters, response formats, and error codes.