put
https://api.talkdeskapp.com/erc/ecommerce/cart/items
Synchronize (replace) the line items in a cart.
This endpoint creates a new cart or updates an existing one by replacing all current
line items with the provided items.
Cart resolution logic:
- If
cart_idis provided in the body, the cart with that ID is updated directly. - If
customer_idis provided (withoutcart_id), the system looks for an existing
active cart for that customer. If found, it replaces the lines; otherwise, a new cart is created. - If neither
cart_idnorcustomer_idis provided, a new cart is created.
Required fields:
- interaction_id (the current interaction/conversation ID)
- cart_lines (at least one item)
A successful request returns the cart with the updated line items.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…