Version 0.13.0 Release Notes for the Buy with Prime Cartridge

📘

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.

Version 0.13.0 of the Buy with Prime cartridge for Salesforce Commerce Cloud uses Buy with Prime API version 2024-11-01. Earlier versions of the cartridge use API version 2024-01-01.

The prerequisites for using the cartridge remain the same as for earlier versions of the cartridge. For details about dependencies, see Install the Buy with Prime Cartridge.

Consider the following changes in cartridge version 0.13.0.

SRI verification

The scripts included with the Buy with Prime cartridge now integrate Subresource Integrity (SRI) verification to help prevent tampering and unauthorized code injection. For details about SRI, in the Mozilla documentation see Subresource Integrity.

Version 2024-11-01 of the Buy with Prime API

The Buy with Prime cartridge has migrated to Buy with Prime API version 2024-11-01.

The cartridge now supports the following updated queries and mutations:

Catalogs: createUploadLink mutation

For the createUploadLink mutation, the following table shows changes to fields in the request:

Previous fieldNew fieldDescription
fileExtensionfileTypeField name changed

For the createUploadLink mutation, the following table shows changes to fields in the response:

Previous fieldNew fieldDescription
NonepayloadNew field
fileIdfileId inside payloadField moved inside payload
uploadUrluploadUrl inside payloadField moved inside payload

Catalogs: catalogFeed query

For the catalogFeed query, the following table shows changes to fields in the response:

Previous fieldNew fieldDescription
issuesNoneField removed
NonesignalsNew field

Delivery previews: deliveryPreview query

For the deliveryPreview query, the following table shows changes to fields in the request:

Previous fieldNew fieldDescription
externalIdNoneField removed
idPTokenNoneField removed
idPTokenTypeNoneField removed
identityProviderNoneField removed
itemsproductsField name changed
inputItemsinputProductsField name changed
quantityamountField name changed
NoneapayCheckoutSessionIdNew field
NonelwaAccessTokenNew field
location in DeliveryPreviewTermsInputlocation in DeliveryPreviewInputField moved
shopperIdentity in DeliveryPreviewTermsInputshopperIdentity in DeliveryPreviewInputField moved

For the deliveryPreview query, the following table shows changes to fields in the response:

Previous fieldNew fieldDescription
itemsproductsField name changed
itemMessagingproductMessagingField name changed
MskuItemIdentifierAmazonSkuProductIdentifierField name changed
quantityamountField name changed
ItemAmountUnavailableProductAmountUnavailableException name changed
ItemNotPrimeEnabledProductNotPrimeEnabledException name changed
ItemOutOfStockProductOutOfStockException name changed
charge in DeliveryOfferprice in DeliveryOfferField moved

Delivery previews: shopperBwPEligibility query

For the shopperBwPEligibility query, the following table shows changes to fields in the request:

Previous fieldNew fieldDescription
externalIdNoneField removed
idPTokenNoneField removed
idPTokenTypeNoneField removed
identityProviderNoneField removed
NoneapayCheckoutSessionIdNew field
NonelwaAccessTokenNew field

Orders: createOrder mutation

For the createOrder mutation, the following table shows changes to fields in the request:

Previous fieldNew fieldDescription
externalIdNoneField removed
idPTokenNoneField removed
idPTokenTypeNoneField removed
identityProviderNoneField removed
NoneapayCheckoutSessionIdNew field
NonelwaAccessTokenNew field
orderTotaltotalPriceField name changed
orderAliasesaliasesField name changed
BUY_WITH_PRIME value for DeliveryProviderAMAZON value for DeliveryProviderStatic string name changed

For the createOrder mutation, for the CreateOrderResponse response, the following table shows changes to fields in the Order object:

Previous fieldNew fieldDescription
id in CreateOrderOutputid in OrderField moved
orderLinks in CreateOrderOutputorderLinks in OrderField moved
purchasedItem in Orderproduct in OrderField name changed

Orders: updateOrder mutation

For the updateOrder mutation, the following table shows changes to fields in the request:

Previous fieldNew fieldDescription
NoneorderIdentifierNew field
orderId: ID in UpdateOrderInputNoneField removed

Returns: generateReversalOffers query

The generateReversalOffers query has been renamed to reversalOffers.

For the reversalOffers query, the following table shows changes to fields in the request:

Previous fieldNew fieldDescription
NoneresolutionTypesNew field

For the reversalOffers query, the following table shows changes to fields in the response:

Previous fieldNew fieldDescription
title as stringtitle as LocalizedStringData type changed
description as stringdescription as LocalizedStringData type changed
reversalOfferGroupsreversalOfferCollectionField name changed

Related topics

Buy with Prime Cartridge for Salesforce Commerce Cloud