{
  "opencollection": "1.0.0",
  "info": {
    "name": "Addresses Introduction Account Addresses Custom Discounts API",
    "version": "25.1126.6886238"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Custom Discounts",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Bulk Add Custom Discounts to Cart",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/custom-discounts",
            "params": [
              {
                "name": "cartID",
                "value": "",
                "type": "path",
                "description": "Specifies the system generated ID for the cart that the shopper created."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "The default value for custom discounts on both the cart and cart items is set to 5 if this parameter is not configured in the store. To verify the custom discount limit value, call [Get all settings](/docs/api/settings/get-v-2-settings) endpoint.\n\nTo increase the custom discount value, contact [Elastic Path Support team](https://support.elasticpath.com/hc/en-us).\n"
        },
        {
          "info": {
            "name": "Bulk Delete Custom Discounts From Cart",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/custom-discounts",
            "params": [
              {
                "name": "cartID",
                "value": "",
                "type": "path",
                "description": "Specifies the unique ID for the cart."
              }
            ]
          },
          "docs": "Use this endpoint to bulk delete custom discounts from cart."
        },
        {
          "info": {
            "name": "Update Custom Discount For Cart",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/custom-discounts/:customdiscountID",
            "params": [
              {
                "name": "cartID",
                "value": "",
                "type": "path",
                "description": "Specifies the unique ID for the cart."
              },
              {
                "name": "customdiscountID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the custom discount to be updated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Use this endpoint to update a custom discount in your cart."
        },
        {
          "info": {
            "name": "Delete Custom Discount From Cart",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/custom-discounts/:customdiscountID",
            "params": [
              {
                "name": "cartID",
                "value": "",
                "type": "path",
                "description": "Specifies the unique ID for the cart."
              },
              {
                "name": "customdiscountID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the custom discount to be deleted."
              }
            ]
          },
          "docs": "Use this endpoint to delete custom discount from cart."
        },
        {
          "info": {
            "name": "Add Custom Discount To Cart Item",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items/:cartitemID/custom-discounts",
            "params": [
              {
                "name": "cartID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the cart."
              },
              {
                "name": "cartitemID",
                "value": "",
                "type": "path",
                "description": "Specifies the unique identifier for the cart item."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Use this endpoint to add a custom discount to cart item."
        },
        {
          "info": {
            "name": "Update Custom Discount For Cart Item",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items/:cartitemID/custom-discounts/:customdiscountID",
            "params": [
              {
                "name": "cartID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the cart."
              },
              {
                "name": "cartitemID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the cart item."
              },
              {
                "name": "customdiscountID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the custom discount to be updated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Use this endpoint to update a custom discount in your cart item."
        },
        {
          "info": {
            "name": "Delete Custom Discount From Cart Item",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://useast.api.elasticpath.com/v2/carts/:cartID/items/:cartitemID/custom-discounts/:customdiscountID",
            "params": [
              {
                "name": "cartID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the cart."
              },
              {
                "name": "cartitemID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the cart item."
              },
              {
                "name": "customdiscountID",
                "value": "",
                "type": "path",
                "description": "Specifies the ID for the custom discount to be deleted."
              }
            ]
          },
          "docs": "Use this endpoint to delete custom discount from cart item."
        }
      ]
    }
  ],
  "bundled": true
}