Skip to content

Latest commit

 

History

History
319 lines (220 loc) · 19.2 KB

OrdersV0Api.md

File metadata and controls

319 lines (220 loc) · 19.2 KB

amazon_selling_partner_api.OrdersV0Api

All URIs are relative to /

Method HTTP request Description
get_order GET /orders/v0/orders/{orderId}
get_order_address GET /orders/v0/orders/{orderId}/address
get_order_buyer_info GET /orders/v0/orders/{orderId}/buyerInfo
get_order_items GET /orders/v0/orders/{orderId}/orderItems
get_order_items_buyer_info GET /orders/v0/orders/{orderId}/orderItems/buyerInfo
get_orders GET /orders/v0/orders

get_order

get_order()

Returns the order indicated by the specified order ID. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

Example

from __future__ import print_function
import time
import amazon_selling_partner_api
from amazon_selling_partner_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = amazon_selling_partner_api.OrdersV0Api()
 = amazon_selling_partner_api.null() #  | An Amazon-defined order identifier, in 3-7-7 format.

try:
    api_instance.get_order()
except ApiException as e:
    print("Exception when calling OrdersV0Api->get_order: %s\n" % e)

Parameters

Name Type Description Notes
**** **** An Amazon-defined order identifier, in 3-7-7 format.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_order_address

get_order_address()

Returns the shipping address for the order indicated by the specified order ID. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

Example

from __future__ import print_function
import time
import amazon_selling_partner_api
from amazon_selling_partner_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = amazon_selling_partner_api.OrdersV0Api()
 = amazon_selling_partner_api.null() #  | An orderId is an Amazon-defined order identifier, in 3-7-7 format.

try:
    api_instance.get_order_address()
except ApiException as e:
    print("Exception when calling OrdersV0Api->get_order_address: %s\n" % e)

Parameters

Name Type Description Notes
**** **** An orderId is an Amazon-defined order identifier, in 3-7-7 format.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_order_buyer_info

get_order_buyer_info()

Returns buyer information for the order indicated by the specified order ID. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

Example

from __future__ import print_function
import time
import amazon_selling_partner_api
from amazon_selling_partner_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = amazon_selling_partner_api.OrdersV0Api()
 = amazon_selling_partner_api.null() #  | An orderId is an Amazon-defined order identifier, in 3-7-7 format.

try:
    api_instance.get_order_buyer_info()
except ApiException as e:
    print("Exception when calling OrdersV0Api->get_order_buyer_info: %s\n" % e)

Parameters

Name Type Description Notes
**** **** An orderId is an Amazon-defined order identifier, in 3-7-7 format.

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_order_items

get_order_items(, =)

Returns detailed order item information for the order indicated by the specified order ID. If NextToken is provided, it's used to retrieve the next page of order items. Note: When an order is in the Pending state (the order has been placed but payment has not been authorized), the getOrderItems operation does not return information about pricing, taxes, shipping charges, gift status or promotions for the order items in the order. After an order leaves the Pending state (this occurs when payment has been authorized) and enters the Unshipped, Partially Shipped, or Shipped state, the getOrderItems operation returns information about pricing, taxes, shipping charges, gift status and promotions for the order items in the order. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

Example

from __future__ import print_function
import time
import amazon_selling_partner_api
from amazon_selling_partner_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = amazon_selling_partner_api.OrdersV0Api()
 = amazon_selling_partner_api.null() #  | An Amazon-defined order identifier, in 3-7-7 format.
 = amazon_selling_partner_api.null() #  | A string token returned in the response of your previous request. (optional)

try:
    api_instance.get_order_items(, =)
except ApiException as e:
    print("Exception when calling OrdersV0Api->get_order_items: %s\n" % e)

Parameters

Name Type Description Notes
**** **** An Amazon-defined order identifier, in 3-7-7 format.
**** **** A string token returned in the response of your previous request. [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_order_items_buyer_info

get_order_items_buyer_info(, =)

Returns buyer information in the order items of the order indicated by the specified order ID. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

Example

from __future__ import print_function
import time
import amazon_selling_partner_api
from amazon_selling_partner_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = amazon_selling_partner_api.OrdersV0Api()
 = amazon_selling_partner_api.null() #  | An Amazon-defined order identifier, in 3-7-7 format.
 = amazon_selling_partner_api.null() #  | A string token returned in the response of your previous request. (optional)

try:
    api_instance.get_order_items_buyer_info(, =)
except ApiException as e:
    print("Exception when calling OrdersV0Api->get_order_items_buyer_info: %s\n" % e)

Parameters

Name Type Description Notes
**** **** An Amazon-defined order identifier, in 3-7-7 format.
**** **** A string token returned in the response of your previous request. [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_orders

get_orders(, =, =, =, =, =, =, =, =, =, =, =, =, =)

Returns orders created or updated during the time frame indicated by the specified parameters. You can also apply a range of filtering criteria to narrow the list of orders returned. If NextToken is present, that will be used to retrieve the orders instead of other criteria. Usage Plan: | Rate (requests per second) | Burst | | ---- | ---- | | 1 | 1 | For more information, see "Usage Plans and Rate Limits" in the Selling Partner API documentation.

Example

from __future__ import print_function
import time
import amazon_selling_partner_api
from amazon_selling_partner_api.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = amazon_selling_partner_api.OrdersV0Api()
 = amazon_selling_partner_api.null() #  | A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces.
 = amazon_selling_partner_api.null() #  | A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. (optional)
 = amazon_selling_partner_api.null() #  | A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. (optional)
 = amazon_selling_partner_api.null() #  | A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional)
 = amazon_selling_partner_api.null() #  | A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. (optional)
 = amazon_selling_partner_api.null() #  | A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.). (optional)
 = amazon_selling_partner_api.null() #  | A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). (optional)
 = amazon_selling_partner_api.null() #  | A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). (optional)
 = amazon_selling_partner_api.null() #  | The email address of a buyer. Used to select orders that contain the specified email address. (optional)
 = amazon_selling_partner_api.null() #  | An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. (optional)
 = amazon_selling_partner_api.null() #  | A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. (optional)
 = amazon_selling_partner_api.null() #  | A list of EasyShipShipmentStatus values. Used to select Easy Ship orders with statuses that match the specified  values. If EasyShipShipmentStatus is specified, only Amazon Easy Ship orders are returned.Possible values: PendingPickUp (Amazon has not yet picked up the package from the seller). LabelCanceled (The seller canceled the pickup). PickedUp (Amazon has picked up the package from the seller). AtOriginFC (The packaged is at the origin fulfillment center). AtDestinationFC (The package is at the destination fulfillment center). OutForDelivery (The package is out for delivery). Damaged (The package was damaged by the carrier). Delivered (The package has been delivered to the buyer). RejectedByBuyer (The package has been rejected by the buyer). Undeliverable (The package cannot be delivered). ReturnedToSeller (The package was not delivered to the buyer and was returned to the seller). ReturningToSeller (The package was not delivered to the buyer and is being returned to the seller). (optional)
 = amazon_selling_partner_api.null() #  | A string token returned in the response of your previous request. (optional)
 = amazon_selling_partner_api.null() #  | A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. (optional)

try:
    api_instance.get_orders(, =, =, =, =, =, =, =, =, =, =, =, =, =)
except ApiException as e:
    print("Exception when calling OrdersV0Api->get_orders: %s\n" % e)

Parameters

Name Type Description Notes
**** **** A list of MarketplaceId values. Used to select orders that were placed in the specified marketplaces.
**** **** A date used for selecting orders created after (or at) a specified time. Only orders placed after the specified time are returned. Either the CreatedAfter parameter or the LastUpdatedAfter parameter is required. Both cannot be empty. The date must be in ISO 8601 format. [optional]
**** **** A date used for selecting orders created before (or at) a specified time. Only orders placed before the specified time are returned. The date must be in ISO 8601 format. [optional]
**** **** A date used for selecting orders that were last updated after (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. [optional]
**** **** A date used for selecting orders that were last updated before (or at) a specified time. An update is defined as any change in order status, including the creation of a new order. Includes updates made by Amazon and by the seller. The date must be in ISO 8601 format. [optional]
**** **** A list of OrderStatus values used to filter the results. Possible values: PendingAvailability (This status is available for pre-orders only. The order has been placed, payment has not been authorized, and the release date of the item is in the future.); Pending (The order has been placed but payment has not been authorized); Unshipped (Payment has been authorized and the order is ready for shipment, but no items in the order have been shipped); PartiallyShipped (One or more, but not all, items in the order have been shipped); Shipped (All items in the order have been shipped); InvoiceUnconfirmed (All items in the order have been shipped. The seller has not yet given confirmation to Amazon that the invoice has been shipped to the buyer.); Canceled (The order has been canceled); and Unfulfillable (The order cannot be fulfilled. This state applies only to Multi-Channel Fulfillment orders.). [optional]
**** **** A list that indicates how an order was fulfilled. Filters the results by fulfillment channel. Possible values: FBA (Fulfillment by Amazon); SellerFulfilled (Fulfilled by the seller). [optional]
**** **** A list of payment method values. Used to select orders paid using the specified payment methods. Possible values: COD (Cash on delivery); CVS (Convenience store payment); Other (Any payment method other than COD or CVS). [optional]
**** **** The email address of a buyer. Used to select orders that contain the specified email address. [optional]
**** **** An order identifier that is specified by the seller. Used to select only the orders that match the order identifier. If SellerOrderId is specified, then FulfillmentChannels, OrderStatuses, PaymentMethod, LastUpdatedAfter, LastUpdatedBefore, and BuyerEmail cannot be specified. [optional]
**** **** A number that indicates the maximum number of orders that can be returned per page. Value must be 1 - 100. Default 100. [optional]
**** **** A list of EasyShipShipmentStatus values. Used to select Easy Ship orders with statuses that match the specified values. If EasyShipShipmentStatus is specified, only Amazon Easy Ship orders are returned.Possible values: PendingPickUp (Amazon has not yet picked up the package from the seller). LabelCanceled (The seller canceled the pickup). PickedUp (Amazon has picked up the package from the seller). AtOriginFC (The packaged is at the origin fulfillment center). AtDestinationFC (The package is at the destination fulfillment center). OutForDelivery (The package is out for delivery). Damaged (The package was damaged by the carrier). Delivered (The package has been delivered to the buyer). RejectedByBuyer (The package has been rejected by the buyer). Undeliverable (The package cannot be delivered). ReturnedToSeller (The package was not delivered to the buyer and was returned to the seller). ReturningToSeller (The package was not delivered to the buyer and is being returned to the seller). [optional]
**** **** A string token returned in the response of your previous request. [optional]
**** **** A list of AmazonOrderId values. An AmazonOrderId is an Amazon-defined order identifier, in 3-7-7 format. [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]