Class: Peddler::APIs::Finances20240619
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::Finances20240619
- Defined in:
- lib/peddler/apis/finances_2024_06_19.rb
Overview
The Selling Partner API for Finances
The Selling Partner API for Finances provides financial information relevant to a seller's business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser
Instance Method Summary collapse
-
#list_transactions(posted_after, posted_before: nil, marketplace_id: nil, next_token: nil, rate_limit: 0.5) ⇒ Peddler::Response
Returns transactions for the given parameters.
Methods inherited from Peddler::API
#endpoint_uri, #http, #initialize, #meter, #retriable, #sandbox, #sandbox?, #use, #via
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#list_transactions(posted_after, posted_before: nil, marketplace_id: nil, next_token: nil, rate_limit: 0.5) ⇒ Peddler::Response
Note:
This operation can make a static sandbox call.
Returns transactions for the given parameters. Orders from the last 48 hours might not be included in financial events.
37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/peddler/apis/finances_2024_06_19.rb', line 37 def list_transactions(posted_after, posted_before: nil, marketplace_id: nil, next_token: nil, rate_limit: 0.5) path = "/finances/2024-06-19/transactions" params = { "postedAfter" => posted_after, "postedBefore" => posted_before, "marketplaceId" => marketplace_id, "nextToken" => next_token, }.compact meter(rate_limit).get(path, params:) end |