Creates a new transaction for a merchant that belongs to the authenticated organization
Company API key for authentication
The merchant ID
Schema for creating a new transaction.
Required fields: provider, request_id, amount, capture_method, payment_method
Conditional requirements:
installments must be 1 when payment_method is PIX, if not sent, defaults to 1pix_data.due_date is provided: consumer is required with full_name, document_number, and document_typepix_data.due_date is provided: expiration_in_seconds must not be provided. Use expiration_in_days_after_due_date insteadpix_data.due_date is NOT provided: expiration_in_days_after_due_date must not be provided. Use expiration_in_seconds insteadPayment 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)
x >= 110050
Transaction capture method:
EMV, MAGSTRIPE, ECOMMERCE, CONTACTLESS_ICC "ECOMMERCE"
Payment method:
CREDIT_CARD, DEBIT_CARD, BOLETO, MONEY, PIX "PIX"
Transaction currency (defaults to BRL)
BRL "BRL"
Number of installments (1-18). Must be 1 for PIX payments.
1 <= x <= 181
PIX-specific data for creating PIX transactions.
due_date is provided.due_date is provided: expiration_in_seconds must not be provided. Use expiration_in_days_after_due_date insteaddue_date is NOT provided: expiration_in_days_after_due_date must not be provided. Use expiration_in_seconds insteadFIXED_AMOUNT_UNTIL_DATE or PERCENTAGE_UNTIL_DATE modality: all discount_dates_config dates must be before or equal to 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
}
]
}
}Optional consumer/customer information. Required with full_name, document_number, and document_type when pix_data.due_date is provided.
{
"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.
"507f1f77bcf86cd799439011"
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, REFUSED, EXPIRED "APPROVED"
Transaction capture method
EMV, MAGSTRIPE, ECOMMERCE, CONTACTLESS_ICC "EMV"
Number of installments
1
Payment method
CREDIT_CARD, DEBIT_CARD, BOLETO, MONEY, PIX "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)
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 "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"