> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# HsaPaymentLinkUpdateInput

> The payment link fields to change. Fields left out keep their values.

**customerEmail** `String`

Single-use links only: the customer's email. Left out keeps it; null clears it.

**customerName** `String`

Single-use links only: the customer the link is for. Left out keeps it; null clears it.

**discountAmount** `[MoneyInput](/docs/api-reference/v3/reference/common/money-input)`

Taken off the items before tax, in USD. Left out keeps it. A link that took a payment keeps its discount.

**fields**

**amount** `[Decimal!](/docs/api-reference/v3/reference/common/decimal)` *required*

The amount as an exact decimal string (e.g. "19.99").

**currency** `String!` *required*

ISO 4217 currency code (e.g. USD).

**expiresAt** `[DateTime](/docs/api-reference/v3/reference/common/date-time)`

When the link stops taking payments. Left out keeps it; null clears it, so the link never expires.

**failureUrl** `String`

An https URL a shopper goes to when the payment fails. Left out keeps it; null clears it.

**lines** `[\[HsaPaymentLinkLineInput!\]](/docs/api-reference/v3/reference/payments/hsa-payment-link-line-input)`

Replaces every item, from 1 to 50. Left out keeps every saved item as it is, including one whose product left the catalog. A link that took a payment keeps its items and prices.

**fields**

**productId** `ID!` *required*

A `Product` id from `products`: a live Shopify variant priced in USD that HSA/FSA payments know.

**quantity** `Int!` *required*

From 1 to 999.

**unitPrice** `[MoneyInput!](/docs/api-reference/v3/reference/common/money-input)` *required*

The price of one unit on this link, in USD. It need not match the catalog price.

**fields**

**amount** `[Decimal!](/docs/api-reference/v3/reference/common/decimal)` *required*

The amount as an exact decimal string (e.g. "19.99").

**currency** `String!` *required*

ISO 4217 currency code (e.g. USD).

**maxPayments** `Int`

Reusable links only: the most payments it takes. Left out keeps it; null clears it, for no limit.

**quantityEditable** `Boolean`

Whether the shopper can change quantities. Left out keeps it.

**successUrl** `String`

An https URL a shopper goes to after paying. Left out keeps it; null clears it.

**usage** `[HsaPaymentLinkUsage](/docs/api-reference/v3/reference/payments/hsa-payment-link-usage)`

How many payments the link takes. Left out keeps it. A link that took a payment keeps its usage.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.