Sign in

Update checkout

documented

Updates the checkout state (address, shipping, etc.).

PATCH /api/v2/storefront/checkoutCheckoutno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://demo.spreecommerce.org/api/v2/storefront/checkout" \
  -X PATCH \
  -H "Content-Type: application/vnd.api+json" \
  -H "Accept: application/vnd.api+json" \
  -H "X-Spree-Order-Token: {{SPREECOMMERCE_API_KEY}}" \
  -d '{"order": {"email": "{{$email}}", "bill_address_attributes": {"firstname": "{{$bill_firstname}}", "lastname": "{{$bill_lastname}}", "address1": "{{$bill_address1}}", "city": "{{$bill_city}}", "phone": "{{$bill_phone}}", "zipcode": "{{$bill_zipcode}}", "state_name": "{{$bill_state_name}}", "country_iso": "{{$bill_country_iso}}"}, "ship_address_attributes": {"firstname": "{{$ship_firstname}}", "lastname": "{{$ship_lastname}}", "address1": "{{$ship_address1}}", "city": "{{$ship_city}}", "phone": "{{$ship_phone}}", "zipcode": "{{$ship_zipcode}}", "state_name": "{{$ship_state_name}}", "country_iso": "{{$ship_country_iso}}"}}}'
Update checkout · Spree Commerce · OpenIntegrations