Method: Stripe::BalanceTransactionService#retrieve

Defined in:
lib/stripe/services/balance_transaction_service.rb

#retrieve(id, params = {}, opts = {}) ⇒ Object

Retrieves the balance transaction with the given ID.

Note that this endpoint previously used the path /v1/balance/history/:id.



22
23
24
25
26
27
28
29
30
# File 'lib/stripe/services/balance_transaction_service.rb', line 22

def retrieve(id, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v1/balance_transactions/%<id>s", { id: CGI.escape(id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end