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

# hsaPaymentLinks

> The store's HSA/FSA payment links, newest first. A store without a Shopify store has none. Cursors are positional, so a link can shift if links are created or deleted while you page. Each read first records payments made on the payments provider's own page, as the merchant app does. A store with HSA/FSA payments off fails with PAYMENTS_NOT_ENABLED (403).

**Required scopes:** [`payments_read`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-payments_read)

**Store must have one of:** `HSA`

## Arguments

**after** `String`

Return links after this cursor.

**before** `String`

Return links before this cursor.

**first** `Int`

Page size.

**last** `Int`

Page size, paging backward.

## Returns

**hsaPaymentLinks** `[HsaPaymentLinkConnection!](/docs/api-reference/v3/pagination)` *required*

A paginated list of HsaPaymentLink items.

**fields**

**edges** `[\[HsaPaymentLinkEdge!\]!](/docs/api-reference/v3/pagination)` *required*

The list of edges (each a node plus its pagination `cursor`).

**fields**

**cursor** `String!` *required*

Opaque cursor for this item; pass to `after`/`before` to page from here.

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

The item at this edge.

**fields**

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

When the link was created.

**customerEmail** `String`

The email of the customer a single-use link is for. Null when none is set.

**customerName** `String`

The customer a single-use link is for; prefills their checkout. Null when none is set.

**deleteBlockedReason** `[HsaPaymentLinkDeleteBlockedReason](/docs/api-reference/v3/reference/payments/hsa-payment-link-delete-blocked-reason)`

Why `hsaPaymentLinkDelete` would refuse this link. Null when it can be deleted.

**discountAmount** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

Taken off the items before tax. Zero for none.

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

When the link stops taking payments. Null for never.

**failureUrl** `String`

Where a shopper goes when the payment fails. Null to stay on the link.

**id** `ID!` *required*

The link's id.

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

The items, in order. At most 50.

**maxPayments** `Int`

The most payments a reusable link takes. Null for no limit, and always null on a single-use link.

**name** `String!` *required*

The link's label: its first item's name, and how many more ("Knee brace and 2 more").

**paidAmount** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

What those payments charged in total.

**paidCount** `Int!` *required*

How many payments the link took.

**quantityEditable** `Boolean!` *required*

Whether the shopper can change quantities.

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

Whether the link takes payments.

**successUrl** `String`

Where a shopper goes after paying. Null for Redo's confirmation page.

**url** `String!` *required*

The page a shopper opens to pay. Share it as given.

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

How many payments the link takes.

**nodes** `[\[HsaPaymentLink!\]!](/docs/api-reference/v3/reference/payments/hsa-payment-link)` *required*

The nodes in this page, without the edge/cursor wrapper — a convenience over `edges`.

**fields**

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

When the link was created.

**customerEmail** `String`

The email of the customer a single-use link is for. Null when none is set.

**customerName** `String`

The customer a single-use link is for; prefills their checkout. Null when none is set.

**deleteBlockedReason** `[HsaPaymentLinkDeleteBlockedReason](/docs/api-reference/v3/reference/payments/hsa-payment-link-delete-blocked-reason)`

Why `hsaPaymentLinkDelete` would refuse this link. Null when it can be deleted.

**discountAmount** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

Taken off the items before tax. Zero for none.

**fields**

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

The exact amount as a 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. Null for never.

**failureUrl** `String`

Where a shopper goes when the payment fails. Null to stay on the link.

**id** `ID!` *required*

The link's id.

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

The items, in order. At most 50.

**fields**

**name** `String!` *required*

The product's name when the line was saved, kept after the product leaves the catalog.

**product** `[Product](/docs/api-reference/v3/reference/catalog/product)`

The catalog product. Null once the product left the catalog, which closes the link, or when the key lacks `products_read`.

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

Units.

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

The price of one unit on this link.

**maxPayments** `Int`

The most payments a reusable link takes. Null for no limit, and always null on a single-use link.

**name** `String!` *required*

The link's label: its first item's name, and how many more ("Knee brace and 2 more").

**paidAmount** `[Money!](/docs/api-reference/v3/reference/common/money)` *required*

What those payments charged in total.

**fields**

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

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

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

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

**paidCount** `Int!` *required*

How many payments the link took.

**quantityEditable** `Boolean!` *required*

Whether the shopper can change quantities.

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

Whether the link takes payments.

**successUrl** `String`

Where a shopper goes after paying. Null for Redo's confirmation page.

**url** `String!` *required*

The page a shopper opens to pay. Share it as given.

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

How many payments the link takes.

**pageInfo** `[PageInfo!](/docs/api-reference/v3/pagination)` *required*

Pagination metadata for the current page.

**fields**

**endCursor** `String`

Cursor of the last edge in this page; pass to `after` to page forward.

**hasNextPage** `Boolean!` *required*

Whether more items exist after this page (drives forward pagination with `first`/`after`).

**hasPreviousPage** `Boolean!` *required*

Whether more items exist before this page (drives backward pagination with `last`/`before`).

**startCursor** `String`

Cursor of the first edge in this page; pass to `before` to page backward.

## Example

```graphql theme={null}
query {
  hsaPaymentLinks(after: "...", before: "...", first: 10, last: 10) {
    nodes {
      createdAt
      customerEmail
      customerName
      deleteBlockedReason
      expiresAt
      failureUrl
      id
      maxPayments
      # ...
    }
    pageInfo { hasNextPage endCursor }
  }
}
```


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