Class: Peddler::APIs::Orders20260101
- Inherits:
-
Peddler::API
- Object
- Peddler::API
- Peddler::APIs::Orders20260101
- Defined in:
- lib/peddler/apis/orders_2026_01_01.rb,
lib/peddler/apis/orders_2026_01_01/alias.rb,
lib/peddler/apis/orders_2026_01_01/buyer.rb,
lib/peddler/apis/orders_2026_01_01/error.rb,
lib/peddler/apis/orders_2026_01_01/order.rb,
lib/peddler/apis/orders_2026_01_01/item_tax.rb,
lib/peddler/apis/orders_2026_01_01/order_tax.rb,
lib/peddler/apis/orders_2026_01_01/recipient.rb,
lib/peddler/apis/orders_2026_01_01/error_list.rb,
lib/peddler/apis/orders_2026_01_01/item_price.rb,
lib/peddler/apis/orders_2026_01_01/order_item.rb,
lib/peddler/apis/orders_2026_01_01/pagination.rb,
lib/peddler/apis/orders_2026_01_01/gift_option.rb,
lib/peddler/apis/orders_2026_01_01/hour_minute.rb,
lib/peddler/apis/orders_2026_01_01/measurement.rb,
lib/peddler/apis/orders_2026_01_01/time_window.rb,
lib/peddler/apis/orders_2026_01_01/item_expense.rb,
lib/peddler/apis/orders_2026_01_01/item_packing.rb,
lib/peddler/apis/orders_2026_01_01/item_picking.rb,
lib/peddler/apis/orders_2026_01_01/item_product.rb,
lib/peddler/apis/orders_2026_01_01/package_item.rb,
lib/peddler/apis/orders_2026_01_01/business_hour.rb,
lib/peddler/apis/orders_2026_01_01/item_proceeds.rb,
lib/peddler/apis/orders_2026_01_01/item_shipping.rb,
lib/peddler/apis/orders_2026_01_01/order_package.rb,
lib/peddler/apis/orders_2026_01_01/order_payment.rb,
lib/peddler/apis/orders_2026_01_01/sales_channel.rb,
lib/peddler/apis/orders_2026_01_01/exception_date.rb,
lib/peddler/apis/orders_2026_01_01/item_condition.rb,
lib/peddler/apis/orders_2026_01_01/item_promotion.rb,
lib/peddler/apis/orders_2026_01_01/order_proceeds.rb,
lib/peddler/apis/orders_2026_01_01/package_status.rb,
lib/peddler/apis/orders_2026_01_01/points_granted.rb,
lib/peddler/apis/orders_2026_01_01/date_time_range.rb,
lib/peddler/apis/orders_2026_01_01/associated_order.rb,
lib/peddler/apis/orders_2026_01_01/customer_address.rb,
lib/peddler/apis/orders_2026_01_01/item_fulfillment.rb,
lib/peddler/apis/orders_2026_01_01/item_points_cost.rb,
lib/peddler/apis/orders_2026_01_01/merchant_address.rb,
lib/peddler/apis/orders_2026_01_01/item_cancellation.rb,
lib/peddler/apis/orders_2026_01_01/order_fulfillment.rb,
lib/peddler/apis/orders_2026_01_01/payment_execution.rb,
lib/peddler/apis/orders_2026_01_01/get_order_response.rb,
lib/peddler/apis/orders_2026_01_01/item_customization.rb,
lib/peddler/apis/orders_2026_01_01/delivery_preference.rb,
lib/peddler/apis/orders_2026_01_01/item_tax_collection.rb,
lib/peddler/apis/orders_2026_01_01/order_tax_invoicing.rb,
lib/peddler/apis/orders_2026_01_01/associated_order_item.rb,
lib/peddler/apis/orders_2026_01_01/order_tax_registration.rb,
lib/peddler/apis/orders_2026_01_01/search_orders_response.rb,
lib/peddler/apis/orders_2026_01_01/address_extended_fields.rb,
lib/peddler/apis/orders_2026_01_01/item_proceeds_breakdown.rb,
lib/peddler/apis/orders_2026_01_01/preferred_delivery_time.rb,
lib/peddler/apis/orders_2026_01_01/item_promotion_breakdown.rb,
lib/peddler/apis/orders_2026_01_01/item_substitution_option.rb,
lib/peddler/apis/orders_2026_01_01/item_cancellation_request.rb,
lib/peddler/apis/orders_2026_01_01/item_shipping_constraints.rb,
lib/peddler/apis/orders_2026_01_01/serial_number_requirement.rb,
lib/peddler/apis/orders_2026_01_01/tax_registration_attribute.rb,
lib/peddler/apis/orders_2026_01_01/item_international_shipping.rb,
lib/peddler/apis/orders_2026_01_01/item_substitution_preference.rb,
lib/peddler/apis/orders_2026_01_01/item_tax_calculation_breakdown.rb,
lib/peddler/apis/orders_2026_01_01/item_proceeds_detailed_breakdown.rb,
sig/peddler/apis/orders_2026_01_01.rbs
Overview
The Selling Partner API for Orders
The Selling Partner API for Orders returns orders information. This API supports the following types of orders:
- FBM (Fulfilled by Merchant) - FBA (Fulfilled by Amazon) - read only - Amazon Fresh
This API does not display order data that is more than two years old, except in the JP, AU, and SG marketplaces, for which data from 2016 and after is available.
Defined Under Namespace
Classes: AddressExtendedFields, Alias, AssociatedOrder, AssociatedOrderItem, BusinessHour, Buyer, CustomerAddress, DateTimeRange, DeliveryPreference, Error, ErrorList, ExceptionDate, GetOrderResponse, GiftOption, HourMinute, ItemCancellation, ItemCancellationRequest, ItemCondition, ItemCustomization, ItemExpense, ItemFulfillment, ItemInternationalShipping, ItemPacking, ItemPicking, ItemPointsCost, ItemPrice, ItemProceeds, ItemProceedsBreakdown, ItemProceedsDetailedBreakdown, ItemProduct, ItemPromotion, ItemPromotionBreakdown, ItemShipping, ItemShippingConstraints, ItemSubstitutionOption, ItemSubstitutionPreference, ItemTax, ItemTaxCalculationBreakdown, ItemTaxCollection, Measurement, MerchantAddress, Order, OrderFulfillment, OrderItem, OrderPackage, OrderPayment, OrderProceeds, OrderTax, OrderTaxInvoicing, OrderTaxRegistration, PackageItem, PackageStatus, Pagination, PaymentExecution, PointsGranted, PreferredDeliveryTime, Recipient, SalesChannel, SearchOrdersResponse, SerialNumberRequirement, TaxRegistrationAttribute, TimeWindow
Instance Attribute Summary
Attributes inherited from Peddler::API
#access_token, #endpoint, #retries
Instance Method Summary collapse
-
#get_order(order_id, included_data: nil, rate_limit: 0.5) ⇒ Peddler::Response
Returns the order that you specify.
-
#search_orders(created_after: nil, created_before: nil, last_updated_after: nil, last_updated_before: nil, fulfillment_statuses: nil, marketplace_ids: nil, fulfilled_by: nil, max_results_per_page: nil, pagination_token: nil, included_data: nil, rate_limit: 0.0056) ⇒ Peddler::Response
Returns orders created or updated during the time period 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_order(order_id, included_data: nil, rate_limit: 0.5) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns the order that you specify.
85 86 87 88 89 90 91 92 |
# File 'lib/peddler/apis/orders_2026_01_01.rb', line 85 def get_order(order_id, included_data: nil, rate_limit: 0.5) path = "/orders/2026-01-01/orders/#{percent_encode(order_id)}" params = { "includedData" => stringify_array(included_data), }.compact parser = -> { GetOrderResponse } get(path, params:, rate_limit:, parser:) end |
#search_orders(created_after: nil, created_before: nil, last_updated_after: nil, last_updated_before: nil, fulfillment_statuses: nil, marketplace_ids: nil, fulfilled_by: nil, max_results_per_page: nil, pagination_token: nil, included_data: nil, rate_limit: 0.0056) ⇒ Peddler::Response
This operation can make a static sandbox call.
Returns orders created or updated during the time period that you specify. You can filter the response for specific types of orders.
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/peddler/apis/orders_2026_01_01.rb', line 58 def search_orders(created_after: nil, created_before: nil, last_updated_after: nil, last_updated_before: nil, fulfillment_statuses: nil, marketplace_ids: nil, fulfilled_by: nil, max_results_per_page: nil, pagination_token: nil, included_data: nil, rate_limit: 0.0056) path = "/orders/2026-01-01/orders" params = { "createdAfter" => created_after, "createdBefore" => created_before, "lastUpdatedAfter" => last_updated_after, "lastUpdatedBefore" => last_updated_before, "fulfillmentStatuses" => stringify_array(fulfillment_statuses), "marketplaceIds" => stringify_array(marketplace_ids), "fulfilledBy" => stringify_array(fulfilled_by), "maxResultsPerPage" => max_results_per_page, "paginationToken" => pagination_token, "includedData" => stringify_array(included_data), }.compact parser = -> { SearchOrdersResponse } get(path, params:, rate_limit:, parser:) end |