{ "member": { "aggregated_at": "2016-10-13T18:07:57.000Z", "background_aggregation_is_disabled": false, "connection_status": "CONNECTED", "connection_status_message": "Connected to MX Bank", "error": { "error_type": "MEMBER", "error_code": "NO_VERIFIABLE_ACCOUNTS", "error_message": "This Member has no eligible checking, savings, or money market accounts.", "user_message": "We couldn't find any accounts eligible for transfers. Please link a checking or savings account.", "locale": "en" }, "guid": "MBR-7c6f361b-e582-15b6-60c0-358f12466b4b", "id": "unique_id", "institution_code": "mxbank", "institution_guid": "INST-12345678-90ab-cdef-1234-567890abcdef", "is_being_aggregated": false, "is_managed_by_user": false, "is_manual": false, "is_oauth": false, "metadata": "\\\"credentials_last_refreshed_at\\\": \\\"2015-10-15\\", "most_recent_job_detail_code": null, "most_recent_job_detail_text": null, "most_recent_job_guid": "JOB-12345678-90ab-cdef-1234-567890abcdef", "name": "MX Bank", "needs_updated_credentials": false, "oauth_window_uri": "https://mxbank.mx.com/oauth/authorize?client_id=b8OikQ4Ep3NuSUrQ13DdvFuwpNx-qqoAsJDVAQCyLkQ&redirect_uri=https%3A%2F%2Fint-app.moneydesktop.com%2Foauth%2Fredirect_from&response_type=code&scope=openid&state=d745bd4ee6f0f9c184757f574bcc2df2", "successfully_aggregated_at": "2016-10-13T17:57:38.000Z", "use_cases": [ "PFM" ], "user_guid": "USR-fa7537f3-48aa-a683-a02a-b18940482f54", "user_id": "user123" }}
{
"member": {
"aggregated_at": "2016-10-13T18:07:57.000Z",
"background_aggregation_is_disabled": false,
"connection_status": "CONNECTED",
"connection_status_message": "Connected to MX Bank",
"error": {
"error_type": "MEMBER",
"error_code": "NO_VERIFIABLE_ACCOUNTS",
"error_message": "This Member has no eligible checking, savings, or money market accounts.",
"user_message": "We couldn't find any accounts eligible for transfers. Please link a checking or savings account.",
"locale": "en"
},
"guid": "MBR-7c6f361b-e582-15b6-60c0-358f12466b4b",
"id": "unique_id",
"institution_code": "mxbank",
"institution_guid": "INST-12345678-90ab-cdef-1234-567890abcdef",
"is_being_aggregated": false,
"is_managed_by_user": false,
"is_manual": false,
"is_oauth": false,
"metadata": "\\\"credentials_last_refreshed_at\\\": \\\"2015-10-15\\",
"most_recent_job_detail_code": null,
"most_recent_job_detail_text": null,
"most_recent_job_guid": "JOB-12345678-90ab-cdef-1234-567890abcdef",
"name": "MX Bank",
"needs_updated_credentials": false,
"oauth_window_uri": "https://mxbank.mx.com/oauth/authorize?client_id=b8OikQ4Ep3NuSUrQ13DdvFuwpNx-qqoAsJDVAQCyLkQ&redirect_uri=https%3A%2F%2Fint-app.moneydesktop.com%2Foauth%2Fredirect_from&response_type=code&scope=openid&state=d745bd4ee6f0f9c184757f574bcc2df2",
"successfully_aggregated_at": "2016-10-13T17:57:38.000Z",
"use_cases": [
"PFM"
],
"user_guid": "USR-fa7537f3-48aa-a683-a02a-b18940482f54",
"user_id": "user123"
}
}
Members
Create member
This endpoint allows you to create a new member. Members are created with the required parameters credentials and institution_code, and the optional parameters id and metadata. When creating a member, youll need to include the correct type of credential required by the financial institution and provided by the user. You can find out which credential type is required with the /institutions/{institution_code}/credentials endpoint. If successful, the MX Platform API will respond with the newly-created member object. Once you successfully create a member, MX will immediately validate the provided credentials and attempt to aggregate data for accounts and transactions.
{ "member": { "aggregated_at": "2016-10-13T18:07:57.000Z", "background_aggregation_is_disabled": false, "connection_status": "CONNECTED", "connection_status_message": "Connected to MX Bank", "error": { "error_type": "MEMBER", "error_code": "NO_VERIFIABLE_ACCOUNTS", "error_message": "This Member has no eligible checking, savings, or money market accounts.", "user_message": "We couldn't find any accounts eligible for transfers. Please link a checking or savings account.", "locale": "en" }, "guid": "MBR-7c6f361b-e582-15b6-60c0-358f12466b4b", "id": "unique_id", "institution_code": "mxbank", "institution_guid": "INST-12345678-90ab-cdef-1234-567890abcdef", "is_being_aggregated": false, "is_managed_by_user": false, "is_manual": false, "is_oauth": false, "metadata": "\\\"credentials_last_refreshed_at\\\": \\\"2015-10-15\\", "most_recent_job_detail_code": null, "most_recent_job_detail_text": null, "most_recent_job_guid": "JOB-12345678-90ab-cdef-1234-567890abcdef", "name": "MX Bank", "needs_updated_credentials": false, "oauth_window_uri": "https://mxbank.mx.com/oauth/authorize?client_id=b8OikQ4Ep3NuSUrQ13DdvFuwpNx-qqoAsJDVAQCyLkQ&redirect_uri=https%3A%2F%2Fint-app.moneydesktop.com%2Foauth%2Fredirect_from&response_type=code&scope=openid&state=d745bd4ee6f0f9c184757f574bcc2df2", "successfully_aggregated_at": "2016-10-13T17:57:38.000Z", "use_cases": [ "PFM" ], "user_guid": "USR-fa7537f3-48aa-a683-a02a-b18940482f54", "user_id": "user123" }}
{
"member": {
"aggregated_at": "2016-10-13T18:07:57.000Z",
"background_aggregation_is_disabled": false,
"connection_status": "CONNECTED",
"connection_status_message": "Connected to MX Bank",
"error": {
"error_type": "MEMBER",
"error_code": "NO_VERIFIABLE_ACCOUNTS",
"error_message": "This Member has no eligible checking, savings, or money market accounts.",
"user_message": "We couldn't find any accounts eligible for transfers. Please link a checking or savings account.",
"locale": "en"
},
"guid": "MBR-7c6f361b-e582-15b6-60c0-358f12466b4b",
"id": "unique_id",
"institution_code": "mxbank",
"institution_guid": "INST-12345678-90ab-cdef-1234-567890abcdef",
"is_being_aggregated": false,
"is_managed_by_user": false,
"is_manual": false,
"is_oauth": false,
"metadata": "\\\"credentials_last_refreshed_at\\\": \\\"2015-10-15\\",
"most_recent_job_detail_code": null,
"most_recent_job_detail_text": null,
"most_recent_job_guid": "JOB-12345678-90ab-cdef-1234-567890abcdef",
"name": "MX Bank",
"needs_updated_credentials": false,
"oauth_window_uri": "https://mxbank.mx.com/oauth/authorize?client_id=b8OikQ4Ep3NuSUrQ13DdvFuwpNx-qqoAsJDVAQCyLkQ&redirect_uri=https%3A%2F%2Fint-app.moneydesktop.com%2Foauth%2Fredirect_from&response_type=code&scope=openid&state=d745bd4ee6f0f9c184757f574bcc2df2",
"successfully_aggregated_at": "2016-10-13T17:57:38.000Z",
"use_cases": [
"PFM"
],
"user_guid": "USR-fa7537f3-48aa-a683-a02a-b18940482f54",
"user_id": "user123"
}
}
Authorizations
Authorization
string
header
required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Headers
X-CALLBACK-PAYLOAD
string
The base64 encoded string defined in this header will be returned in the Member and Member Data Updated webhooks. This allows you to trace user interactions and workflows initiated externally and internally in the MX Platform. Max 1024 characters.
Path Parameters
user_guid
string
required
The unique identifier for a user, beginning with the prefix USR-.
Body
application/json
Member object to be created with optional parameters (id and metadata) and required parameters (credentials and institution_code)
client_redirect_url
string
Example:
"https://{yoursite.com}"
enable_app2app
boolean
This indicates whether OAuth app2app behavior is enabled for institutions that support it. Defaults to true. When set to false, any oauth_window_uri generated will not direct the end user to the institution's mobile application. This setting is not persistent. This setting currently only affects Chase institutions.
The use case associated with the member. Valid values are PFM and/or MONEY_MOVEMENT. Only set this if you've met with MX and have opted in to using this field.
Available options:
MONEY_MOVEMENT,
PFM
Example:
["PFM"]
referral_source
string
Example:
"APP"
ui_message_webview_url_scheme
string
Response
OK
member
object
Hide child attributes
member.aggregated_at
string | null
Example:
"2016-10-13T18:07:57.000Z"
member.background_aggregation_is_disabled
boolean
Example:
false
member.connection_status
string | null
Example:
"CONNECTED"
member.connection_status_message
string | null
Example:
"Connected to MX Bank"
member.error
object | null
Details about why the member's most recent aggregation failed. This is null unless the aggregation failed for one of the reasons in Member Connection Errors.
Hide child attributes
member.error.error_type
string
The category of the error.
Example:
"MEMBER"
member.error.error_code
string
The code that identifies the error.
Example:
"NO_VERIFIABLE_ACCOUNTS"
member.error.error_message
string
A description of the error for logging and troubleshooting.
Example:
"This Member has no eligible checking, savings, or money market accounts."
member.error.user_message
string
A message you can display to the end user.
Example:
"We couldn't find any accounts eligible for transfers. Please link a checking or savings account."
member.error.locale
string
The language of error_message and user_message, such as en, es, or fr.
The use case associated with the member. Valid values are PFM and/or MONEY_MOVEMENT. Only set this if you've met with MX and have opted in to using this field.