update_ucp_checkout
Change a UCP checkout session that is still open: pass checkout_id and at least one of line_items, buyer, context, payment, signals, fulfillment and discounts. A completed or canceled session answers 422. Needs a Last Price credential with price compute scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buyer | No | Who is buying. | |
| context | No | Where the checkout happens: locale, country, channel and the like. | |
| payment | No | The payment handler and currency. | |
| signals | No | Where the buyer came from: referrer, utm values and device type. | |
| discounts | No | Discount codes to apply. | |
| line_items | No | What is being bought. | |
| checkout_id | Yes | The checkout session: its id, as create_ucp_checkout and list_ucp_checkouts show it. | |
| fulfillment | No | How the order is fulfilled: its methods. |