Class: Peddler::APIs::FulfillmentInboundV0
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::FulfillmentInboundV0
- Defined in:
- lib/peddler/apis/fulfillment_inbound_v0.rb
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.
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
#endpoint_uri, #http, #initialize, #meter, #retriable, #sandbox, #sandbox?, #typed, #typed?, #use, #via
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.
104 105 106 107 108 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 104 def get_bill_of_lading(shipment_id, rate_limit: 2.0) path = "/fba/inbound/v0/shipments/#{percent_encode(shipment_id)}/billOfLading" parser = Peddler::Types::FulfillmentInboundV0::GetBillOfLadingResponse if typed? meter(rate_limit).get(path, 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.
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 79 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 = Peddler::Types::FulfillmentInboundV0::GetLabelsResponse if typed? meter(rate_limit).get(path, params:, 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.
42 43 44 45 46 47 48 49 50 51 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 42 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 = Peddler::Types::FulfillmentInboundV0::GetPrepInstructionsResponse if typed? meter(rate_limit).get(path, params:, 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.
179 180 181 182 183 184 185 186 187 188 189 190 191 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 179 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 = Peddler::Types::FulfillmentInboundV0::GetShipmentItemsResponse if typed? meter(rate_limit).get(path, params:, 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.
154 155 156 157 158 159 160 161 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 154 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 = Peddler::Types::FulfillmentInboundV0::GetShipmentItemsResponse if typed? meter(rate_limit).get(path, params:, 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.
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/peddler/apis/fulfillment_inbound_v0.rb', line 131 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 = Peddler::Types::FulfillmentInboundV0::GetShipmentsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |