Skip to main content

UAT Checklist

Run these tests in Sandbox before you go live. Each row is one test: the call to make and the result you should see. The linked guides show how to make each call.

How to use this checklist​

  1. Find your areas in What to test. Every partner tests the areas marked Every partner. The others depend on what you launch.
  2. Get what you need from Before you start.
  3. Run each test in your areas. If a result differs from the one listed here, contact [email protected].
  4. Finish with Before you go live.

Work through the checklist with your First Dollar implementation team.

What to test​

AreaWho tests it
PlatformEvery partner
Organizations and BenefitsEvery partner
Organization GroupsPartners that group Organizations under a parent company
DivisionsPartners whose Organizations have Divisions
BrandsPartners with more than one brand
IndividualsEvery partner
VerificationPartners launching HSAs
EnrollmentEvery partner
FundingPartners that fund through the API
Benefit funding methodPartners that set RMF or claims-based funding through the API
Elections and contributionsPartners that set them through the API
CardsPartners launching cards
ClaimsPartners that submit, correct or decide claims through the API
OffboardingEvery partner
Statements and tax formsPartners launching HSAs that show them in their own app
ReportingPartners that pull reports through the API
WebhooksPartners that receive events
Brokerage firmsPartners that register brokers through the API
Single sign-onPartners that send users from their own site to Health Wallet or Health Wallet Manager

Before you start​

You needForHow to get it
Sandbox API credentialsAll areasFirst Dollar issues them. See Authentication.
A Benefit Template for each benefit type you launchOrganizations and BenefitsFirst Dollar sets them up. List them with benefitTemplates.
Your brand IDs, if you have more than one brandBrandsList them with brands.
Test Individuals with a known verification resultVerification, EnrollmentIn Sandbox, the ZIP code of the Individual's address sets the result: 01234 returns VERIFIED and 01236 returns NEEDS_REVIEW.
A balance in the HSA Benefit's funding accountFunding, for HSAsAsk First Dollar to add one after you create the HSA Benefit. Until then, funding an HSA returns an error: the amount exceeds the funding account's available balance.
A Benefit that starts tomorrow or later. For FSA and LPFSA, also a Benefit that has already startedElections and contributionsThe start date is set when the Benefit is created (createBenefit).
Claims operations enabledClaimsAsk First Dollar. Deciding and correcting claims are each enabled separately. See Reimbursement claims.
A test Individual with a verified primary linked bank accountClaimsThe Individual links the account in their First Dollar account. The Partner API does not link bank accounts.
Live events enabledWebhooksAsk First Dollar. Test events work without it. See Enabling live events.
An SSO configuration for each app you sign users in toSingle sign-onFirst Dollar creates it with you. In Sandbox, the sign-on URLs start with https://api.sbx.firstdollar.com. The SSO guides show the Production URLs.

Tests​

An error result is shown by its code. Unless a test says otherwise, an error comes back inside an HTTP 200 response. See Error.

Platform​

Guides: Authentication, Environments.

TestWhat you should see
Get an access token with your Sandbox client ID and secret.A token comes back. expires_in is 3600: the token lasts one hour.
Call ping with the token.The answer is pong.
Call ping with no token.HTTP 401 with code UNAUTHENTICATED.
Send a request the API refuses, for example createBenefitsProgram for an Organization that does not exist.HTTP 200. The result is an error: code is NOT_FOUND and retryable is false. Your code reads code and retryable.

Organizations and Benefits​

Guides: Setup & Enrollment, steps 1 to 3. External IDs.

TestWhat you should see
Create an Organization with your own ID for it (createOrganization, externalId).An Organization id comes back.
Create a second Organization with the same externalId.BAD_REQUEST: the externalId already exists.
Create the Organization's Benefits Program (createBenefitsProgram).status is CREATED. Create one Benefits Program for each Organization.
Create a Benefit from a template for each benefit type you launch (createBenefit).A Benefit id comes back. The benefit query shows its type and start date.

Organization Groups​

Guides: Organization Groups.

TestWhat you should see
Create an Organization Group (createOrganizationGroup).An Organization Group id comes back.
Create an Organization in the group (createOrganization, organizationGroupId).The Organization shows its organizationGroup. The organizationGroup query lists the Organization.
Read an Organization Group that does not exist.NOT_FOUND.

Divisions​

Guides: Divisions, Offerings & Enrollment Across Divisions.

Create Benefits once, on the parent Organization. Add the Individual to the Division before you enroll them.

TestWhat you should see
Create a Division in an Organization (createDivision).A Division id comes back. Its parentOrganization is the Organization.
Only for nested Divisions: create a Division under another Division (parentDivisionId).Its parentOrganization is the parent Division. The divisions query shows it under its parent.
Add an Individual to a Division (createOrUpdateOrganizationMembership, with the Division's ID as organizationId).status is CREATED. The membership's Organization is the Division.
Enroll that Individual with the parent Organization's Benefit ID (enrollIndividualInBenefit).The enrollment succeeds. The Individual's Health Wallet shows an account for the Benefit with active true.

Brands​

Guides: Brands.

TestWhat you should see
List your brands (brands).Each of your brands is listed. One has isDefault true.
Create an Organization with a brand from the list (createOrganization).An Organization id comes back.
Create an Organization with a brand that is not in the list.HTTP 422 with extensions.code NO_SHARD_PROVISIONED. This is a top-level GraphQL error, not an HTTP 200 response.

Individuals​

Guides: Setup & Enrollment, step 4. Pagination.

TestWhat you should see
Create an Individual (createIndividual).An Individual id comes back.
Create a second Individual with the same SSN and date of birth.BAD_REQUEST: an Individual with that SSN and date of birth already exists.
Create a second Individual with the same email.BAD_REQUEST: the email is already in use.
Only if you set a member ID: add the Individual to the Organization with that ID (createOrUpdateOrganizationMembership, externalUserId).status is CREATED. The membership is ACTIVE and shows the member ID.
List the Organization's Individuals one page at a time (individuals, first, after).Every page says whether another follows (hasNextPage). On the last page it is false.

Verification​

Guides: Setup & Enrollment, step 4a. Health Savings Accounts.

TestWhat you should see
Verify an Individual whose ZIP code is 01234 (verifyIndividual).A Verification with status VERIFIED.
Verify an Individual whose ZIP code is 01236.A Verification with status NEEDS_REVIEW.
Send the same verification again with the same idempotencyKey.The same result as the first time.

Enrollment​

Guides: Setup & Enrollment, steps 5 and 6.

TestWhat you should see
HSA partners: enroll a VERIFIED Individual in the HSA Benefit (enrollIndividualInBenefit).The enrollment succeeds. The Individual's Health Wallet shows an account for the Benefit with active true.
HSA partners: enroll an Individual who has not been verified in the HSA Benefit.BAD_REQUEST: there is no verification. An Individual in NEEDS_REVIEW also gets BAD_REQUEST.
Enroll an Individual in a Benefit that is not an HSA.The enrollment succeeds. An FSA or LPFSA needs an electionAmount. Without it the result is BAD_REQUEST.
Read the Individual's balances (individual, healthWallet).One account for each enrollment, with its balances. lowestDenominationAmount is in cents and amount is in dollars: 120000 cents is $1,200.

Funding​

Guides: HSA funding, FSA funding, Reversing a funding.

TestWhat you should see
Fund a Benefit for an Individual (fundBenefitForIndividual).A transactionId comes back.
Send the same funding again with the same idempotencyKey.The same transactionId comes back. The balance goes up once, not twice.
Read the Individual's balances and transactions.The balance is up by the amount funded. There is a DEPOSIT transaction.
Reverse the funding (reverseBenefitFundingForIndividual).A reversalTransactionId comes back. The balance is back down and there is a WITHDRAWAL transaction. A second reversal of the same funding with a new idempotencyKey is an error.

Benefit funding method​

Guides: Benefit funding method.

RMF is Required Minimum Funding. These tests need a Benefit that is not an HSA.

TestWhat you should see
Read a Benefit's funding method (benefit, fundingConfiguration).balanceFundingAlgorithm comes back with the stored rmf and claimFunding settings. A Benefit with none stored reads NONE.
Switch the Benefit to RMF (updateBenefitFundingMethod).The result shows RMF with the schedule and threshold you sent. A read of the Benefit shows the same.
Turn claims funding on for the same Benefit (claimFunding, enabled true).The result shows RMF and claimFunding.enabled true.
Only for a Benefit with cards: switch to claims-based funding with no RMF. First Dollar can tell you which of your Benefit Templates have cards.BAD_REQUEST. A Benefit with cards uses claims funding only together with RMF.
Change the funding algorithm of an HSA Benefit.FUNDING_ALGORITHM_LOCKED.

Elections and contributions​

Guides: Recurring contributions.

Use a Benefit that starts tomorrow or later, with an Individual enrolled in it. The first recurring contribution schedule cannot be set once the Benefit is active. An FSA or LPFSA election cannot change on or after the start date, so the second test needs another Benefit, one that has already started.

TestWhat you should see
Set an election (setElectionAmountForBenefitAndIndividual).It succeeds. The account shows the election amount.
FSA and LPFSA only: set an election on a Benefit that has already started.BAD_REQUEST: an election can change only before the Benefit's start date.
Set initial contributions (setInitialContributionsForBenefitAndIndividual).It succeeds. The account shows the employee and employer amounts.
Set the recurring contribution schedule (setRecurringContributionScheduleForBenefit).It succeeds. No query returns the schedule, so keep your own record of it.
Set a schedule with a missing field: MONTHLY with no dayOfMonth.BAD_REQUEST: dayOfMonth is required for a MONTHLY schedule.
Set an Individual's recurring amounts (setRecurringContributionsForBenefitAndIndividual).It succeeds. The account shows the employee and employer amounts.

Cards​

Guides: Cards.

TestWhat you should see
Issue a card to an enrolled Individual (issueCard).A card comes back with status UNACTIVATED.
Activate the card (activateCard).The status is ACTIVE.
Lock the card, then unlock it (lockCard, unlockCard).SUSPENDED after the lock and ACTIVE after the unlock.
Cancel the card and ask for a replacement (cancelCard with reissue true).The old card is TERMINATED. A new card is listed with status UNACTIVATED.
Activate the cancelled card.BAD_REQUEST. A cancelled card cannot be activated.

Claims​

Guides: Reimbursement claims.

TestWhat you should see
Get upload links for a claim's documents and upload the files (prepareClaimDocumentUpload).One upload link for each file comes back, with a documentGroupId.
Submit a claim with the documentGroupId (submitClaim).A claim comes back with status PENDING.
Submit a claim for an Individual with no linked bank account.LINKED_BANK_ACCOUNT_REQUIRED.
Find the claim (claims, claim).The claim is listed with its status.
Only if you decide claims: approve one claim and deny another (approveClaim, denyClaim).The approved claim is APPROVED. The denied claim is REJECTED.
Only if you decide claims: ask for more information, then resubmit (requestClaimInformation, resubmitClaim).INFORMATION_REQUESTED after the request and RESUBMITTED after the resubmit.
Only if you correct claims: correct a detail of a claim that is not decided yet (updateClaim).changed is true and the claim shows the new detail. Its status does not change. A claim that is already decided returns INVALID_CLAIM_STATUS.

Offboarding​

Guides: Setup & Enrollment, step 7. Cancelling a Benefit.

TestWhat you should see
Unenroll an Individual from a Benefit that is not an HSA (unenrollIndividualFromBenefit).It succeeds. The account shows active false. An HSA is transferred, not unenrolled.
Deactivate the Individual's Organization membership (deactivateOrganizationMembership).success is true. The Individual no longer lists the membership.
Cancel a Benefit that no other test still needs (cancelBenefit). This cannot be undone.It succeeds. The Benefits Program no longer lists the Benefit. A second cancel is an error.

Statements and tax forms​

Guides: Statements, Tax Forms.

TestWhat you should see
List an Individual's statements (statements).A list comes back. A new HSA has no statements yet, so the list is empty.
List an Individual's tax forms (taxForms).A list grouped by tax year comes back. It is empty until forms are generated for a tax year.
Ask for the statements of an Individual who does not exist.BAD_REQUEST: the Individual is not found.

Reporting​

Guides: Reporting.

TestWhat you should see
Start a report you use (generateReport, reportCode).A report id comes back with status NOT_STARTED.
Read the report until it is done (report).execution.status becomes SUCCEEDED. results holds the column headers and rows. downloadLinks holds a link to a CSV file.
Start a report with a code that does not exist.NOT_FOUND.

Webhooks​

Guides: Webhooks.

TestWhat you should see
Create an endpoint (createWebhookEndpoint).The endpoint is ACTIVE. signingSecret comes back this once. Store it.
Send a test event (sendTestWebhook).The delivery starts as PENDING. Your receiver gets a webhook.test event, checks the signature and answers with a 2xx status. The delivery then shows SUCCEEDED.
Make your receiver answer 404, send a test event, then read the delivery (webhookDelivery).The delivery is FAILED and is not retried. Each attempt shows the response status. Afterwards, restore your receiver and send a test event that succeeds. An endpoint is disabled 24 hours after a failed attempt with no success since.
Pause the endpoint and send a test event (updateWebhookEndpoint, status PAUSED).INVALID_STATE. Set the endpoint back to ACTIVE after this test.
Rotate the signing secret (rotateWebhookSigningSecret).A new signingSecret comes back. For 24 hours each delivery is signed with both secrets.
With live events enabled: enroll an Individual.Your receiver gets a participant.enrollment.created event. Until live events are enabled, the delivery is listed as SKIPPED.

Brokerage firms​

Guides: Brokerage Firms.

TestWhat you should see
Register a brokerage firm with its EIN (createBrokerageFirm).status is CREATED. A firm id comes back.
Register the same firm again with the same EIN.status is ALREADY_EXISTED and matchedBy is EIN. The same firm id comes back.
Assign an Organization to the firm (assignOrganizationsToFirm).The Organization's row is CREATED. An Organization that is not yours gets FAILED on its own row.
Add a broker to the firm (addBrokerToFirm).status is CREATED and inviteStatus is SENT. The invitation goes to the broker's email, so use an address you own.
List the firms (brokerageFirms).The firm is listed with its brokers and the Organizations assigned to it.
Remove the Organization from the firm (unassignOrganizationsFromFirm).The Organization's row is REMOVED. A firm with none of your Organizations is no longer listed.

Single sign-on​

Guides: Single Sign-On, SAML Health Wallet SSO, SAML Health Wallet Manager SSO, OpenID Connect SSO.

TestWhat you should see
A member who is signed in on your site opens Health Wallet.They land in their own Health Wallet with no second sign-in.
An admin who is signed in on your site opens Health Wallet Manager.They land in Health Wallet Manager with no second sign-in.
A user First Dollar does not know tries to sign on.The user is not signed in. With SAML they land on the sso-not-found page.
SAML only: send a sign-on with a bad or missing signature.The user is not signed in and lands on the sso-not-found page.

Before you go live​

  • Your Production setup uses the Production base URL, https://api.firstdollar.com, and your Production credentials.
  • Your Production setup does not reuse IDs from Sandbox. Sandbox IDs do not exist in Production. Read your Benefit Templates and brands again there.
  • Your Production setup has its own webhook endpoints, signing secrets and SSO configuration. Create your endpoints again in Production, and ask First Dollar to enable live events and claims operations there.