---
title: "Update Checkout Deposit Form - Liquid Form Reference"
source: https://support.storeconnect.com/articles/update-checkout-deposit-form-reference
type: article
format: markdown
site: StoreConnect Support — product and developer documentation for StoreConnect
site_index: https://storeconnect.com/llms.txt
docs_index: https://support.storeconnect.com/llms.txt
note: Append .md to any page or article URL on this site to get its Markdown form.
---
# Update Checkout Deposit Form - Liquid Form Reference

## Usage


```liquid

{%- if current_cart.can_offer_checkout_deposit? %}
  {% form "update-checkout-deposit", remote: true, data-success: "sc.deposit-updated", data-type: "json" %}
    {%- assign field = form.fields["checkout_deposit_amount"] %}
    <label for="{{ field.id }}">Amount to pay now</label>
    <input
      type="text"
      inputmode="decimal"
      name="{{ field.name }}"
      id="{{ field.id }}"
      value="{{ current_cart.checkout_deposit_amount }}"
      placeholder="{{ current_cart.checkout_full_total | money }}">
    {%- if current_cart.checkout_minimum_deposit_amount > 0 %}
      <p>Minimum {{ current_cart.checkout_minimum_deposit_amount | money }}</p>
    {%- endif %}
    <button type="submit">Update</button>
  {% endform %}
{%- endif %}
```


The `update-checkout-deposit` form sets the amount the customer pays now when the [checkout deposit](checkout-deposit) is turned on. The rest of the order total is left owing.

| Property | Value |
|----------|-------|
| **Form Name** | `update-checkout-deposit` |
| **Category** | Checkout |

## Fields

| Field | Description |
|-------|-------------|
| `checkout_deposit_amount` | The amount to pay now. Leave it blank, or submit `0` or less, to clear the deposit so the customer pays the full total. |

Any tag option is passed through as an HTML attribute on the `<form>` element.

## How the amount is applied

- StoreConnect adjusts an amount that is out of range rather than rejecting it. An amount above the full total becomes the full total. An amount below what must be paid in full (digital products, vouchers, and subscriptions that cannot be deferred) becomes that amount.
- The suggested minimum from the `checkout.deposit.minimum_percentage` store variable is not enforced by the form. Show it to the customer from `current_cart.checkout_minimum_deposit_amount`, and validate it in the browser if you need to.
- The submission fails when the checkout deposit does not apply to the cart: the feature is off, nothing needs a currency payment, or an item has a per-product deposit. Render the form only when `current_cart.can_offer_checkout_deposit?` is true.

## Response

The form submits to the cart and responds with JSON rather than a redirect. Submit it with `remote: true` and `data-type: "json"`. A successful response carries the updated `checkout_deposit_amount`, `checkout_full_total`, `amount_due_now`, and `total_payable`, which you can use to update the payment total on the page. A failed response carries an `error` message.

## Form Object

Inside the form block, you can access the `form` object which provides:

- `form.errors` — Any validation errors after submission
- `form.fields["checkout_deposit_amount"]` — The field's `name`, `id`, and `value`

---

## Follow StoreConnect

- [Email Newsletter](https://storeconnect.com/c/lp-newsletter)
- [LinkedIn Newsletter](https://www.linkedin.com/build-relation/newsletter-follow?entityUrn=7444956928444862464)
- [YouTube](https://www.youtube.com/channel/UCngKdP2x8l1wcbAKW3tvU8g)
- [LinkedIn](https://www.linkedin.com/company/storeconnect)
- [X / Twitter](https://x.com/storeconnecthq)

## Popular Links

- [Partners](https://storeconnect.com/partners)
- [Become a Partner](https://storeconnect.com/become-a-partner)
- [News](https://storeconnect.com/articles/news)
- [Events](https://storeconnect.com/articles/events)
- [Feature Comparison](https://storeconnect.com/how-we-compare)
- [Download a free trial](https://appexchange.salesforce.com/appxListingDetail?listingId=a0N3A00000FMkeKUAT)
- [Book a Demo](https://storeconnect.com/contact)

## Documentation

- [Help documentation](https://support.storeconnect.com/help-documentation)
- [AI agents](https://support.storeconnect.com/ai)
- [Videos & tutorials](https://support.storeconnect.com/videos-tutorials)
- [Developer reference](https://support.storeconnect.com/developer-reference)
- [Release notes](https://support.storeconnect.com/release-notes)
- [Troubleshooting](https://support.storeconnect.com/troubleshooting)
- [Trust Center](https://trust.getstoreconnect.com/)
- [Status Page](https://status.storeconnect.com/)

## Contact

- info@getstoreconnect.com
- US +1 415 745 3230
- AUS +61 2 8365 2308

100 S Ashley Dr, Suite 600-2461
Tampa FL 33602-600 USA

Level 22, Sydney Place
180 George Street
Sydney, NSW, 2000, AUS

## Machine-readable

- [Site index for agents](https://storeconnect.com/llms.txt): curated map of the StoreConnect site in llms.txt format
- [Documentation index for agents](https://support.storeconnect.com/llms.txt): full technical and product documentation map

Every page and article on this site has a Markdown rendering: append `.md` to its URL.

Continue in Markdown: [Help documentation](https://support.storeconnect.com/help-documentation.md) · [Developer reference](https://support.storeconnect.com/developer-reference.md) · [Videos & tutorials](https://support.storeconnect.com/videos-tutorials.md) · [Release notes](https://support.storeconnect.com/release-notes.md)

---

StoreConnect Support — https://support.storeconnect.com/articles/update-checkout-deposit-form-reference