Check if a product is HSA/FSA eligible before creating it
| Parameter | Type | Required | Description |
|---|---|---|---|
upc_code_or_gtin | string | No* | UPC or GTIN barcode |
product_name | string | No* | Product name |
upc_code_or_gtin or product_name must be provided. UPC is more accurate.
| Field | Type | Description |
|---|---|---|
hsa_fsa_eligible | boolean | Whether product is HSA/FSA eligible |
message | string | Explanation of eligibility status |
checked_at | timestamp | When eligibility was checked |
| Status Code | Error Code | Description |
|---|---|---|
| 400 | invalid_request | Missing both UPC and product name |
| 401 | unauthorized | Invalid or missing API key |
| 422 | validation_error | Invalid UPC format |
| 429 | rate_limit_exceeded | Too many requests |