> ## 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.

# HsaPaymentLinkCreateInput

> A payment link to create.

**customerEmail** `String`

Single-use links only: the customer's email. Left out for none; ignored on a reusable link.

**customerName** `String`

Single-use links only: the customer the link is for, which prefills their checkout. Left out for none; ignored on a reusable link.

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

Taken off the items before tax, in USD. Left out for none. The items less the discount must be at least \$2.00.

**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, a single-use link expires 15 days after it's created and a reusable one never does; null for never.

**failureUrl** `String`

An https URL a shopper goes to when the payment fails. Left out to stay on the link.

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

The items, from 1 to 50.

**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 for no limit. A single-use link takes none.

**quantityEditable** `Boolean`

Whether the shopper can change quantities. Left out, false on a single-use link and true on a reusable one.

**successUrl** `String`

An https URL a shopper goes to after paying. Left out for Redo's confirmation page.

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

How many payments the link takes.


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