/v1/checkout/sessions/{session}Update a Checkout Session
Updates an existing Checkout Session with customer information, line items, metadata, shipping options, or expanded response fields. When changing line_items, retransmit the entire array and include existing item IDs for items you want to retain. Use this operation for dynamic Checkout Session updates before the customer completes the session.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Optional Checkout Session update fields for collected information, line items, metadata, shipping options, and response expansion.
session must identify the Checkout Session to update. When supplied, collected_information.shipping_details must include address and name, each line item must use the supported line-item fields, and shipping_options can contain no more than 5 items. metadata must contain string key-value pairs or an empty value to unset metadata.