{
"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"
}
}
payment_method
= check
. 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
. curl https://{site}.chargebee.com/api/v1/transactions \ -G \ -u {site_api_key}:\ --data-urlencode limit=2
curl https://{site}.chargebee.com/api/v1/customers/__test__5SK0bLNFRFuCFQeMZ/transactions \ -G \ -u {site_api_key}:\ --data-urlencode limit=2
curl https://{site}.chargebee.com/api/v1/subscriptions/__test__5SK0bLNFRFuCGAUMu/transactions \ -G \ -u {site_api_key}:\ --data-urlencode limit=2
curl https://{site}.chargebee.com/api/v1/invoices/__demo_inv__5/transactions \ -G \ -u {site_api_key}:\ --data-urlencode limit=2
curl https://{site}.chargebee.com/api/v1/transactions/txn___test__5SK0bLNFRFuCF6tMV \ -u {site_api_key}:
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.
curl https://{site}.chargebee.com/api/v1/invoices/__demo_inv__7/record_payment \ -u {site_api_key}:\ -d payment_method="BANK_TRANSFER" \ -d paid_at=1568639254
payment_method
= check
.