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

# HsaCheckoutCreateInput

> An order to take an HSA/FSA payment for. Every amount is in one currency. An invalid input fails with INVALID_HSA_CHECKOUT (400).

**billingAddress** `[HsaCheckoutAddressInput](/docs/api-reference/v3/reference/payments/hsa-checkout-address-input)`

The shopper's billing address. Left out, it is the shipping address.

**fields**

**city** `String!` *required*

City.

**countryCode** `[CountryCode!](/docs/api-reference/v3/reference/common/country-code)` *required*

Country.

**line1** `String!` *required*

Street address.

**line2** `String`

Apartment, suite or unit. Left out or blank for none.

**postalCode** `String!` *required*

Postal code.

**province** `String!` *required*

State or province code (e.g. "CA").

**customer** `[HsaCheckoutCustomerInput!](/docs/api-reference/v3/reference/payments/hsa-checkout-customer-input)` *required*

The shopper.

**fields**

**email** `String!` *required*

Email address.

**firstName** `String!` *required*

First name.

**lastName** `String!` *required*

Last name.

**phone** `String!` *required*

Phone number.

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

Taken off the lines' total. Zero for none.

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

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

The order's lines. At least one.

**fields**

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

The name the shopper sees.

**productId** `String!` *required*

The store's id for the product, the one its HSA/FSA eligibility was decided for.

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

At least 1.

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

The price of one unit, before the order's 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).

**reference** `String!` *required*

The store's order reference, at most 50 characters. A checkout stays tied to its reference: a create with a known reference and the same details returns the saved checkout and changes nothing; with other details it fails with HSA\_CHECKOUT\_REFERENCE\_CONFLICT (409). Once that checkout is closed without payment (expired or voided), a create for its reference fails with HSA\_CHECKOUT\_CLOSED (409); send a new reference, for example the order number with a suffix.

**returnUrl** `String!` *required*

An https URL on the store for a shopper who leaves without paying.

**shippingAddress** `[HsaCheckoutAddressInput!](/docs/api-reference/v3/reference/payments/hsa-checkout-address-input)` *required*

Where the order ships.

**fields**

**city** `String!` *required*

City.

**countryCode** `[CountryCode!](/docs/api-reference/v3/reference/common/country-code)` *required*

Country.

**line1** `String!` *required*

Street address.

**line2** `String`

Apartment, suite or unit. Left out or blank for none.

**postalCode** `String!` *required*

Postal code.

**province** `String!` *required*

State or province code (e.g. "CA").

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

Shipping charged on the order.

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

**successUrl** `String!` *required*

An https URL on the store for a shopper who paid.

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

Tax charged on the order.

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


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