Class: Peddler::APIs::VendorDirectFulfillmentShipping20211228
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::VendorDirectFulfillmentShipping20211228
- Defined in:
- lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb
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.
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #parser
Instance Method Summary collapse
-
#create_shipping_labels(purchase_order_number, body, rate_limit: 10.0) ⇒ Peddler::Response
Creates shipping labels for a purchase order and returns the labels.
-
#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 operation 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
#endpoint_uri, #http, #initialize, #meter, #retriable, #sandbox, #sandbox?, #use, #via
Constructor Details
This class inherits a constructor from Peddler::API
Instance Method Details
#create_shipping_labels(purchase_order_number, body, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
Creates shipping labels for a purchase order and returns the labels.
83 84 85 86 87 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 83 def create_shipping_labels(purchase_order_number, body, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/#{purchase_order_number}" meter(rate_limit).post(path, body:) end |
#get_customer_invoice(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
Returns a customer invoice based on the purchaseOrderNumber that you specify.
153 154 155 156 157 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 153 def get_customer_invoice(purchase_order_number, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/2021-12-28/customerInvoices/#{purchase_order_number}" meter(rate_limit).get(path) 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 dynamic 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.
132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 132 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/2021-12-28/customerInvoices" params = { "shipFromPartyId" => ship_from_party_id, "limit" => limit, "createdAfter" => created_after, "createdBefore" => created_before, "sortOrder" => sort_order, "nextToken" => next_token, }.compact meter(rate_limit).get(path, params:) end |
#get_packing_slip(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
Returns a packing slip based on the purchaseOrderNumber that you specify.
196 197 198 199 200 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 196 def get_packing_slip(purchase_order_number, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/2021-12-28/packingSlips/#{purchase_order_number}" meter(rate_limit).get(path) 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 dynamic 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.
175 176 177 178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 175 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/2021-12-28/packingSlips" params = { "shipFromPartyId" => ship_from_party_id, "limit" => limit, "createdAfter" => created_after, "createdBefore" => created_before, "sortOrder" => sort_order, "nextToken" => next_token, }.compact meter(rate_limit).get(path, params:) end |
#get_shipping_label(purchase_order_number, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
Returns a shipping label for the purchaseOrderNumber that you specify.
69 70 71 72 73 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 69 def get_shipping_label(purchase_order_number, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/2021-12-28/shippingLabels/#{purchase_order_number}" meter(rate_limit).get(path) 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 dynamic 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.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 35 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/2021-12-28/shippingLabels" params = { "shipFromPartyId" => ship_from_party_id, "limit" => limit, "createdAfter" => created_after, "createdBefore" => created_before, "sortOrder" => sort_order, "nextToken" => next_token, }.compact meter(rate_limit).get(path, params:) end |
#submit_shipment_confirmations(body, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
Submits one or more shipment confirmations for vendor orders.
95 96 97 98 99 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 95 def submit_shipment_confirmations(body, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/2021-12-28/shipmentConfirmations" meter(rate_limit).post(path, body:) end |
#submit_shipment_status_updates(body, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
This operation is only to be used by Vendor-Own-Carrier (VOC) vendors. Calling this API submits 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.
109 110 111 112 113 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 109 def submit_shipment_status_updates(body, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/2021-12-28/shipmentStatusUpdates" meter(rate_limit).post(path, body:) end |
#submit_shipping_label_request(body, rate_limit: 10.0) ⇒ Peddler::Response
This operation can make a dynamic sandbox call.
Creates a shipping label for a purchase order and returns a transactionId for reference.
56 57 58 59 60 |
# File 'lib/peddler/apis/vendor_direct_fulfillment_shipping_2021_12_28.rb', line 56 def submit_shipping_label_request(body, rate_limit: 10.0) path = "/vendor/directFulfillment/shipping/2021-12-28/shippingLabels" meter(rate_limit).post(path, body:) end |