Class: Peddler::APIs::VendorDirectFulfillmentShippingV1
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::VendorDirectFulfillmentShippingV1
- Defined in:
- lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/item.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/error.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/weight.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/address.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/container.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/dimensions.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/error_list.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/label_data.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/pagination.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/packed_item.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/packing_slip.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/item_quantity.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/shipping_label.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/customer_invoice.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/shipment_details.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/packing_slip_list.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/shipping_label_list.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/party_identification.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/customer_invoice_list.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/shipment_confirmation.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/status_update_details.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/transaction_reference.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/shipment_status_update.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/shipping_label_request.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/tax_registration_details.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/get_packing_slip_response.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/get_shipping_label_response.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/get_customer_invoice_response.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/get_customer_invoices_response.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/get_packing_slip_list_response.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/submit_shipping_labels_request.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/submit_shipping_labels_response.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/get_shipping_label_list_response.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/submit_shipment_confirmations_request.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/submit_shipment_confirmations_response.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/submit_shipment_status_updates_request.rb,
lib/peddler/apis/vendor_direct_fulfillment_shipping_v1/submit_shipment_status_updates_response.rb,
sig/peddler/apis/vendor_direct_fulfillment_shipping_v1.rbs
Overview
Selling Partner API for Direct Fulfillment Shipping
The Selling Partner API for Direct Fulfillment Shipping provides programmatic access to a direct fulfillment vendor's shipping data.
Defined Under Namespace
Classes: Address, Container, CustomerInvoice, CustomerInvoiceList, Dimensions, Error, ErrorList, GetCustomerInvoiceResponse, GetCustomerInvoicesResponse, GetPackingSlipListResponse, GetPackingSlipResponse, GetShippingLabelListResponse, GetShippingLabelResponse, Item, ItemQuantity, LabelData, PackedItem, PackingSlip, PackingSlipList, Pagination, PartyIdentification, ShipmentConfirmation, ShipmentDetails, ShipmentStatusUpdate, ShippingLabel, ShippingLabelList, ShippingLabelRequest, StatusUpdateDetails, SubmitShipmentConfirmationsRequest, SubmitShipmentConfirmationsResponse, SubmitShipmentStatusUpdatesRequest, SubmitShipmentStatusUpdatesResponse, SubmitShippingLabelsRequest, SubmitShippingLabelsResponse, TaxRegistrationDetails, TransactionReference, Weight
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #retries
Instance Method Summary collapse
-
#get_customer_invoice(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
Returns a customer invoice based on the purchaseOrderNumber that you specify.
-
#get_customer_invoices(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: nil, next_token: nil, rate_limit: 10.0) ⇒ Peddler::Response
Returns a list of customer invoices created during a time frame that you specify.
-
#get_packing_slip(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
Returns a packing slip based on the purchaseOrderNumber that you specify.
-
#get_packing_slips(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: "ASC", next_token: nil, rate_limit: 10.0) ⇒ Peddler::Response
Returns a list of packing slips for the purchase orders that match the criteria specified.
-
#get_shipping_label(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
Returns a shipping label for the purchaseOrderNumber that you specify.
-
#get_shipping_labels(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: "ASC", next_token: nil, rate_limit: 10.0) ⇒ Peddler::Response
Returns a list of shipping labels created during the time frame that you specify.
-
#submit_shipment_confirmations(body, rate_limit: 10.0) ⇒ Peddler::Response
Submits one or more shipment confirmations for vendor orders.
-
#submit_shipment_status_updates(body, rate_limit: 10.0) ⇒ Peddler::Response
This API call is only to be used by Vendor-Own-Carrier (VOC) vendors.
-
#submit_shipping_label_request(body, rate_limit: 10.0) ⇒ Peddler::Response
Creates a shipping label for a purchase order and returns a transactionId for reference.
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_customer_invoice(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a customer invoice based on the purchaseOrderNumber that you specify.
135 136 137 138 139 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 135 def get_customer_invoice(purchase_order_number, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/customerInvoices/#{percent_encode(purchase_order_number)}" parser = -> { GetCustomerInvoiceResponse } get(path, rate_limit:, parser:) end |
#get_customer_invoices(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: nil, next_token: nil, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a list of customer invoices created during a time frame that you specify. You define the time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must be no more than 7 days.
114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 114 def get_customer_invoices(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: nil, next_token: nil, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/customerInvoices" params = { "shipFromPartyId" => ship_from_party_id, "limit" => limit, "createdAfter" => created_after, "createdBefore" => created_before, "sortOrder" => sort_order, "nextToken" => next_token, }.compact parser = -> { GetCustomerInvoicesResponse } get(path, params:, rate_limit:, parser:) end |
#get_packing_slip(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a packing slip based on the purchaseOrderNumber that you specify.
178 179 180 181 182 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 178 def get_packing_slip(purchase_order_number, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/packingSlips/#{percent_encode(purchase_order_number)}" parser = -> { GetPackingSlipResponse } get(path, rate_limit:, parser:) end |
#get_packing_slips(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: "ASC", next_token: nil, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a list of packing slips for the purchase orders that match the criteria specified. Date range to search must not be more than 7 days.
157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 157 def get_packing_slips(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: "ASC", next_token: nil, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/packingSlips" params = { "shipFromPartyId" => ship_from_party_id, "limit" => limit, "createdAfter" => created_after, "createdBefore" => created_before, "sortOrder" => sort_order, "nextToken" => next_token, }.compact parser = -> { GetPackingSlipListResponse } get(path, params:, rate_limit:, parser:) end |
#get_shipping_label(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a shipping label for the purchaseOrderNumber that you specify.
65 66 67 68 69 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 65 def get_shipping_label(purchase_order_number, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/shippingLabels/#{percent_encode(purchase_order_number)}" parser = -> { GetShippingLabelResponse } get(path, rate_limit:, parser:) end |
#get_shipping_labels(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: "ASC", next_token: nil, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns a list of shipping labels created during the time frame that you specify. You define that time frame using the createdAfter and createdBefore parameters. You must use both of these parameters. The date range to search must not be more than 7 days.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 31 def get_shipping_labels(created_after, created_before, ship_from_party_id: nil, limit: nil, sort_order: "ASC", next_token: nil, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/shippingLabels" params = { "shipFromPartyId" => ship_from_party_id, "limit" => limit, "createdAfter" => created_after, "createdBefore" => created_before, "sortOrder" => sort_order, "nextToken" => next_token, }.compact parser = -> { GetShippingLabelListResponse } get(path, params:, rate_limit:, parser:) end |
#submit_shipment_confirmations(body, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Submits one or more shipment confirmations for vendor orders.
77 78 79 80 81 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 77 def submit_shipment_confirmations(body, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/shipmentConfirmations" parser = -> { SubmitShipmentConfirmationsResponse } post(path, body:, rate_limit:, parser:) end |
#submit_shipment_status_updates(body, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
This API call is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API will submit a shipment status update for the package that a vendor has shipped. It will provide the Amazon customer visibility on their order, when the package is outside of Amazon Network visibility.
91 92 93 94 95 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 91 def submit_shipment_status_updates(body, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/shipmentStatusUpdates" parser = -> { SubmitShipmentStatusUpdatesResponse } post(path, body:, rate_limit:, parser:) end |
#submit_shipping_label_request(body, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a static sandbox call.
Creates a shipping label for a purchase order and returns a transactionId for reference.
52 53 54 55 56 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_v1.rb', line 52 def submit_shipping_label_request(body, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/v1/shippingLabels" parser = -> { SubmitShippingLabelsResponse } post(path, body:, rate_limit:, parser:) end |