Get delivery preferences for an Amazon Business order
Learn how to get delivery preferences for an Amazon Business order.
Learn how to get delivery preferences for an Amazon Business order.
Prerequisites
To complete this tutorial, you need:
- Authorization from the selling partner for whom you are making calls. For more information, refer to Authorizing Selling Partner API applications.
- The Direct-to-Consumer Delivery (Restricted) role assigned to your developer profile.
- The Direct-to-Consumer Delivery (Restricted) role selected in the app registration page for your application.
Step 1. Get the order IDs for an Amazon Business order
Call the getOrders
operation. A successful response includes a payload
object, which contains an Orders
array of one or more orders, and optionally additional properties. An order is an Amazon Business order if the isBusinessOrder
response attribute is set to true
. The AmazonOrderId
response attribute contains the order ID.
Step 2. Get order address details for an Amazon Business order
Call the getOrderAddress
operation with an orderID
to get all delivery preferences (DeliveryPreferences
) that the user customer specified for the shipping address (DeliveryPreferences
are only available for Amazon Business orders). If the customer did not specify delivery preferences for the address, the getOrderAddress
operation returns the default business hours for the region. Ensure that:
- The order ID belongs to an Amazon Business order
- The order was created after February 8, 2023
Note
the
getOrderAddress
operation does not returnShippingAddress
for pending and cancelled orders.
Updated about 5 hours ago