Class: Peddler::APIs::ExternalFulfillmentReturns20240911
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::ExternalFulfillmentReturns20240911
- Defined in:
- lib/peddler/apis/external_fulfillment_returns_2024_09_11.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/error.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/return.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/error_list.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/otp_details.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/tracking_info.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/return_metadata.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/returns_response.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/replanning_details.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/invoice_information.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/marketplace_channel.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/return_shipping_info.rb,
lib/peddler/apis/external_fulfillment_returns_2024_09_11/marketplace_channel_details.rb,
sig/peddler/apis/external_fulfillment_returns_2024_09_11.rbs
Overview
The Selling Partner API for Amazon External Fulfillment Return Item Processing
You can use the Amazon External Fulfillment Return Item Processing API to retrieve, track, and process return items through Amazon's External Fulfillment returns management system.
Defined Under Namespace
Classes: Error, ErrorList, InvoiceInformation, MarketplaceChannel, MarketplaceChannelDetails, OtpDetails, ReplanningDetails, Return, ReturnMetadata, ReturnShippingInfo, ReturnsResponse, TrackingInfo
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #retries
Instance Method Summary collapse
-
#get_return(return_id) ⇒ Peddler::Response
Retrieve the return item with the specified ID.
-
#list_returns(return_location_id: nil, rma_id: nil, status: nil, reverse_tracking_id: nil, created_since: nil, created_until: nil, last_updated_since: nil, last_updated_until: nil, last_updated_after: nil, last_updated_before: nil, max_results: nil, next_token: nil) ⇒ Peddler::Response
Retrieve a list of return items.
Methods inherited from Peddler::API
#cannot_sandbox!, #delete, #endpoint_uri, #get, #http, #initialize, #must_sandbox!, #patch, #percent_encode, #post, #put, #request, #sandbox, #sandbox?, #stringify_array, #timestamp, #user_agent
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#get_return(return_id) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve the return item with the specified ID.
69 70 71 72 73 |
# File 'lib/peddler/apis/external_fulfillment_returns_2024_09_11.rb', line 69 def get_return(return_id) path = "/externalFulfillment/2024-09-11/returns/#{percent_encode(return_id)}" parser = -> { Return } get(path, parser:) end |
#list_returns(return_location_id: nil, rma_id: nil, status: nil, reverse_tracking_id: nil, created_since: nil, created_until: nil, last_updated_since: nil, last_updated_until: nil, last_updated_after: nil, last_updated_before: nil, max_results: nil, next_token: nil) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve a list of return items. You can filter results by location, RMA ID, status, or time.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/peddler/apis/external_fulfillment_returns_2024_09_11.rb', line 42 def list_returns(return_location_id: nil, rma_id: nil, status: nil, reverse_tracking_id: nil, created_since: nil, created_until: nil, last_updated_since: nil, last_updated_until: nil, last_updated_after: nil, last_updated_before: nil, max_results: nil, next_token: nil) path = "/externalFulfillment/2024-09-11/returns" params = { "returnLocationId" => return_location_id, "rmaId" => rma_id, "status" => status, "reverseTrackingId" => reverse_tracking_id, "createdSince" => created_since, "createdUntil" => created_until, "lastUpdatedSince" => last_updated_since, "lastUpdatedUntil" => last_updated_until, "lastUpdatedAfter" => last_updated_after, "lastUpdatedBefore" => last_updated_before, "maxResults" => max_results, "nextToken" => next_token, }.compact parser = -> { ReturnsResponse } get(path, params:, parser:) end |