Prepare Account Cart Change
prepare_account_cart_changeBuilds an approval-gated, five-minute cart change plan for adding, updating, or removing Digikala items, validating required IDs and caps before host execution; does not mutate remotely.
Instructions
Trusted backend: prepare a five-minute token-account cart plan; no remote mutation.
add needs product_id + offer_id; update needs cart_item_id + final quantity; remove needs cart_item_id. Host must present and approve the exact plan before execution. Amount/unit caps apply. Token stays private to the host; never falls back to keyring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| change | Yes | ||
| session_token | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offer | Yes | ||
| title | Yes | ||
| action | Yes | ||
| limits | Yes | ||
| plan_id | Yes | ||
| expires_at | Yes | ||
| product_id | Yes | ||
| cart_item_id | No | ||
| projected_items | Yes | ||
| target_quantity | Yes | ||
| previous_quantity | Yes | ||
| projected_total_rial | Yes |