younifyd
Menu

Add Custom Discount To Cart Item

Add Custom Discount To Cart Item

POST/v2/carts/{cartID}/items/{cartitemID}/custom-discounts

Use it in a workflow

  1. Add a step and choose the Elastic Path connector.
  2. Pick the Add Custom Discount To Cart Item action (under Carts).
  3. Fill in the fields below, then reference the result from later steps as {{addCustomDiscountToCartItem.response.data}}.

Request

Path parameters

cartIDstringrequired

Specifies the ID for the cart.

cartitemIDstringrequired

Specifies the unique identifier for the cart item.

Response

Returns 201 with a oneOf. Read it in later steps with {{addCustomDiscountToCartItem.response.data.<field>}}.

Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.

Add Custom Discount To Cart Item — Elastic Path — Documentation