Create Your Product and Delivery Method for Buy with Prime
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.
If you integrate the Buy with Prime Cartridge for Salesforce Commerce Cloud into your Salesforce B2C Commerce instance, you must create a corresponding Buy with Prime product and delivery method in your Salesforce organization. For details about the concepts of product and delivery method, in the Salesforce documentation see Order Product Fields and Order Delivery Method Fields.
To map orders from Salesforce B2C Commerce to the Salesforce order management system (OMS), the identifier for the product and delivery method in Salesforce must match the value of Buy with Prime Shipping Method ID in the Buy with Prime cartridge. For details about configuring the identifier in the Buy with Prime cartridge, see Configure the Buy with Prime Cartridge.
The following shows how to:
- Create a product in the Salesforce OMS and associate a price book with the product.
- Create a delivery method and associate the delivery method with the product.
Verify the value of your Buy with Prime Shipping Method ID
Before creating a product or delivery method in Salesforce, verify the value of Buy with Prime Shipping Method ID in the Buy with Prime cartridge.
- Open the Business Manager tool for Salesforce Commerce Cloud.
- Click the name of the site that you're integrating with Buy with Prime.
- On the Merchant Tools menu, click Site Preferences, click Custom Preferences, and then click Buy_with_Prime.
- View the value of Buy With Prime Shipping Method ID.
Create a product in Salesforce
The following steps assume that your Buy with Prime Shipping Method ID has the default value of ABWP
. If you set a different value, substitute the value that you set for each occurrence of ABWP
.
- In your Salesforce organization, click the App Launcher.
- On the App Launcher menu, in the search box, type
products
. - Click Products.
- Click New.
- For Product Name, enter
ABWP
. - For Product Code, enter
ABWP
. - Select the Active check box.
- Click Save.
Associate a price book with your product
If you don't already have the products list open, do the following to open the products list.
- In your Salesforce organization, click the App Launcher.
- On the App Launcher menu, in the search box, type
products
. - Click Products.
Do the following to associate a price book with your product.
- Click the name of the product that you created.
- On the Related tab, click Add Standard Price.
Alternatively, if you're using a custom price book, click Add to Price Book. - In the List Price box, enter 0.
- Select the Active check box if not already selected.
- Click Save.
Create a delivery method and associate the delivery method with your product
The following steps assume that your Buy with Prime Shipping Method ID has the default value of ABWP
. If you've set a different value, substitute your value for each occurrence of ABWP
.
- In your Salesforce organization, click the App Launcher.
- On the App Launcher menu, in the search box, type
order delivery methods
. - Click Order Delivery Methods.
- Click New.
- For Name, enter
ABWP
. - For Reference Number, enter
ABWP
. - For Product, select the ABWP product that you created.
- Select the Is Active check box.
- Click Save.
Verify that your Salesforce OMS shows an order that you create on your storefront
Do the following to verify that orders successfully map from Salesforce B2C Commerce to your Salesforce OMS.
- In your storefront, create an order that contains a product eligible for Buy with Prime.
- Open the Business Manager tool for Salesforce Commerce Cloud.
- Click the name of the site that you're integrating with Buy with Prime.
- On the Merchant Tools menu, click Ordering, and then click Orders.
- Search for the identifier for the order that you just created, and then open the order information.
- Confirm that the Order Management status is Accepted.
- In your Salesforce OMS, verify that the order is present.
Related topics
Updated 4 days ago