{ "opencollection": "1.0.0", "info": { "name": "Addresses Introduction Account Addresses Cart Items API", "version": "25.1126.6886238" }, "request": { "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "items": [ { "info": { "name": "Cart Items", "type": "folder" }, "items": [ { "info": { "name": "Get Cart Items", "type": "http" }, "http": { "method": "GET", "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items", "params": [ { "name": "cartID", "value": "", "type": "path", "description": "The unique identifier of the cart that you created." }, { "name": "include", "value": "", "type": "query", "description": "A comma-separated list of related resources to include in the response." } ] }, "docs": "\nUse this endpoint to retrieve cart items. If the cart is associated with shipping groups, calling this endpoint displays the associated shipping group IDs.\n\nYou can use this endpoint to retrieve the breakdown of cart items by promotion ID. For example, if you have Promotions Standard item discount with code *sale2024*, Rule Promotions item discount with code *sale2024*, and Rule Promotions cart discount with code *sale2024*, the `discounts.constituents` field in the response example will show t" }, { "info": { "name": "Add Items to Cart", "type": "http" }, "http": { "method": "POST", "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items", "params": [ { "name": "cartID", "value": "", "type": "path", "description": "The unique identifier of the cart that you created." } ], "body": { "type": "json", "data": "{}" } }, "docs": "\n### Add Product to Cart\n\nAdding a Product to Cart is the most common Cart action. If you want to add any custom products or promotions, you need to do that as a separate action.\n\n#### Dynamic Bundles\n\nA bundle is a purchasable product that is composed of a combination of two or more products that you want to sell together. You can create multiple components within a bundle. Each component can have one or more options. Each option is a product and a quantity. You can configure minimum and/or max" }, { "info": { "name": "Bulk Update Items in Cart", "type": "http" }, "http": { "method": "PUT", "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items", "params": [ { "name": "cartID", "value": "", "type": "path", "description": "The unique identifier of the cart that you created." } ], "body": { "type": "json", "data": "{}" } }, "docs": "The bulk update feature allows shoppers to update an array of items to their cart in one action, rather than updating each item one at a time. Shoppers can update quantity and shipping group details in bulk requests. This minimizes the time for shoppers while updating items to their cart. Shoppers can even update multiple items with the same or different shipping groups to their cart.\n\nWhen you update multiple items that qualify for free gifts in the cart, the corresponding free gifts for all el" }, { "info": { "name": "Delete all Cart Items", "type": "http" }, "http": { "method": "DELETE", "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items", "params": [ { "name": "cartID", "value": "", "type": "path", "description": "The unique identifier of the cart created by you." } ] }, "docs": "A shopper can clean up their cart, deleting custom items, promotions, and so on, while the empty cart remains available. The cart id, name, description, and any account or customer associations persist. The shopper can continue to add items to the cart.\n" }, { "info": { "name": "Update a Cart Item", "type": "http" }, "http": { "method": "PUT", "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items/:cartitemID", "params": [ { "name": "cartID", "value": "", "type": "path", "description": "A unique identifier of the cart that you created." }, { "name": "cartitemID", "value": "", "type": "path", "description": "A unique identifier of the cart item." } ], "body": { "type": "json", "data": "{}" } }, "docs": "You can easily update a cart item. A successful update returns the cart items." }, { "info": { "name": "Delete a Cart Item", "type": "http" }, "http": { "method": "DELETE", "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items/:cartitemID", "params": [ { "name": "cartID", "value": "", "type": "path", "description": "The unique identifier of the cart created by you." }, { "name": "cartitemID", "value": "", "type": "path", "description": "The unique identifier of the cart that you want to delete." } ] }, "docs": "Use this endpoint to delete a cart item." }, { "info": { "name": "Delete a Promotion via Promotion Code", "type": "http" }, "http": { "method": "DELETE", "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/discounts/:promoCode", "params": [ { "name": "cartID", "value": "", "type": "path", "description": "Specifies the unique identifier of a cart created by you." }, { "name": "promoCode", "value": "", "type": "path", "description": "Specifies the promotion code to be deleted." } ] }, "docs": "You can remove promotion code from a cart if it was applied manually. This endpoint does not work if the promotion is applied automatically." } ] } ], "bundled": true }