Update Checkout Session
update_checkout_sessionUpdate a checkout session by attaching billing and shipping addresses. Provide the delivery address after creating the session to make it ready for final completion.
Instructions
Attach billing and shipping address to a checkout session.
Use this after create_checkout_session to provide the delivery address. Required before calling complete_checkout. If shipping is omitted, billing address is used for shipping too.
Args: session_id: From create_checkout_session result. billing: Billing address dict with keys: first_name, last_name, email, address_1, city, postcode, country (default 'CH'), state (optional). shipping: Shipping address dict (same keys as billing). Optional.
Returns: Updated UCP CheckoutSession with status 'ready_for_complete'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| billing | Yes | ||
| shipping | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||