This resource represents the transaction event that has happened in your account.
Sample TransactionJSON
Transactions attributes
Identifier of the customer for which this transaction is made
Identifier of the subscription for which this transaction is made.
Identifier of the payment source for which this transaction is made
The payment method of this transaction
Card
Cash
Check
Only applicable for a transaction of type
= refund.
This value is set by Chargebee when an automated chargeback
occurs. You can also set this explicitly when recording a refund
.
Bank Transfer
The reference number for this transaction. For example, the check number when payment_method
= check
.
Gateway through which this transaction was done. Applicable only for 'Card' Payment Method
Chargebee test gateway.
Chargebee Payments gateway
Adyen is a payment gateway.
Stripe is a payment gateway.
WePay is a payment gateway.
Type of the transaction.
The transaction represents an authorization for capturing the amount
from the customer's payment_source
.
The transaction represents capture of amount
from the customer's payment_source
.
The transaction represents a refund of amount
to the customer's payment_source
.
Indicates a reversal transaction.
Indicates the time at which the final status of the transaction has been marked.
Exchange rate used for base currency conversion
The id with which this transaction is referred in gateway.
The status of this transaction.
Transaction is being processed by the gateway. This typically happens for direct debit transactions or, in case of cards, refund transactions. Such transactions can take 2-7 days to complete, depending on the gateway and payment method.
The transaction is successful.
The transaction got voided or authorization expired at gateway.
Transaction failed. Refer the 'error_code' and 'error_text' fields to know the reason for failure
Transaction failed because of Gateway not accepting the connection.
When connection with the Gateway gets terminated abruptly. For needs_attention
status Chargebee automatically reconcile the transaction for few gateways, for rest of the gateways you have to use the Reconcile transaction API.
You can use this API to update the id_at_gateway
(Gateway Transaction ID) and status
for a needs_attention
transaction to be reconciled at par with the gateway.
Learn more
about needs_attention
transaction status
Indicates that a successful payment transaction has failed now due to a late failure notification from the payment gateway, typically caused by issues like insufficient funds or a closed bank account.
Indicates whether or not the transaction has been identified as fraudulent.
The transaction has been marked as safe
The transaction has been identified as potentially fraudulent by the gateway
The transaction has been marked as fraudulent
Marker for on-session payments (3DS). null indicates 'merchant'.
Customer initiated 3DS payment
Payment initiated on stored payment method by the merchant
Indicates whether this transaction has gone through 3DS. Applicable only for 'on-session' payments & verifications.If 3DS is not enforced by the gateway/bank or if the customers' card is not enrolled, this will be false.
Type of authorization transaction.
The transaction has been created to block the funds from payment method.
The transaction has been created for payment method verification.
The transaction was authorized in advance for capture at a later time by a scheduled system job. The capture may succeed or fail, and its outcome is recorded as a linked transaction under linked_payments
.
Error message received from the payment gateway on failure.
Timestamp indicating when the payment was voided or authorization expired at gateway.
Version number of this resource. The resource_version
is updated with a new timestamp in milliseconds for every change made to the resource. This attribute will be present only if the resource has been updated after 2016-09-28.
Timestamp indicating when this transaction was last updated. This attribute will be present only if the resource has been updated after 2016-09-28.
Short description why the transaction was marked as fraud/suspicious
Identifier of the custom payment method of this transaction.
This is the part of the amount
which has not been invoiced yet and is therefore added to excess_payments
for the customer. Applicable only for a transaction of type
= payment
.
The masked card number used for this transaction. Applicable only for 'Card' Payment Method
This is the id
of the offline transaction that is being refunded or reversed. Applicable only for transaction of type
= refund
or payment_reversal
.
This is the id
of the transaction (always of type
= payment
) being refunded. Applicable only for transaction of type
= refund
.
This is the id
of the transaction (always of type
= authorization
) which authorizes the payment being captured. Applicable only for transaction of type
= payment
.
This is the part of the authorized amount
that is yet to be captured. The payment capture is recorded as a transaction of of type
= payment.
Applicable only for a transaction of type
= authorization
.
Reversal transaction id. Applicable only for payment transactions.
A unique id used to track this transaction across various systems you integrate with. This id is passed to the payment gateway when the transaction is initiated. Supported only for the Exact payment gateway .
The unique ID of the business entity
of this transaction.
This is always the same as the business entity of the customer.
Name of the custom payment method of this transaction.
Applicable only for 'Payment' transactions. The list of invoices this 'payment' transaction is applied to.
Applicable only for 'Refund' transactions. The list of Credit Notes this 'refund' transaction is associated with.
Applicable only for Payment transactions. It only returns values when the transaction is not associated with an invoice, and that there is a refund for the transaction.
The list of payments captured for this authorization transaction.
Comprehensive information regarding the error experienced during an unsuccessful or declined transaction. Learn more about gateway error references