Newer Version Available

This content describes an older version of this product. View Latest

B2B Commerce for Lightning Resources

Get, create, update, and delete your commerce data. Work with carts, orders, products, wishlists, and search settings.

Available resources are:

Carts

Resource Description
/commerce/webstores/webstoreId/carts Create a cart.
/commerce/webstores/webstoreId/carts​/cartStateOrId Get a cart. Delete a cart. Create an active cart, if one doesn’t exist.
/commerce/webstores/webstoreId/carts​/cartStateOrId/actions/add-cart-to-wishlist Copy the products from a cart to a wishlist.
/commerce/webstores/webstoreId/carts​/cartStateOrId/cart-items Get the items in a cart. Add an item to a cart.
/commerce/webstores/webstoreId/carts​/cartStateOrId/cart-items/batch Add a batch of up to 100 items to a cart.
/commerce/webstores/webstoreId/carts​/cartStateOrId/cart-items/cartItemId Update or delete an item in a cart.
/commerce/webstores/webstoreId/carts​/cartStateOrId/messages/actions/set-visibility Set the visibility for cart messages.

Externally Managed Accounts

Resource Description
/commerce/webstores/webstoreId/​external-managed-accounts Get a collection of externally managed accounts.

Products, Product Categories, Product Prices, Product Searches

Wishlists