Changelog for the Buy with Prime API v2024-11-01
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,
DeliveryTermsInput
replacesDeliveryPreviewTermsInput
. -
DeliveryOfferDetails
now has adeliveryTerms
entity, which hasisPrimeEligible
anddeliverySpeed
fields. -
location
andshopperIdentity
are now top-level fields inDeliveryPreviewInput
and are no longer nested underDeliveryPreviewTermsInput
.
Order interface
-
In
createOrder
,updateOrder
, andorder
query response, thedeliveryInformation
field is renamed topackageInformation
. -
In the input to
createOrder
, theDeliveryProvider
BUY_WITH_PRIME
is replaced withAMAZON
. For products that offer Buy with Prime,isPrimeEligible
is true, otherwise it is false. -
For products fulfilled by
MERCHANT
, product attributes inLineItemInput
are now optional. -
cancelOrder
now allows a maximum of five aliases. -
cancelOrder
andupdateOrder
inputs are updated to includeorderIdentifier
for consistency. -
The following changes are made to
UpdateOrderInput
:- The type for the
lineItems
field changed fromLineItemInput
to a new type calledUpdateLineItemInput
. - The type for
orderId
changed fromID
toOrderIdentifierInput
so that you can use the order alias instead of the order ID. - The
deliveryInformation
field is renamed topackageInformation
. The type forpackageInformation
is a new typeUpdatePackageInformationInput
.
- The type for the
-
You can now find complete tracking details in
PackageTracker
in theorder
query response.
- There are new error codes for
createOrder
,updateOrder
andcancelOrder
.
StoreFingerprintInput
field 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_FEES
report type inReportRequest
.
Catalog interface
- A
Product
can now have variations, such as a t-shirt with available sizes of small, medium, and large. The new fields arevariationGroupMembership
andrepresentativeOfVariationGroup
.CreateProductInput
andUpdateProductInput
also have the new fieldvariationGroupMembership
.
- A set of related
Products
can now be grouped together as a purchase group, also called a bundle.
Product
,CreateProductInput
, andUpdateProductInput
have new fieldstitle
,externalVersion
andadvertisedPrice
.
- There is new filter functionality in the
products
query.
Delivery Preview interface
- The
deliveryPreview
response now has adeliveryTerms
entity, which hasisPrimeEligible
anddeliverySpeed
fields.
Order interface
-
A set of related
Products
can now be grouped together as a purchase group, also called a bundle. The new field ispurchaseGroupMembership
. -
Changes to
CreateOrderInput
:shopperIdentityInput
andCustomerInput
are now optional for products that don't offer Buy with Prime.DeliveryOfferDetails
now hasDeliveryTermsInput
which hasisPrimeEligible
anddeliverySpeed
fields.
-
In the
order
query response, the carrier code returned underPackageTracker
is now consistent across the Buy with Prime API.
- Querying the
PackageTracker
entity inOrder
requiresAppPackageTrackingMilestoneRead
scope.
- You can now reject a refund with the new state
REJECTED
forRefundStateInput
used inRefundDetailsInput
state
field.RefundDetailsInput
also has new fieldsrefundRequestReason
andrefundStatusReason
.
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
ReturnsInput
inupdateOrder
to add the information to the associated Buy with Prime order. -
The
reversalOffers
query returns aReversalItemOfferSummary
with awindow
for return eligibility.
- To update an external return, you can now provide a returnIdentifier that is either a Buy with Prime return ID or an alias.
ReturnLineItem
now hasrefundDetails
andreturnReason
fields.
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 interface APIs, the sandbox provides
updateOrderPackageInformation
andupdateOrderReturns
that you can use to move order states and test ordering and post ordering scenarios.
Updated 2 days ago