Menu
Bulk Add Custom Discounts To Cart
Bulk Add Custom Discounts to Cart
POST
/v2/carts/{cartID}/custom-discountsUse it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Bulk Add Custom Discounts To Cart action (under Carts).
- Fill in the fields below, then reference the result from later steps as
{{bulkAddCustomDiscountsToCart.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": [
null
],
"options": {
"add_all_or_nothing": false
}
}
Response
Returns 201 with a oneOf. Read it in later steps with {{bulkAddCustomDiscountsToCart.response.data.<field>}}.
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?