issue_shipping_confirmation_token
Issue a single-use token after the user confirms shipping details and approves saving the address. Required by fulfillment_order to place an order.
Instructions
Issue a single-use token after the user confirms shipping details.
Call this only after showing the normalized contact/shipping address
and selected shipping option to the user, asking whether Kiln should
save the address as a profile, and receiving approval.
``fulfillment_order`` refuses to place an order without this token.
Args:
quote_id: Quote ID from ``fulfillment_quote``.
shipping_option_id: Shipping option ID selected from the quote.
shipping_address: Explicit full shipping address.
shipping_profile_name: Saved profile name to use instead of
passing ``shipping_address``.
save_profile_decision: Required when ``shipping_address`` is
provided directly. Pass ``"save"`` only after the user says
yes; pass ``"do_not_save"`` after the user says no.
save_profile_name: Profile name to save when
``save_profile_decision`` is ``"save"``.
overwrite_saved_profile: Replace an existing profile with the
same name when saving.
set_default_profile: Make the saved profile the default.
ttl_seconds: Token lifetime, default 10 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_id | Yes | ||
| ttl_seconds | No | ||
| shipping_address | No | ||
| save_profile_name | No | ||
| shipping_option_id | No | ||
| set_default_profile | No | ||
| save_profile_decision | No | ||
| shipping_profile_name | No | ||
| overwrite_saved_profile | No |