Class: Peddler::APIs::FulfillmentInboundV0
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::FulfillmentInboundV0
- Defined in:
- lib/peddler/apis/fulfillment_inbound_v0.rb,
lib/peddler/apis/fulfillment_inbound_v0/error.rb,
lib/peddler/apis/fulfillment_inbound_v0/amount.rb,
lib/peddler/apis/fulfillment_inbound_v0/address.rb,
lib/peddler/apis/fulfillment_inbound_v0/error_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/invalid_sku.rb,
lib/peddler/apis/fulfillment_inbound_v0/invalid_asin.rb,
lib/peddler/apis/fulfillment_inbound_v0/prep_details.rb,
lib/peddler/apis/fulfillment_inbound_v0/invalid_sku_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/invalid_asin_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/prep_details_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/label_download_url.rb,
lib/peddler/apis/fulfillment_inbound_v0/get_labels_response.rb,
lib/peddler/apis/fulfillment_inbound_v0/get_shipments_result.rb,
lib/peddler/apis/fulfillment_inbound_v0/inbound_shipment_info.rb,
lib/peddler/apis/fulfillment_inbound_v0/inbound_shipment_item.rb,
lib/peddler/apis/fulfillment_inbound_v0/inbound_shipment_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/prep_instruction_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/sku_prep_instructions.rb,
lib/peddler/apis/fulfillment_inbound_v0/asin_prep_instructions.rb,
lib/peddler/apis/fulfillment_inbound_v0/get_shipments_response.rb,
lib/peddler/apis/fulfillment_inbound_v0/amazon_prep_fees_details.rb,
lib/peddler/apis/fulfillment_inbound_v0/box_contents_fee_details.rb,
lib/peddler/apis/fulfillment_inbound_v0/get_shipment_items_result.rb,
lib/peddler/apis/fulfillment_inbound_v0/inbound_shipment_item_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/sku_prep_instructions_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/asin_prep_instructions_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/bill_of_lading_download_url.rb,
lib/peddler/apis/fulfillment_inbound_v0/get_bill_of_lading_response.rb,
lib/peddler/apis/fulfillment_inbound_v0/get_shipment_items_response.rb,
lib/peddler/apis/fulfillment_inbound_v0/get_prep_instructions_result.rb,
lib/peddler/apis/fulfillment_inbound_v0/amazon_prep_fees_details_list.rb,
lib/peddler/apis/fulfillment_inbound_v0/get_prep_instructions_response.rb,
sig/peddler/apis/fulfillment_inbound_v0.rbs
Overview
Selling Partner API for Fulfillment Inbound
The Selling Partner API for Fulfillment Inbound lets you create applications that create and update inbound shipments of inventory to Amazon's fulfillment network.
Defined Under Namespace
Classes: ASINPrepInstructions, ASINPrepInstructionsList, Address, AmazonPrepFeesDetails, AmazonPrepFeesDetailsList, Amount, BillOfLadingDownloadURL, BoxContentsFeeDetails, Error, ErrorList, GetBillOfLadingResponse, GetLabelsResponse, GetPrepInstructionsResponse, GetPrepInstructionsResult, GetShipmentItemsResponse, GetShipmentItemsResult, GetShipmentsResponse, GetShipmentsResult, InboundShipmentInfo, InboundShipmentItem, InboundShipmentItemList, InboundShipmentList, InvalidASIN, InvalidASINList, InvalidSKU, InvalidSKUList, LabelDownloadURL, PrepDetails, PrepDetailsList, PrepInstructionList, SKUPrepInstructions, SKUPrepInstructionsList
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #retries
Instance Method Summary collapse
-
#get_bill_of_lading(shipment_id, rate_limit: 2.0) ⇒ Peddler::Response
Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment.
-
#get_labels(shipment_id, page_type, label_type, number_of_packages: nil, package_labels_to_print: nil, number_of_pallets: nil, page_size: nil, page_start_index: nil, rate_limit: 2.0) ⇒ Peddler::Response
Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center.
-
#get_prep_instructions(ship_to_country_code, seller_sku_list: nil, asin_list: nil, rate_limit: 2.0) ⇒ Peddler::Response
Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon's fulfillment network.
-
#get_shipment_items(query_type, marketplace_id, last_updated_after: nil, last_updated_before: nil, next_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame.
-
#get_shipment_items_by_shipment_id(shipment_id, marketplace_id: nil, rate_limit: 2.0) ⇒ Peddler::Response
Returns a list of items in a specified inbound shipment.
-
#get_shipments(query_type, marketplace_id, shipment_status_list: nil, shipment_id_list: nil, last_updated_after: nil, last_updated_before: nil, next_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Returns a list of inbound shipments based on criteria that you specify.
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_bill_of_lading(shipment_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a bill of lading for a Less Than Truckload/Full Truckload (LTL/FTL) shipment. The getBillOfLading operation returns PDF document data for printing a bill of lading for an Amazon-partnered Less Than Truckload/Full Truckload (LTL/FTL) inbound shipment.
96 97 98 99 100 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 96 def get_bill_of_lading(shipment_id, rate_limit: 2.0) path = "/fba/inbound/v0/shipments/#{percent_encode(shipment_id)}/billOfLading" parser = -> { GetBillOfLadingResponse } get(path, rate_limit:, parser:) end |
#get_labels(shipment_id, page_type, label_type, number_of_packages: nil, package_labels_to_print: nil, number_of_pallets: nil, page_size: nil, page_start_index: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns package/pallet labels for faster and more accurate shipment processing at the Amazon fulfillment center.
71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 71 def get_labels(shipment_id, page_type, label_type, number_of_packages: nil, package_labels_to_print: nil, number_of_pallets: nil, page_size: nil, page_start_index: nil, rate_limit: 2.0) path = "/fba/inbound/v0/shipments/#{percent_encode(shipment_id)}/labels" params = { "PageType" => page_type, "LabelType" => label_type, "NumberOfPackages" => number_of_packages, "PackageLabelsToPrint" => stringify_array(package_labels_to_print), "NumberOfPallets" => number_of_pallets, "PageSize" => page_size, "PageStartIndex" => page_start_index, }.compact parser = -> { GetLabelsResponse } get(path, params:, rate_limit:, parser:) end |
#get_prep_instructions(ship_to_country_code, seller_sku_list: nil, asin_list: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns labeling requirements and item preparation instructions to help prepare items for shipment to Amazon's fulfillment network.
34 35 36 37 38 39 40 41 42 43 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 34 def get_prep_instructions(ship_to_country_code, seller_sku_list: nil, asin_list: nil, rate_limit: 2.0) path = "/fba/inbound/v0/prepInstructions" params = { "ShipToCountryCode" => ship_to_country_code, "SellerSKUList" => stringify_array(seller_sku_list), "ASINList" => stringify_array(asin_list), }.compact parser = -> { GetPrepInstructionsResponse } get(path, params:, rate_limit:, parser:) end |
#get_shipment_items(query_type, marketplace_id, last_updated_after: nil, last_updated_before: nil, next_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a list of items in a specified inbound shipment, or a list of items that were updated within a specified time frame.
171 172 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 171 def get_shipment_items(query_type, marketplace_id, last_updated_after: nil, last_updated_before: nil, next_token: nil, rate_limit: 2.0) path = "/fba/inbound/v0/shipmentItems" params = { "LastUpdatedAfter" => last_updated_after, "LastUpdatedBefore" => last_updated_before, "QueryType" => query_type, "NextToken" => next_token, "MarketplaceId" => marketplace_id, }.compact parser = -> { GetShipmentItemsResponse } get(path, params:, rate_limit:, parser:) end |
#get_shipment_items_by_shipment_id(shipment_id, marketplace_id: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a list of items in a specified inbound shipment.
146 147 148 149 150 151 152 153 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 146 def get_shipment_items_by_shipment_id(shipment_id, marketplace_id: nil, rate_limit: 2.0) path = "/fba/inbound/v0/shipments/#{percent_encode(shipment_id)}/items" params = { "MarketplaceId" => marketplace_id, }.compact parser = -> { GetShipmentItemsResponse } get(path, params:, rate_limit:, parser:) end |
#get_shipments(query_type, marketplace_id, shipment_status_list: nil, shipment_id_list: nil, last_updated_after: nil, last_updated_before: nil, next_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a list of inbound shipments based on criteria that you specify.
123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 123 def get_shipments(query_type, marketplace_id, shipment_status_list: nil, shipment_id_list: nil, last_updated_after: nil, last_updated_before: nil, next_token: nil, rate_limit: 2.0) path = "/fba/inbound/v0/shipments" params = { "ShipmentStatusList" => stringify_array(shipment_status_list), "ShipmentIdList" => stringify_array(shipment_id_list), "LastUpdatedAfter" => last_updated_after, "LastUpdatedBefore" => last_updated_before, "QueryType" => query_type, "NextToken" => next_token, "MarketplaceId" => marketplace_id, }.compact parser = -> { GetShipmentsResponse } get(path, params:, rate_limit:, parser:) end |