This resource represents the transaction event that has happened in your account.
{
"transaction": {
"amount": 1395,
"amount_unused": 0,
"currency_code": "USD",
"customer_id": "__test__5SK0bLNFRFuCEDDLg",
"date": 1517506742,
"gateway": "chargebee",
"id": "txn___test__5SK0bLNFRFuCEEELm",
"id_at_gateway": "cb___test__5SK0bLNFRFuCEEJLn",
"linked_invoices": [
{
"applied_amount": 1395,
"applied_at": 1517506742,
"invoice_amount": 1395,
"invoice_date": 1517506742,
"invoice_id": "__demo_inv__1"
}
],
"linked_refunds": [],
"masked_card_number": "************1111",
"object": "transaction",
"payment_method": "card",
"status": "success",
"subscription_id": "__test__5SK0bLNFRFuCEDDLg",
"type": "payment"
}
}The reference number for this transaction. For example, the check number when payment_method
= check
.
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
.
Applicable only for 'Payment' transactions. The list of invoices this 'payment' transaction is applied to.
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.
Lists all the transactions.
Retrieves the transactions for a customer sorted by the recent ones on top.
Retrieves the transactions for a subscription sorted by the recent ones on top.
Retrieves the transactions for an invoice with the recent ones on top. This returns all the payment attempts(manual & automatic) made for this invoice.
Retrieve a transaction identified by its unique id.
To record offline payments (Cash,Check etc) for 'payment_due' or 'not_paid' invoices.
The invoice status will be marked as 'paid' when the amount that is due is recorded.
The reference number for this transaction. For example, the check number when payment_method
= check
.