Retrieves the requests that Chargebee sent to payment gateways for the site, newest first.
Use this operation to investigate gateway activity, such as failed payment or refund calls, for a specific customer, invoice, transaction, or gateway. Filter by invocation_time to limit the results to a time range.
Implementation Notes
- Results are sorted by
invocation_timein descending order. Passsort_by[asc]asinvocation_timeto list the oldest logs first. - Pagination can reach at most the first 10,000 matching logs:
offsetpluslimitcan't exceed 10,000. Once the next page would go past 10,000 logs,next_offsetisn't returned, even if more logs match. To page further back, narrow the time range with theinvocation_timefilter. - Only the filters listed on this page are supported. Any other filter parameter returns an error instead of being ignored.
- When Multi Business Entity is enabled and a business entity is in context, only logs for that business entity are returned.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
Determines your position in the list for pagination. To ensure that the next page is retrieved correctly, always set offset to the value of next_offset obtained in the previous iteration of the API call.
Constraints
offsetpluslimitcan't exceed 10,000. To page further back, narrow the time range with theinvocation_timefilter.
optional, string filter
Sorts based on the specified attribute. Supported attributes : invocation_time
Supported sort-orders : asc, desc
Example → sort_by[asc] = "invocation_time"
This will sort the result based on the 'invocation_time' attribute in ascending(earliest first) order.
Default behavior
- Results are sorted by
invocation_timein descending order.
Filter Params
optional, string filter
Filter by the ID of the customer associated with the request. Supported operators : is, is_not, in, not_in
Example → customer_handle[is] = "16BjoNSh3G0Tc1hk"
optional, string filter
Filter by the ID of the invoice associated with the request. Supported operators : is, is_not, in, not_in
Example → invoice_handle[is] = "INV-123"
optional, string filter
Filter by the ID of the transaction associated with the request. Supported operators : is, is_not, in, not_in
Example → transaction_handle[is] = "txn_16BjoNSh3G0Tc1hk"
optional, string filter
Filter by the ID of the payment source used in the request. Supported operators : is, is_not, in, not_in
Example → payment_method_handle[is] = "pm_16BjoNSh3G0Tc1hk"
optional, string filter
Filter by the ID of the payment intent associated with the request. Supported operators : is, is_not, in, not_in
Example → payment_intent_handle[is] = "pi_16BjoNSh3G0Tc1hk"
Returns
Returned only when more resources are present and the next page stays within the first 10,000 matching logs. To fetch the next set of resources, use this value for the input parameter offset.
Resource object representing gateway_request_log