Prepare an Alza mutation
prepare_mutationGenerate a single-use confirmation token for a specific Alza action, required before performing sensitive mutations like placing orders or updating addresses.
Instructions
Start a two-step mutation by returning a one-time confirmation token bound to exactly one action. This call itself sends nothing to Alza. Use it before the high-impact typed mutations — register (action register), address_upsert (address_create or address_edit), address_delete (address_delete), pay_after_order (after_order_payment), web_place_order (web_place_order), web_pay_after_order (web_after_order_payment), review_submit (review_submit), subscription_activate (subscription_activate), subscription_update_installment (subscription_update_installment), upload_attachment (attachment_upload) — and before any low-risk mutate_list action (create, rename, delete, add, remove, move, set_country, set_isic, add_gift, add_order_service, set_watchdog, send_feedback, submit_discussion, rate_discussion, coupon_add, coupon_remove, basket_update, basket_unlock). Pass the returned token as confirmation_token on the matching call; the token is single-use and only valid for the exact action you prepared. Do not use for read-only tools, and not for add_to_cart (which is a low-risk cart write that needs no token).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Which mutation you are about to perform; the token will only be accepted by that action's tool. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| confirmationToken | Yes |