Skip to main content

Testing with MX Bank

MX provides a test institution called mxbank. Use it to test different scenarios related to connecting end user's accounts while using safe and secure credentials. Connecting to this institution generates test data for accounts and transactions.

Depending on the credentials you use which are outlined below, the connection can either complete successfully or prompt a multi-factor authentication challenge. You can test a failed connection to learn more about invalid responses. Each test credential describes the error that you'll experience by the MX system and what connection status is returned as a result. Use the update member endpoint to set the appropriate password for your particular test case.

There are no aggregation limits on the mxbank institution, meaning that you can aggregate without worrying about the throttle window applied to other institutions.

mxbank is only available in our integration environment.

info

Unsure if you should use MX Bank? See When To Use MX Bank vs. MXCU for guidance.

MX Bank Testing Scenarios

The following table provides a set of username and password combinations that simulate various connection statuses.

If you're integrating with our Connect Widget, input these credentials after searching for and selecting MX Bank. For each error-related status, we also describe the message that will appear in the widget.

For API-only integrations, use these credentials when creating a member. We provide details on the error messages returned for each connection status.

UsernamePassword (case sensitive)Connection StatusDescription
mxuserAny value not described below.CONNECTEDSuccessful aggregation with no MFA.
mxuserchallengeCHALLENGEDIssues an MFA challenge. Answer with correct to simulate a correct MFA response, or use one of the passwords below that simulate a server error. Use anything else to simulate an incorrect answer.
mxuseroptionsCHALLENGEDIssues an MFA challenge of the type OPTIONS. Answer with correct to simulate a correct MFA response, or use one of the passwords below that simulate a server error. Use anything else to simulate an incorrect answer.
mxuserimageCHALLENGEDIssues an MFA challenge of type IMAGE. Issues an MFA challenge. Answer with correct to simulate a correct MFA response, or use one of the passwords below that simulate a server error. Use anything else to simulate an incorrect answer.
mxuserBAD_REQUESTFAILEDExternal server returns a 400 error with the message, "You must fill out the username and password fields."

If using the Connect Widget, this will display the message: "There was a problem validating your credentials with MX Bank. Please try again later."
mxuserUNAUTHORIZEDDENIEDExternal server returns a 401 error with the message, "Invalid credentials."

If using the Connect Widget, this will display the message: "The credentials entered do not match those at MX Bank. Please correct them below to continue."
mxuserINVALIDDENIEDExternal server returns a 401 error with the message, "The login and/or password are invalid."

If using the Connect Widget, this will display the message: "The credentials entered do not match those at MX Bank. Please correct them below to continue."
mxuserLOCKEDLOCKEDExternal server returns a 401 error with the message, "The credentials are valid, but the user is locked."

If using the Connect Widget, this will display the message: "Your account is locked. Please log in to the appropriate website for MX Bank and follow the steps to resolve the issue."
mxuserDISABLEDDENIEDExternal server returns a 401 error with the message, "The credentials are valid, but the user is locked." This password may also be used as an MFA answer.

If using the Connect Widget, this will display the message: "The credentials entered do not match those at MX Bank. Please correct them below to continue."
mxuserSERVER_ERRORFAILEDExternal server returns a 500 error with the message, "Internal server error." This password may also be used as an MFA answer.

If using the Connect Widget, this will display the message: "There was a problem validating your credentials with MX Bank. Please try again later."
mxuserUNAVAILABLEFAILEDExternal server returns a 503 error with the message, "Service is Unavailable." This password may also be used as an MFA answer.

If using the Connect Widget, this will display the message: "There was a problem validating your credentials with MX Bank. Please try again later."

Testing OAuth with MX Bank

info

We recommend you use the MXCU (OAuth) institution to test OAuth flows, since it offers a full OAuth experience.

You can test OAuth flows in the integration environment with MX Bank (OAuth) (institution code: mx_bank_oauth).

note

In the integration environment, a user can only have one OAuth member .

When you select MX Bank (OAuth) from search, or load the Connect with it via current_institution_code, you should see the following screen before going to the OAuth provider:

Screenshot of OAuth connection screen where you select continue.

Then you should end up on this page: Screenshot of oauth connection screen for authorization.

From here you can select Authorize to simulate authorization and success paths, and Deny to simulate an error path.