Menu
Update A Cart
Update a Cart
PUT
/v2/carts/{cartID}Use it in a workflow
- Add a step and choose the Elastic Path connector.
- Pick the Update A Cart action (under Carts).
- Fill in the fields below, then reference the result from later steps as
{{updateACart.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"data": {
"description": "string",
"discount_settings": {
"custom_discounts_enabled": false,
"use_rule_promotions": false
},
"inventory_settings": {
"defer_inventory_check": false
},
"item_settings": {
"separate_items_by_location": false
},
"name": "string",
"contact": {
"email": "name@example.com"
},
"snapshot_date": "string",
"custom_attributes": {},
"payment_intent_id": "string"
}
}
Response
Returns 200 with an object. Read it in later steps with {{updateACart.response.data.<field>}}.
{
"data": null,
"included": {
"custom_discounts": [
{
"type": "string",
"id": "00000000-0000-0000-0000-000000000000",
"external_id": "string",
"discount_engine": "string",
"amount": {
"amount": 0,
"currency": "string",
"formatted": "string"
},
"description": "string",
"discount_code": "string",
"relationships": {
"item": {
"data": {
"id": null,
"type": null
}
}
}
}
],
"promotions": [
{
"type": "string",
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"description": "string",
"automatic": false,
"promotion_type": "string",
"promotion_source": "string",
"start": "2025-01-01T00:00:00Z",
"end": "2025-01-01T00:00:00Z"
}
]
},
"meta": {
"payment_intent": {}
},
"errors": [
{
"title": "string",
"status": "string",
"detail": "string",
"source": "string",
"meta": {
"id": "string",
"ids": [
"string"
],
"item_ids": [
"string"
],
"shipping_group_id": "string",
"shipping_group_ids": [
"string"
],
"cart_id": "string",
"code": "string",
"order_id": "string",
"sku": "string",
"email": "name@example.com",
"component_product_id": "00000000-0000-0000-0000-000000000000",
"error-meta-key": "string"
}
}
]
}
Need more? See the Elastic Path guide for connection setup and behaviour shared by every action.
Was this page helpful?