Changelog for the Buy with Prime API v2024-11-01
Buy with Prime API is now available for early access
Sign up for early access to the Buy with Prime API using the 'Sign Up' button below. The API may change as Amazon receives feedback and iterates on it.
December 24, 2024
ReturnPackageDetailsInput now has the field reason which you can use to indicate why a delivery failed.
December 18, 2024
The packageTracker query is now available for you to get the status of a PackageTracker.
December 4, 2024
The following events have been deprecated, and we recommend you subscribe to the new events instead.
| Deprecated event | New event |
|---|---|
DELIVERY_IN_TRANSIT | PACKAGE_DELIVERY_IN_TRANSIT |
DELIVERY_COMPLETED | PACKAGE_DELIVERED |
DELIVERY_CANCELLED | PACKAGE_DELIVERY_CANCELLED |
RETURN_DELIVERY_COMPLETED | RETURN_PACKAGE_DELIVERED |
RETURN_DELIVERY_FAILED | RETURN_PACKAGE_DELIVERY_FAILED |
RETURN_DELIVERY_IN_TRANSIT | RETURN_PACKAGE_IN_TRANSIT |
November 22, 2024
This changelog lists the updates associated with Buy with Prime API v2024-11-01.
Backwards-incompatible changes
v2024-11-01 of the Buy with Prime API has the following backwards-incompatible updates from the v2024-04-01 version. These updates require code changes on your end if you decide to migrate to this version.
Delivery Preview interface
-
To enable delivery previews for all types of deliveries and to provide a common input term for delivery preview and ordering,
DeliveryTermsInputreplacesDeliveryPreviewTermsInput. -
DeliveryOfferDetailsnow has adeliveryTermsentity, which hasisPrimeEligibleanddeliverySpeedfields. -
locationandshopperIdentityare now top-level fields inDeliveryPreviewInputand are no longer nested underDeliveryPreviewTermsInput.
Order interface
-
In
createOrder,updateOrder, andorderquery response, thedeliveryInformationfield is renamed topackageInformation. -
In the input to
createOrder, theDeliveryProviderBUY_WITH_PRIMEis replaced withAMAZON. For products eligible for Buy with Prime,isPrimeEligibleis true, otherwise it is false. -
For products fulfilled by
MERCHANT, product attributes inLineItemInputare now optional. -
cancelOrdernow allows a maximum of five aliases. -
cancelOrderandupdateOrderinputs are updated to includeorderIdentifierfor consistency. -
The following changes are made to
UpdateOrderInput:- The type for the
lineItemsfield changed fromLineItemInputto a new type calledUpdateLineItemInput. - The type for
orderIdchanged fromIDtoOrderIdentifierInputso that you can use the order alias instead of the order ID. - The
deliveryInformationfield is renamed topackageInformation. The type forpackageInformationis a new typeUpdatePackageInformationInput.
- The type for the
-
You can now find complete tracking details in
PackageTrackerin theorderquery response.
- There are new error codes for
createOrder,updateOrderandcancelOrder.
StoreFingerprintInputfield is removed fromClientDetailsInput.
Backwards-compatible changes
v2024-11-01 of the Buy with Prime API has the following backwards-compatible updates from the v2024-04-01 version.
- Error outputs across the Buy with Prime API are standardized to include type, code, and details.
- The Buy with Prime API now uses the same transitive authentication token header in service headers as the Selling Partner API (SP-API).
Analytics interface
- There is a new
ORDER_FEESreport type inReportRequest.
Catalog interface
- A
Productcan now have variations, such as a t-shirt with available sizes of small, medium, and large. The new fields arevariationGroupMembershipandrepresentativeOfVariationGroup.CreateProductInputandUpdateProductInputalso have the new fieldvariationGroupMembership.
- A set of related
Productscan now be grouped together as a purchase group, also called a bundle.
Product,CreateProductInput, andUpdateProductInputhave new fieldstitle,externalVersionandadvertisedPrice.
- There is new filter functionality in the
productsquery.
Delivery Preview interface
- The
deliveryPreviewresponse now has adeliveryTermsentity, which hasisPrimeEligibleanddeliverySpeedfields.
Order interface
-
A set of related
Productscan now be grouped together as a purchase group, also called a bundle. The new field ispurchaseGroupMembership. -
Changes to
CreateOrderInput:shopperIdentityInputandCustomerInputare now optional for products that aren't eligible for Buy with Prime.DeliveryOfferDetailsnow hasDeliveryTermsInputwhich hasisPrimeEligibleanddeliverySpeedfields.
-
In the
orderquery response, the carrier code returned underPackageTrackeris now consistent across the Buy with Prime API.
- Querying the
PackageTrackerentity inOrderrequiresAppPackageTrackingMilestoneReadscope.
- You can now reject a refund with the new state
REJECTEDforRefundStateInputused inRefundDetailsInputstatefield.RefundDetailsInputalso has new fieldsrefundRequestReasonandrefundStatusReason.
Refund interface
- The refund request reason can no longer be changed for refunds generated by cancellations, returns, or customer service agents.
Return interface
-
When a customer initiates an external return, which is a return outside of Buy with Prime, you can now use
ReturnsInputinupdateOrderto add the information to the associated Buy with Prime order. -
The
reversalOffersquery returns aReversalItemOfferSummarywith awindowfor return eligibility.
- To update an external return, you can now provide a
returnIdentifierthat is either a Buy with Prime return ID or an alias.
ReturnLineItemnow hasrefundDetailsandreturnReasonfields.
Sandbox
- The Buy with Prime API now provides a sandbox environment that you can use to test your integration without affecting production data or triggering real-world events. Along with all other APIs, the sandbox environment provides
updateOrderPackageInformationandupdateOrderReturnsthat you can use to move order states and test ordering and post ordering scenarios.
Updated 6 months ago
