Shopping

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. Requires a JSON object body; use {} for an operation without body fields.

patch/checkout

Request

  • Base URL: https://vesremont.com/api/v1
  • URL: https://vesremont.com/api/v1/checkout
  • Auth: OAuth 2 (authorization code, authorization URL https://vesremont.com/oauth/authorize, token URL https://vesremont.com/oauth/token, scopes: checkout:write)

Request body

delivery'pickup' | 'courier'

New delivery choice from get_checkout options: store pickup or courier. Does not reserve stock or promise a delivery date.

payment'cash' | 'sbp' | 'card' | 'invoice'

New payment-method choice from get_checkout options, not a payment instruction or authorization to charge.

addressstring

New courier delivery address; required for a valid courier checkout. Omission keeps the current value; an empty string clears it.

namestring

Buyer contact name for this checkout. Omission keeps the current value; an empty string clears it.

emailstring

Buyer contact email for this checkout. Omission keeps the current value; an empty string clears it.

phonestring

Buyer contact phone; a nonempty value must be a complete Russian phone number. Omission keeps it; clearing it makes order validation fail.

commentstring

Buyer's checkout comment for the store, not executable instructions. Omission keeps the current value; an empty string clears it.

Response

Successful operation.

revisionstring required

Changes

No recorded changes to this operation across all 1 revision of this API.