calculateCartImpact
Calculate the total environmental impact of a shopping cart in real-time.| Field | Type | Required | Description |
|---|---|---|---|
sessionId | String! | Yes | E-commerce session/cart ID |
items | [CartItemInput!]! | Yes | Cart line items |
shippingMethod | TransportMethod | No | Delivery method |
shippingAddress | AddressInput | No | Delivery address |
CartItemInput
| Field | Type | Required | Description |
|---|---|---|---|
productId | ID! | Yes | Product identifier |
quantity | Int! | Yes | Quantity |
updateCartItem
Update a single item in the cart and get the recalculated impact.removeCartItem
Remove an item from the cart.E-commerce integration
For Shopify stores, use the cart token as thesessionId: