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

# hsaPaymentLink

> Get one HSA/FSA payment link. An id from another store, or one that does not exist, is null. 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

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

The link's `id`.

## Returns

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

A link the store sends a shopper to pay for set items with an HSA/FSA card, as the merchant app's payment links show it.

**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`.

**fields**

**attribute** `[Attribute](/docs/api-reference/v3/reference/catalog/attribute)`

Look up a single attribute on this product by its name, if set.

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

**fields**

**Arguments**

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

The machine name of the attribute to look up.

**attributes** `[\[Attribute!\]!](/docs/api-reference/v3/reference/catalog/attribute)` *required*

The merchant-defined attributes set on this product.

**barcodes** `[String!]!` *required*

Barcodes associated with this product.

**cost** `[Money](/docs/api-reference/v3/reference/common/money)`

The merchant's unit cost for the product.

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

When the record was created.

**customsDescription** `String`

The plain description of the product that customs officers read, up to 45 characters. Null until one is saved.

**description** `String!` *required*

The product's long-form description.

**dimensions** `[Dimensions](/docs/api-reference/v3/reference/catalog/dimensions)`

The product's length, width, and height, expressed in a single shared unit.

**hsCode** `String`

The Harmonized System code used for customs.

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

The id of this product.

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

The first (default) image for this product, if any.

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

**images** `[ProductImageConnection!](/docs/api-reference/v3/pagination)` *required*

A paginated list of the product's images.

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

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**importRestrictions** `[ProductImportRestrictionConnection!](/docs/api-reference/v3/pagination)` *required*

The import restrictions the product trips, one per destination country and rule. Only countries of enabled markets with restriction screening on are screened, and a restriction drops off 21 days after screening last found it.

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

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns import restrictions after it.

**before** `String`

Backward pagination cursor — returns import restrictions before it.

**first** `Int`

Forward pagination: returns the first N import restrictions (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N import restrictions (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**inventoryItems** `[InventoryItemConnection!](/docs/api-reference/v3/pagination)` *required*

Traceable inventory units for this product.

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

**fields**

**Arguments**

**after** `String`

**before** `String`

**first** `Int`

**last** `Int`

**inventoryLevel** `[LocationInventoryLevel](/docs/api-reference/v3/reference/inventory/location-inventory-level)`

This product's inventory level at a single location, if any.

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

**fields**

**Arguments**

**locationId** `ID!` *required*

The id of the location to fetch the level at.

**inventoryLevels** `[LocationInventoryLevelConnection!](/docs/api-reference/v3/pagination)` *required*

Per-location inventory levels for this product.

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

**fields**

**Arguments**

**after** `String`

Forward pagination cursor — returns items after it. Pass an `edges[].cursor` or `pageInfo.endCursor` from a previous page.

**before** `String`

Backward pagination cursor — returns items before it. Pass an `edges[].cursor` or `pageInfo.startCursor` from a previous page.

**first** `Int`

Forward pagination: returns the first N items (max 100, default 25). Use with `after`; mutually exclusive with `last`/`before`.

**last** `Int`

Backward pagination: returns the last N items (max 100, default 25). Use with `before`; mutually exclusive with `first`/`after`.

**manufacturer** `[Manufacturer](/docs/api-reference/v3/reference/catalog/manufacturer)`

The company that makes the product, as declared on customs paperwork.

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

**marketPublishing** `[\[ProductMarketPublishing!\]](/docs/api-reference/v3/reference/markets/product-market-publishing)`

Publishing per destination country where the product trips an import restriction, or has a publish override. Only countries of enabled markets with restriction screening on are screened. Null when publishing can't be read.

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

**materialDescription** `String`

What the product is made of, e.g. 100% cotton.

**options** `[\[ProductOptionValue!\]!](/docs/api-reference/v3/reference/catalog/product-option-value)` *required*

The variant's selected option values (e.g. Size: M, Color: Red), ordered by the family's option positions.

**originCountry** `String`

The country of origin, as a country code.

**physicalItem** `Boolean!` *required*

Whether the product is a physical, shippable item.

**price** `[Money](/docs/api-reference/v3/reference/common/money)`

The product's selling price.

**productFamily** `[ProductFamily](/docs/api-reference/v3/reference/catalog/product-family)`

The product family this product belongs to, if any.

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

**sku** `String`

The stock keeping unit identifying this product.

**tags** `[String!]!` *required*

Free-form tags applied to the product.

**taxCode** `String`

The tax code used to classify the product for taxation.

**taxable** `Boolean!` *required*

Whether the product is subject to tax.

**title** `String!` *required*

The product's title.

**upc** `String`

The Universal Product Code for this product.

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

When the record was last updated.

**vendor** `String`

The vendor or manufacturer of the product.

**weight** `[Weight](/docs/api-reference/v3/reference/catalog/weight)`

The product's weight.

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

Units.

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

The price of one unit on this link.

**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).

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

## Example

```graphql theme={null}
query {
  hsaPaymentLink(id: "...") {
    createdAt
    customerEmail
    customerName
    deleteBlockedReason
    expiresAt
    failureUrl
    id
    maxPayments
    # ...
  }
}
```


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