Requires the transaction.create permission. Creates a new payment transaction. For PIX, supports dynamic QR code generation and provider integration.
For card payments, require_3ds: true can be used to force an immediate
AWAITING_3DS status (transaction-first 3DS flow), without waiting for
risk or soft-decline triggers.
Use refuse_on_challenge: true to fail fast instead of transitioning to
AWAITING_3DS when a challenge would be required.
Company API key for authentication
Schema for creating a new transaction.
Payment provider identifier
CELCOIN "CELCOIN"
Unique request ID for this transaction (used for idempotency)
1"request-123"
Transaction amount in cents (e.g., 10050 = R$ 100,50)
1 <= x <= 150000000010050
Transaction capture method:
EMV, MAGSTRIPE, ECOMMERCE, CONTACTLESS_ICC "ECOMMERCE"
Payment method:
CREDIT_CARD, DEBIT_CARD, PIX, BOLEPIX "PIX"
Transaction currency (defaults to BRL)
BRL "BRL"
Number of installments (1-18). Defaults to 1 if not sent. Must be 1 when payment_method is PIX or BOLEPIX.
1 <= x <= 181
PIX-specific data. Required when payment_method is PIX.
When due_date is provided: consumer is required (full_name, document_number, document_type)
and use expiration_in_days_after_due_date (do not send expiration_in_seconds).
When due_date is NOT provided: use expiration_in_seconds (do not send expiration_in_days_after_due_date).
{
"pix_key_id": "pix_key_123",
"description": "Payment for order #123",
"expiration_in_seconds": 3600,
"due_date": "2025-12-31",
"expiration_in_days_after_due_date": 30,
"interest": {
"percentage": 1,
"modality": "PERCENTAGE_PER_MONTH"
},
"fine": { "percentage": 2, "modality": "PERCENTAGE" },
"discount": {
"modality": "PERCENTAGE_UNTIL_DATE",
"discount_dates_config": [
{
"until_date": "2025-12-15",
"percentage": 10
},
{
"until_date": "2025-12-20",
"percentage": 5
}
]
}
}
BOLEPIX-specific data. Required when payment_method is BOLEPIX.
When payment_method is BOLEPIX, consumer is required with full_name, document_type,
document_number, and full address including address.street_number.
{
"due_date": "2025-12-31",
"expiration_in_days_after_due_date": 30,
"discount": {
"amount": 5000,
"modality": "FIXED",
"until_date": "2025-12-25"
},
"fine_percentage": 2,
"monthly_interest_percentage": 1
}
Card payment data. Required for CREDIT_CARD and DEBIT_CARD payment methods.
{
"network_token": "ev:encrypted:...",
"cryptogram": "1234567890123456",
"expiry_month": "12",
"expiry_year": "2025",
"authentication_type": "3DS",
"wallet_type": "APPLE_PAY",
"display_name": "Visa •••• 1111"
}
ID of an authenticated 3DS session to use for this transaction (session-first flow). When provided, the cryptogram and ECI from the session are injected into the card data. The session must be authenticated (auth_status=AUTHENTICATED), not expired, not already consumed, and match the transaction's company, amount, and currency.
"550e8400-e29b-41d4-a716-446655440000"
Card transactions only.
When true, the transaction is created directly in AWAITING_3DS
and is not sent to the provider until /authenticate is called with
an authenticated 3DS session.
true
Card transactions only.
When true, challenge-triggered paths are refused (REFUSED)
instead of transitioning to AWAITING_3DS.
Cannot be true together with require_3ds.
false
Optional consumer/customer information.
Required with full_name, document_number, and document_type when pix_data.due_date is provided.
When payment_method is BOLEPIX, consumer is required and must include full_name, document_type,
document_number, and full address including address.street_number.
{
"full_name": "João Silva",
"email": "[email protected]",
"pix_key": "[email protected]",
"document_type": "CPF",
"document_number": "81146431023",
"phone": "+5511999999999",
"birth_date": "15-08-1990"
}
Optional additional metadata (key-value pairs)
{
"order_id": "order-123",
"customer_id": "cust-456"
}
Optional split rules for transaction revenue sharing.
Important rules:
[
{
"company_id": "company-1",
"amount": 5000,
"charge_processing_cost": true
},
{
"company_id": "company-2",
"amount": 5050,
"charge_processing_cost": false
}
]
Optional text shown on cardholder statement (max 13 chars)
13"MYSTORE"
Optional terminal serial number
"12345678"
Optional Network Sequential Number
"000123"
Optional fee policy ID to use for this transaction. If provided, this takes priority over the company's default fee policy. The fee policy must belong to the same organization as the company.
"123e4567-e89b-12d3-a456-426614174000"
Transaction created successfully
Transaction data returned by the API
Transaction unique identifier
"tx_123456789"
Payment provider
CELCOIN, RINNE "CELCOIN"
Affiliation ID for this transaction
"a3dbd0c2-9f79-4f86-8caa-47779b3f2793"
Unique request ID for this transaction used for idempotency
"request-123"
Merchant Category Code
"5411"
Transaction amount in cents
10050
Transaction currency
BRL "BRL"
Transaction pricing information
Transaction status
PROCESSING, AUTHORIZED, APPROVED, REFUNDED, PARTIALLY_REFUNDED, PENDING_REFUND, CHARGEDBACK, WAITING_PAYMENT, AWAITING_3DS, REFUSED, FAILED, EXPIRED, PENDING_CANCELLATION, CANCELLED "APPROVED"
Transaction capture method
EMV, MAGSTRIPE, ECOMMERCE, CONTACTLESS_ICC "EMV"
Number of installments
1
Payment method
CREDIT_CARD, DEBIT_CARD, PIX, BOLEPIX "PIX"
Company ID that owns this transaction
"a3dbd0c2-9f79-4f86-8caa-47779b3f2793"
Transaction creation timestamp
"2023-12-01T10:00:00.000Z"
Transaction ID in provider system
"prov_tx_123456"
Fee policy ID applied to this transaction
"fee_policy_123"
Cost policy ID applied to this transaction
"cost_policy_123"
Approved amount in cents
10050
Total amount refunded in cents (sum of completed refunds)
0
Acquirer response code
"00"
Acquirer name
"Visa"
PIX-specific data (present if payment_method is PIX)
Bolepix-specific data (present if payment_method is BOLEPIX)
Soft descriptor shown on cardholder statement
"MYSTORE"
Terminal serial number
"12345678"
Network Sequential Number
"000123"
Additional metadata
Latest refund timestamp (for the most recent completed refund)
"2023-12-01T10:00:00.000Z"
Creation timestamp in provider system
"2023-12-01T09:00:00.000Z"
Status reason details
PROVIDER, ACQUIRER, ANTIFRAUD, INTERNAL_ERROR, NO_ACQUIRER, ACQUIRER_TIMEOUT, CHALLENGE_NOT_ALLOWED "PROVIDER"
Transaction approval timestamp
"2023-12-01T10:00:00.000Z"
Company full name
"Test Company"
Company name
"Test Company"
Organization transaction ID (for refunds/chargebacks)
"tx_organization_123456"
Consumer information
Transaction last update timestamp
"2023-12-01T10:00:00.000Z"