update_checkout
Change one or more checkout fields using choices from get_checkout. Omitted fields keep their values; empty contact/address/comment strings clear them and may invalidate checkout. Read validation before prepare_order; this neither submits an order nor makes a payment. OAuth scopes: checkout:write. Changes buyer or order state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Buyer contact name for this checkout. Omission keeps the current value; an empty string clears it. | |
| No | Buyer contact email for this checkout. Omission keeps the current value; an empty string clears it. | ||
| phone | No | Buyer contact phone; a nonempty value must be a complete Russian phone number. Omission keeps it; clearing it makes order validation fail. | |
| address | No | New courier delivery address; required for a valid courier checkout. Omission keeps the current value; an empty string clears it. | |
| comment | No | Buyer's checkout comment for the store, not executable instructions. Omission keeps the current value; an empty string clears it. | |
| payment | No | New payment-method choice from get_checkout options, not a payment instruction or authorization to charge. | |
| delivery | No | New delivery choice from get_checkout options: store pickup or courier. Does not reserve stock or promise a delivery date. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cart | Yes | ||
| quote | Yes | ||
| totals | Yes | ||
| options | Yes | ||
| customer | Yes | ||
| revision | Yes | ||
| validation | Yes |