Update selected attributes of the transaction resource: status, id_at_gateway, and customer_id. Use this API for reconciliation purposes where the status of a transaction is in needs_attention that can be updated to either success or failure status.
Sample Request
URL Format
Input Parameters
The identifier with which this transaction is referred in gateway. The id_at_gateway
can only be updated when the transaction status is in needs_attention.
Note:
- It is mandatory to pass this parameter value for updating the transaction status from
needs_attentiontosuccess. It is recommended to pass this value if available in the gateway. - An error occurs when the provided
id_at_gatewayvalue does not match theid_at_gatewayvalue stored against the transaction in Chargebee.
Unique identifier of the customer for which this transaction is made. This is needed only when the transaction is successful but not associated with any customer.
Note:
An error occurs when the provided customer_id
value does not match the customer_id
value stored against the transaction in Chargebee.
The status of this transaction. The status can only be updated when the transaction status is in needs_attention
state.
When the transaction is successful.
Note:
When the transaction is updated to success
status, - and the invoice is associated with the transaction, the transaction amount will be applied to the invoice.
- and no invoice is associated but the customer is associated with the transaction,
customer_excess_paymentswill be updated.
When the transaction is in failure status.
Note:
When the transaction is updated to failure status and the invoice is associated with the transaction,
- the invoice will be moved to the
payment_duestatus if thedunningis configured. - the invoice will be moved to the
not_paidstatus if thedunningis not configured.
Returns
Resource object representing transaction