Products and prices are core resources for a Flex integration. Products define what your business offers, whether that’s goods or services. Prices define how much and how often to charge for products. Flex revolves around what you are selling and determining the checkout experience based off of the products eligibility.Documentation Index
Fetch the complete documentation index at: https://docs.withflex.com/llms.txt
Use this file to discover all available pages before exploring further.
What is a product?
Products describe the specific goods or services you offer to your customers.- If you’re an e-commerce store selling orthopedic goods, one of your products might be an orthopedic shoe. In Flex, you can create a separate product for each size and color combination.
- If you’re a Service app, you might have a subscription with basic and premium pricing tiers. In this case, both basic and premium are separate products because they typically offer unique attributes or features.
not_eligible.
When you create a product in Flex, you have to provide a name. You can optionally add other attributes to a product to determine it’s eligibility.
HSA/FSA eligibility for a product
A product can fall under one of the following eligibility types:- Not Eligible - The product is not HSA/FSA eligible.
- Auto Substantiation - The product is HSA/FSA eligible because it is on the Flex Eligible Catalogue.
- Private Label - The product is HSA/FSA eligible because it has been added to Flex’s Private Label List. To qualify, a product must have substantially the same active ingredient, form, and function as a national brand–equivalent item included in the Flex Eligible Catalogue.
- Vision - The product is HSA/FSA eligible because it is a prescription for vision.
- Prescription - The product is HSA/FSA eligible because it s a prescription.
- Letter of Medical Necessity - The product may be eligible through a letter of medical necessity.
What is a price?
Price objects are the numerical amount to pay. You don’t need to create new prices for each purchase–if you’re selling a product for one price, you only need to create one price. Prices can either be one-time or recurring. Subscriptions use recurring prices to charge the customer at an interval, such as “once a month.” If you sell the same service at several different subscription intervals, it’s best to create multiple recurring prices for the same product. Because a product can have multiple prices associated with it, you’ll need to specify which price to use when creating Checkout Sessions or Payment Links.Working with products and prices
Create a product
To create a product you can do so using the Product API or via the partner dashboard. If your product is already on the eligible product list provide a GTIN as part of the payload along withauto_substantiation as the hsa_fsa_eligibility type requested.
If you’ve worked with the Flex team to determine your product may be eligible via a Letter of Medical Necessity, specify the visit_type that was provided to you along with letter_of_medical_necessity as the hsa_fsa_eligibility type requested.
If you’ve worked with the Flex team to determine your product is eligible on the private label list, specify the reference_gtin that was provided to you along with private_label as the hsa_fsa_eligibility type requested.
if your product is a vision prescription or prescription product, please specify the corresponding hsa_fsa_eligibility type.