Class: Peddler::APIs::FulfillmentInbound20240320
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::FulfillmentInbound20240320
- Defined in:
- lib/peddler/apis/fulfillment_inbound_2024_03_20.rb
Overview
The Selling Partner API for FBA inbound operations.
The Selling Partner API for Fulfillment By Amazon (FBA) Inbound. The FBA Inbound API enables building inbound workflows to create, manage, and send shipments into Amazon’s fulfillment network. The API has interoperability with the Send-to-Amazon user interface.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #retries
Instance Method Summary collapse
-
#cancel_inbound_plan(inbound_plan_id, rate_limit: 2.0) ⇒ Peddler::Response
Cancels an Inbound Plan.
-
#cancel_self_ship_appointment(inbound_plan_id, shipment_id, body, rate_limit: nil) ⇒ Peddler::Response
Cancels a self-ship appointment slot against a shipment.
-
#confirm_delivery_window_options(inbound_plan_id, shipment_id, delivery_window_option_id, rate_limit: 2.0) ⇒ Peddler::Response
Confirms the delivery window option for chosen shipment within an inbound plan.
-
#confirm_packing_option(inbound_plan_id, packing_option_id, rate_limit: 2.0) ⇒ Peddler::Response
Confirms the packing option for an inbound plan.
-
#confirm_placement_option(inbound_plan_id, placement_option_id, rate_limit: 2.0) ⇒ Peddler::Response
Confirms the placement option for an inbound plan.
-
#confirm_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id, rate_limit: 2.0) ⇒ Peddler::Response
Confirm a shipment content update preview and accept the changes in transportation cost.
-
#confirm_transportation_options(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Confirms all the transportation options for an inbound plan.
-
#create_inbound_plan(body, rate_limit: 2.0) ⇒ Peddler::Response
Creates an inbound plan.
-
#create_marketplace_item_labels(body, rate_limit: 2.0) ⇒ Peddler::Response
For a given marketplace - creates labels for a list of MSKUs.
-
#generate_delivery_window_options(inbound_plan_id, shipment_id, rate_limit: 2.0) ⇒ Peddler::Response
Generates available delivery window options for a given shipment.
-
#generate_packing_options(inbound_plan_id, rate_limit: 2.0) ⇒ Peddler::Response
Generates available packing options for the inbound plan.
-
#generate_placement_options(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Generates placement options for the inbound plan.
-
#generate_self_ship_appointment_slots(inbound_plan_id, shipment_id, body, rate_limit: nil) ⇒ Peddler::Response
Initiates the process of generating the appointment slots list.
-
#generate_shipment_content_update_previews(inbound_plan_id, shipment_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Generate a shipment content update preview given a set of intended boxes and/or items for a shipment with a confirmed carrier.
-
#generate_transportation_options(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Generates available transportation options for a given placement option.
-
#get_delivery_challan_document(inbound_plan_id, shipment_id, rate_limit: 2.0) ⇒ Peddler::Response
Provide delivery challan document for PCP transportation in IN marketplace.
-
#get_inbound_operation_status(operation_id, rate_limit: 2.0) ⇒ Peddler::Response
Gets the status of the processing of an asynchronous API call.
-
#get_inbound_plan(inbound_plan_id, rate_limit: 2.0) ⇒ Peddler::Response
Fetches the top level information about an inbound plan.
-
#get_self_ship_appointment_slots(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: nil) ⇒ Peddler::Response
Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse.
-
#get_shipment(inbound_plan_id, shipment_id, rate_limit: 2.0) ⇒ Peddler::Response
Provides the full details for a specific shipment within an inbound plan.
-
#get_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id, rate_limit: 2.0) ⇒ Peddler::Response
Retrieve a shipment content update preview which provides a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
-
#list_delivery_window_options(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Retrieves all delivery window options for a shipment.
-
#list_inbound_plan_boxes(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Provides a paginated list of box packages in an inbound plan.
-
#list_inbound_plan_items(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Provides a paginated list of item packages in an inbound plan.
-
#list_inbound_plan_pallets(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Provides a paginated list of pallet packages in an inbound plan.
-
#list_inbound_plans(page_size: 10, pagination_token: nil, status: nil, sort_by: nil, sort_order: nil, rate_limit: 2.0) ⇒ Peddler::Response
Provides a list of inbound plans with minimal information.
-
#list_item_compliance_details(mskus, marketplace_id, rate_limit: nil) ⇒ Peddler::Response
List the inbound compliance details for MSKUs in a given marketplace.
-
#list_packing_group_boxes(inbound_plan_id, packing_group_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Retrieves a page of boxes from a given packing group.
-
#list_packing_group_items(inbound_plan_id, packing_group_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Retrieves a page of items in a given packing group.
-
#list_packing_options(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Retrieves a list of all packing options for an inbound plan.
-
#list_placement_options(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Provides a list of all placement options for an inbound plan.
-
#list_prep_details(marketplace_id, mskus, rate_limit: nil) ⇒ Peddler::Response
Get preparation details for a list of MSKUs in a specified marketplace.
-
#list_shipment_boxes(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Provides a paginated list of box packages in a shipment.
-
#list_shipment_content_update_previews(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Retrieve a paginated list of shipment content update previews for a given shipment.
-
#list_shipment_items(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Provides a paginated list of item packages in a shipment.
-
#list_shipment_pallets(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
Provides a paginated list of pallet packages in a shipment.
-
#list_transportation_options(inbound_plan_id, page_size: 10, pagination_token: nil, placement_option_id: nil, shipment_id: nil, rate_limit: 2.0) ⇒ Peddler::Response
Retrieves all transportation options for a shipment.
-
#schedule_self_ship_appointment(inbound_plan_id, shipment_id, slot_id, body, rate_limit: nil) ⇒ Peddler::Response
Confirms or reschedules a self-ship appointment slot against a shipment.
-
#set_packing_information(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Sets packing information for an inbound plan.
-
#set_prep_details(body, rate_limit: 2.0) ⇒ Peddler::Response
Set the preparation details for a list of MSKUs in a specified marketplace.
-
#update_inbound_plan_name(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Updates the name of an existing inbound plan.
-
#update_item_compliance_details(marketplace_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Update compliance details for a list of MSKUs.
-
#update_shipment_name(inbound_plan_id, shipment_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Updates the name of an existing shipment.
-
#update_shipment_source_address(inbound_plan_id, shipment_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Updates the source address of an existing shipment.
-
#update_shipment_tracking_details(inbound_plan_id, shipment_id, body, rate_limit: 2.0) ⇒ Peddler::Response
Updates a shipment’s tracking details.
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
#cancel_inbound_plan(inbound_plan_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Cancels an Inbound Plan. Charges may apply if the cancellation is performed outside of a void window. The window for Amazon Partnered Carriers is 24 hours for Small Parcel Delivery (SPD) and one hour for Less-Than-Truckload (LTL) carrier shipments.
100 101 102 103 104 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 100 def cancel_inbound_plan(inbound_plan_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/cancellation" parser = Peddler::Types::FulfillmentInbound20240320::CancelInboundPlanResponse if typed? meter(rate_limit).put(path, parser:) end |
#cancel_self_ship_appointment(inbound_plan_id, shipment_id, body, rate_limit: nil) ⇒ Peddler::Response
This operation can make a static sandbox call.
Cancels a self-ship appointment slot against a shipment. Only available in the following [marketplaces](developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
554 555 556 557 558 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 554 def cancel_self_ship_appointment(inbound_plan_id, shipment_id, body, rate_limit: nil) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/selfShipAppointmentCancellation" parser = Peddler::Types::FulfillmentInbound20240320::CancelSelfShipAppointmentResponse if typed? meter(rate_limit).put(path, body:, parser:) end |
#confirm_delivery_window_options(inbound_plan_id, shipment_id, delivery_window_option_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Confirms the delivery window option for chosen shipment within an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new delivery window options cannot be generated, but the chosen delivery window option can be updated before shipment closure. The window is used to provide the expected time when a shipment will arrive at the warehouse. All transportation options which have the program ‘CONFIRMED_DELIVERY_WINDOW` require a delivery window to be confirmed prior to transportation option confirmation.
483 484 485 486 487 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 483 def (inbound_plan_id, shipment_id, delivery_window_option_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/deliveryWindowOptions/#{percent_encode(delivery_window_option_id)}/confirmation" parser = Peddler::Types::FulfillmentInbound20240320::ConfirmDeliveryWindowOptionsResponse if typed? meter(rate_limit).post(path, parser:) end |
#confirm_packing_option(inbound_plan_id, packing_option_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Confirms the packing option for an inbound plan.
239 240 241 242 243 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 239 def confirm_packing_option(inbound_plan_id, packing_option_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/packingOptions/#{percent_encode(packing_option_id)}/confirmation" parser = Peddler::Types::FulfillmentInbound20240320::ConfirmPackingOptionResponse if typed? meter(rate_limit).post(path, parser:) end |
#confirm_placement_option(inbound_plan_id, placement_option_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Confirms the placement option for an inbound plan. Once confirmed, it cannot be changed for the Inbound Plan.
308 309 310 311 312 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 308 def confirm_placement_option(inbound_plan_id, placement_option_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/placementOptions/#{percent_encode(placement_option_id)}/confirmation" parser = Peddler::Types::FulfillmentInbound20240320::ConfirmPlacementOptionResponse if typed? meter(rate_limit).post(path, parser:) end |
#confirm_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Confirm a shipment content update preview and accept the changes in transportation cost.
413 414 415 416 417 418 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 413 def confirm_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/contentUpdatePreviews/#{percent_encode(content_update_preview_id)}/confirmation" parser = Peddler::Types::FulfillmentInbound20240320::ConfirmShipmentContentUpdatePreviewResponse if typed? meter(rate_limit).post(path, parser:) end |
#confirm_transportation_options(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Confirms all the transportation options for an inbound plan. A placement option must be confirmed prior to use of this API. Once confirmed, new transportation options can not be generated or confirmed for the Inbound Plan.
697 698 699 700 701 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 697 def (inbound_plan_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/transportationOptions/confirmation" parser = Peddler::Types::FulfillmentInbound20240320::ConfirmTransportationOptionsResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#create_inbound_plan(body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Creates an inbound plan. An inbound plan contains all the necessary information to send shipments into Amazon’s fufillment network.
54 55 56 57 58 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 54 def create_inbound_plan(body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans" parser = Peddler::Types::FulfillmentInbound20240320::CreateInboundPlanResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#create_marketplace_item_labels(body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
For a given marketplace - creates labels for a list of MSKUs.
757 758 759 760 761 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 757 def create_marketplace_item_labels(body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/items/labels" parser = Peddler::Types::FulfillmentInbound20240320::CreateMarketplaceItemLabelsResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#generate_delivery_window_options(inbound_plan_id, shipment_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Generates available delivery window options for a given shipment.
464 465 466 467 468 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 464 def (inbound_plan_id, shipment_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/deliveryWindowOptions" parser = Peddler::Types::FulfillmentInbound20240320::GenerateDeliveryWindowOptionsResponse if typed? meter(rate_limit).post(path, parser:) end |
#generate_packing_options(inbound_plan_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Generates available packing options for the inbound plan.
226 227 228 229 230 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 226 def (inbound_plan_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/packingOptions" parser = Peddler::Types::FulfillmentInbound20240320::GeneratePackingOptionsResponse if typed? meter(rate_limit).post(path, parser:) end |
#generate_placement_options(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Generates placement options for the inbound plan.
294 295 296 297 298 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 294 def (inbound_plan_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/placementOptions" parser = Peddler::Types::FulfillmentInbound20240320::GeneratePlacementOptionsResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#generate_self_ship_appointment_slots(inbound_plan_id, shipment_id, body, rate_limit: nil) ⇒ Peddler::Response
This operation can make a static sandbox call.
Initiates the process of generating the appointment slots list. Only available in the following [marketplaces](developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
594 595 596 597 598 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 594 def generate_self_ship_appointment_slots(inbound_plan_id, shipment_id, body, rate_limit: nil) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/selfShipAppointmentSlots" parser = Peddler::Types::FulfillmentInbound20240320::GenerateSelfShipAppointmentSlotsResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#generate_shipment_content_update_previews(inbound_plan_id, shipment_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Generate a shipment content update preview given a set of intended boxes and/or items for a shipment with a confirmed carrier. The shipment content update preview will be viewable with the updated costs and contents prior to confirmation.
383 384 385 386 387 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 383 def generate_shipment_content_update_previews(inbound_plan_id, shipment_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/contentUpdatePreviews" parser = Peddler::Types::FulfillmentInbound20240320::GenerateShipmentContentUpdatePreviewsResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#generate_transportation_options(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Generates available transportation options for a given placement option.
683 684 685 686 687 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 683 def (inbound_plan_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/transportationOptions" parser = Peddler::Types::FulfillmentInbound20240320::GenerateTransportationOptionsResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#get_delivery_challan_document(inbound_plan_id, shipment_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provide delivery challan document for PCP transportation in IN marketplace.
427 428 429 430 431 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 427 def get_delivery_challan_document(inbound_plan_id, shipment_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/deliveryChallanDocument" parser = Peddler::Types::FulfillmentInbound20240320::GetDeliveryChallanDocumentResponse if typed? meter(rate_limit).get(path, parser:) end |
#get_inbound_operation_status(operation_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Gets the status of the processing of an asynchronous API call.
811 812 813 814 815 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 811 def get_inbound_operation_status(operation_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/operations/#{percent_encode(operation_id)}" parser = Peddler::Types::FulfillmentInbound20240320::InboundOperationStatus if typed? meter(rate_limit).get(path, parser:) end |
#get_inbound_plan(inbound_plan_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Fetches the top level information about an inbound plan.
66 67 68 69 70 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 66 def get_inbound_plan(inbound_plan_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}" parser = Peddler::Types::FulfillmentInbound20240320::InboundPlan if typed? meter(rate_limit).get(path, parser:) end |
#get_self_ship_appointment_slots(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: nil) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieves a list of available self-ship appointment slots used to drop off a shipment at a warehouse. Only available in the following [marketplaces](developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
574 575 576 577 578 579 580 581 582 583 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 574 def get_self_ship_appointment_slots(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: nil) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/selfShipAppointmentSlots" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::GetSelfShipAppointmentSlotsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#get_shipment(inbound_plan_id, shipment_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides the full details for a specific shipment within an inbound plan. The ‘transportationOptionId` inside `acceptedTransportationSelection` can be used to retrieve the transportation details for the shipment.
322 323 324 325 326 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 322 def get_shipment(inbound_plan_id, shipment_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}" parser = Peddler::Types::FulfillmentInbound20240320::Shipment if typed? meter(rate_limit).get(path, parser:) end |
#get_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve a shipment content update preview which provides a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
399 400 401 402 403 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 399 def get_shipment_content_update_preview(inbound_plan_id, shipment_id, content_update_preview_id, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/contentUpdatePreviews/#{percent_encode(content_update_preview_id)}" parser = Peddler::Types::FulfillmentInbound20240320::ContentUpdatePreview if typed? meter(rate_limit).get(path, parser:) end |
#list_delivery_window_options(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieves all delivery window options for a shipment. Delivery window options must first be generated by the ‘generateDeliveryWindowOptions` operation before becoming available.
446 447 448 449 450 451 452 453 454 455 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 446 def (inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/deliveryWindowOptions" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListDeliveryWindowOptionsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_inbound_plan_boxes(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides a paginated list of box packages in an inbound plan.
82 83 84 85 86 87 88 89 90 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 82 def list_inbound_plan_boxes(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/boxes" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListInboundPlanBoxesResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_inbound_plan_items(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides a paginated list of item packages in an inbound plan.
116 117 118 119 120 121 122 123 124 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 116 def list_inbound_plan_items(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/items" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListInboundPlanItemsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_inbound_plan_pallets(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides a paginated list of pallet packages in an inbound plan. An inbound plan will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
256 257 258 259 260 261 262 263 264 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 256 def list_inbound_plan_pallets(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/pallets" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListInboundPlanPalletsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_inbound_plans(page_size: 10, pagination_token: nil, status: nil, sort_by: nil, sort_order: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides a list of inbound plans with minimal information.
33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 33 def list_inbound_plans(page_size: 10, pagination_token: nil, status: nil, sort_by: nil, sort_order: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans" params = { "pageSize" => page_size, "paginationToken" => pagination_token, "status" => status, "sortBy" => sort_by, "sortOrder" => sort_order, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListInboundPlansResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_item_compliance_details(mskus, marketplace_id, rate_limit: nil) ⇒ Peddler::Response
This operation can make a static sandbox call.
List the inbound compliance details for MSKUs in a given marketplace.
Note: MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](developer-docs.amazon.com/sp-api/docs/url-encoding).
The following characters must be double percent encoded:
-
‘%`
-
‘+`
-
‘,`
Examples: An MSKU value of ‘test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
723 724 725 726 727 728 729 730 731 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 723 def list_item_compliance_details(mskus, marketplace_id, rate_limit: nil) path = "/inbound/fba/2024-03-20/items/compliance" params = { "mskus" => stringify_array(mskus), "marketplaceId" => marketplace_id, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListItemComplianceDetailsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_packing_group_boxes(inbound_plan_id, packing_group_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieves a page of boxes from a given packing group. These boxes were previously provided through the ‘setPackingInformation` operation. This API is used for workflows where boxes are packed before Amazon determines shipment splits.
151 152 153 154 155 156 157 158 159 160 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 151 def list_packing_group_boxes(inbound_plan_id, packing_group_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/packingGroups/#{percent_encode(packing_group_id)}/boxes" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListPackingGroupBoxesResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_packing_group_items(inbound_plan_id, packing_group_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieves a page of items in a given packing group. Packing options must first be generated by the corresponding operation before packing group items can be listed.
174 175 176 177 178 179 180 181 182 183 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 174 def list_packing_group_items(inbound_plan_id, packing_group_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/packingGroups/#{percent_encode(packing_group_id)}/items" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListPackingGroupItemsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_packing_options(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieves a list of all packing options for an inbound plan. Packing options must first be generated by the corresponding operation before becoming available.
210 211 212 213 214 215 216 217 218 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 210 def (inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/packingOptions" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListPackingOptionsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_placement_options(inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides a list of all placement options for an inbound plan. Placement options must first be generated by the corresponding operation before becoming available.
277 278 279 280 281 282 283 284 285 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 277 def (inbound_plan_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/placementOptions" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListPlacementOptionsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_prep_details(marketplace_id, mskus, rate_limit: nil) ⇒ Peddler::Response
This operation can make a static sandbox call.
Get preparation details for a list of MSKUs in a specified marketplace.
Note: MSKUs that contain certain characters must be encoded. For more information, refer to [URL Encoding](developer-docs.amazon.com/sp-api/docs/url-encoding).
The following characters must be double percent encoded:
-
‘%`
-
‘+`
-
‘,`
Examples: An MSKU value of ‘test%msku` is encoded as `test%2525msku`. An MSKU value of `test,msku` is encoded as `test%252Cmsku`.
783 784 785 786 787 788 789 790 791 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 783 def list_prep_details(marketplace_id, mskus, rate_limit: nil) path = "/inbound/fba/2024-03-20/items/prepDetails" params = { "marketplaceId" => marketplace_id, "mskus" => stringify_array(mskus), }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListPrepDetailsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_shipment_boxes(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides a paginated list of box packages in a shipment.
339 340 341 342 343 344 345 346 347 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 339 def list_shipment_boxes(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/boxes" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListShipmentBoxesResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_shipment_content_update_previews(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieve a paginated list of shipment content update previews for a given shipment. The shipment content update preview is a summary of the requested shipment content changes along with the transportation cost implications of the change that can only be confirmed prior to the expiry date specified.
362 363 364 365 366 367 368 369 370 371 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 362 def list_shipment_content_update_previews(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/contentUpdatePreviews" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListShipmentContentUpdatePreviewsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_shipment_items(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides a paginated list of item packages in a shipment.
500 501 502 503 504 505 506 507 508 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 500 def list_shipment_items(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/items" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListShipmentItemsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_shipment_pallets(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Provides a paginated list of pallet packages in a shipment. A palletized shipment will have pallets when the related details are provided after generating Less-Than-Truckload (LTL) carrier shipments.
535 536 537 538 539 540 541 542 543 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 535 def list_shipment_pallets(inbound_plan_id, shipment_id, page_size: 10, pagination_token: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/pallets" params = { "pageSize" => page_size, "paginationToken" => pagination_token, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListShipmentPalletsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#list_transportation_options(inbound_plan_id, page_size: 10, pagination_token: nil, placement_option_id: nil, shipment_id: nil, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Retrieves all transportation options for a shipment. Transportation options must first be generated by the ‘generateTransportationOptions` operation before becoming available.
663 664 665 666 667 668 669 670 671 672 673 674 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 663 def (inbound_plan_id, page_size: 10, pagination_token: nil, placement_option_id: nil, shipment_id: nil, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/transportationOptions" params = { "pageSize" => page_size, "paginationToken" => pagination_token, "placementOptionId" => placement_option_id, "shipmentId" => shipment_id, }.compact parser = Peddler::Types::FulfillmentInbound20240320::ListTransportationOptionsResponse if typed? meter(rate_limit).get(path, params:, parser:) end |
#schedule_self_ship_appointment(inbound_plan_id, shipment_id, slot_id, body, rate_limit: nil) ⇒ Peddler::Response
This operation can make a static sandbox call.
Confirms or reschedules a self-ship appointment slot against a shipment. Only available in the following [marketplaces](developer-docs.amazon.com/sp-api/docs/marketplace-ids): MX, BR, EG, SA, AE, IN.
610 611 612 613 614 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 610 def schedule_self_ship_appointment(inbound_plan_id, shipment_id, slot_id, body, rate_limit: nil) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/selfShipAppointmentSlots/#{percent_encode(slot_id)}/schedule" parser = Peddler::Types::FulfillmentInbound20240320::ScheduleSelfShipAppointmentResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#set_packing_information(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Sets packing information for an inbound plan. This should be called after an inbound plan is created to populate the box level information required for planning and transportation estimates.
193 194 195 196 197 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 193 def set_packing_information(inbound_plan_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/packingInformation" parser = Peddler::Types::FulfillmentInbound20240320::SetPackingInformationResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#set_prep_details(body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Set the preparation details for a list of MSKUs in a specified marketplace.
799 800 801 802 803 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 799 def set_prep_details(body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/items/prepDetails" parser = Peddler::Types::FulfillmentInbound20240320::SetPrepDetailsResponse if typed? meter(rate_limit).post(path, body:, parser:) end |
#update_inbound_plan_name(inbound_plan_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Updates the name of an existing inbound plan.
133 134 135 136 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 133 def update_inbound_plan_name(inbound_plan_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/name" meter(rate_limit).put(path, body:) end |
#update_item_compliance_details(marketplace_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Update compliance details for a list of MSKUs. The details provided here are only used for the India (IN - A21TJRUUN4KGV) marketplace compliance validation.
742 743 744 745 746 747 748 749 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 742 def update_item_compliance_details(marketplace_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/items/compliance" params = { "marketplaceId" => marketplace_id, }.compact parser = Peddler::Types::FulfillmentInbound20240320::UpdateItemComplianceDetailsResponse if typed? meter(rate_limit).put(path, body:, params:, parser:) end |
#update_shipment_name(inbound_plan_id, shipment_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Updates the name of an existing shipment.
518 519 520 521 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 518 def update_shipment_name(inbound_plan_id, shipment_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/name" meter(rate_limit).put(path, body:) end |
#update_shipment_source_address(inbound_plan_id, shipment_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Updates the source address of an existing shipment. The shipment source address can only be updated prior to the confirmation of the shipment carriers. As a result of the updated source address, existing transportation options will be invalidated and will need to be regenerated to capture the potential difference in transportation options and quotes due to the new source address.
627 628 629 630 631 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 627 def update_shipment_source_address(inbound_plan_id, shipment_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/sourceAddress" parser = Peddler::Types::FulfillmentInbound20240320::UpdateShipmentSourceAddressResponse if typed? meter(rate_limit).put(path, body:, parser:) end |
#update_shipment_tracking_details(inbound_plan_id, shipment_id, body, rate_limit: 2.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Updates a shipment’s tracking details.
641 642 643 644 645 |
# File 'lib/peddler/apis/fulfillment_inbound_2024_03_20.rb', line 641 def update_shipment_tracking_details(inbound_plan_id, shipment_id, body, rate_limit: 2.0) path = "/inbound/fba/2024-03-20/inboundPlans/#{percent_encode(inbound_plan_id)}/shipments/#{percent_encode(shipment_id)}/trackingDetails" parser = Peddler::Types::FulfillmentInbound20240320::UpdateShipmentTrackingDetailsResponse if typed? meter(rate_limit).put(path, body:, parser:) end |