Skip to main content

Transactions

Transaction Fields

FieldData typeDescription
account_guidStringThe unique identifier for the account associated with the transaction. Defined by MX.
account_idStringThe unique partner-defined identifier for the account associated with the transaction. This can only be set for partner-managed accounts. It should be ignored for user-managed transactions, even in occasional cases where it may return with a value.
amountDecimalThe monetary amount of the transaction.
business_categoryStringThe name of the business category assigned to this transaction.

This field only appears in the response when the business suite has been enabled.
business_category_guidStringThe unique identifier for the business category assigned to this transaction. Defined by MX.

This field only appears in the response when the business suite has been enabled.
categoryStringThe category of the transaction.
category_guidStringThe unique identifier for the category assigned to the transaction.
check_number_stringStringThe check number for the transaction.
created_atStringThe date and time the transaction was created.
currency_codeStringThe three-character ISO 4217 currency code, e.g. USD.
dateStringThe date on which the transaction took place. This is the field used when searching for transactions by date. This field is generally the same as transacted_at, but uses posted_at as a fallback.
descriptionStringA human-readable version of the original_description field described below. This is provided by the MX Platform.
guidStringThe unique identifier for the transaction. Defined by MX.
idStringThe unique partner-defined identifier for the transaction. This can only be set for partner-managed transactions. It should be ignored for user-managed transactions, even in occasional cases where it may return with a value.
is_bill_payBooleanThis indicates whether the transaction represents a bill pay.
is_businessBooleanThis indicates whether the transaction is for business or personal purposes. This field defaults to true when the associated account is set to "is_business: "true", and false otherwise.

This field only appears in the response when the business suite has been enabled.
is_direct_depositBooleanThis indicates whether the transaction represents a direct deposit.
is_expenseBooleanThis indicates whether the transaction represents an expense.
is_feeBooleanThis indicates whether the transaction represents a fee.
is_incomeBooleanThis indicates whether the transaction represents income.
is_internationalBooleanIf the transaction is international as defined by the data provider, this field will be true. If the data provider determines it is not international then it will be false. It will be null if the data provider does not have this information.
is_overdraft_feeBooleanThis indicates whether the transaction represents an overdraft fee.
is_payroll_advanceBooleanThis indicates whether the transaction represents a payroll advance.
is_recurringBooleanThis field should be ignored. If this information is required, please reach out to MX to discuss an alternative.
is_subscriptionBooleanThis indicates whether the transaction represents a payment for a subscription service such as Netflix or Audible.
latitudeDecimalThe latitude of the location where the transaction occurred. The number is a signed decimal (e.g. Rio de Janeiro's latitude is -22.9027800 and Tokyo's latitude is 35.689488).
localized_descriptionStringA human-readable description of the transaction, provided in a local language.
localized_memoStringAdditional descriptive information about the transaction, provided in a local language.
longitudeDecimalThe longitude of the location where the transaction occurred. The number is a signed decimal (e.g. Rio de Janeiro's longitude is -43.2075000 and Tokyo's longitude is 139.691706).
member_guidStringThe unique identifier for the member associated with the transaction Defined by MX.
member_is_managed_by_userBooleanThis indicates whether the associated member is managed by the user or the MX partner. Members created with the managed member feature will have this field set to false.
memoStringThis field contains additional descriptive information about the transaction.
merchant_category_codeIntegerThe ISO 18245 category code for the transaction.
merchant_guidStringThe unique identifier for the merchant associated with this transaction. Defined by MX.
merchant_location_guidStringThe unique identifier for the merchant_location associated with this transaction. Defined by MX.
original_descriptionStringThe original description of the transaction as provided by our data feed. See description above for more information.
posted_atStringThe date and time the transaction was posted to the account.
statusStringThe status of the transaction. This will be either POSTED or PENDING.
top_level_categoryStringThe parent category assigned to this transaction's category.
transacted_atStringThe date and time the transaction took place.
typeStringThe type of transaction. This will be either CREDIT or DEBIT.
updated_atStringThe date and time the transaction was last updated.
user_guidStringThe unique identifier for the user associated with this transaction. Defined by MX.
user_idStringThe unique partner-defined identifier for the user associated with the transaction.

List All Transactions for a User

Requests to this endpoint return a list of transactions associated with the specified user, across all members and accounts associated with that user.

Query String Parameters

Field NameRequiredData TypeDescription
from_dateNoStringReturn transactions occurring within a date range starting on this day. If not set, this defaults to 90 days prior to the day of the request. Must be in ISO 8601 format without a time component.
to_dateNoStringReturn transactions occurring in a date range ending on this day. If not set, this defaults to 5 days forward from the day of the request so as to capture pending transactions. Must be in ISO 8601 format without a time component.

Endpoint: GET /users/{user_guid}/transactions

Request
Response
Language:shell

_10
curl -i -X GET 'https://int-api.mx.com/users/USR-fa7537f3-48aa-a683-a02a-b18940482f54/transactions?from_date=2015-09-20&page=1&records_per_page=10&to_date=2019-10-20' \
_10
-H 'Accept: application/vnd.mx.api.v1+json' \
_10
-u 'client_id:api_key'

Read a Transaction

Requests to this endpoint will return the attributes of the specified transaction.

Endpoint: GET /users/{user_guid}/transactions/{transaction_guid}

Request
Response
Language:shell

_10
curl -i -X GET 'https://int-api.mx.com/users/USR-fa7537f3-48aa-a683-a02a-b18940482f54/transactions/TRN-810828b0-5210-4878-9bd3-f4ce514f90c4' \
_10
-H 'Accept: application/vnd.mx.api.v1+json' \
_10
-u 'client_id:api_key'

Update a Transaction

Use this endpoint to update various attributes of a specific transaction according to its unique GUID.

Parameters

ParameterRequired?
descriptionNo
is_businessNo

Endpoint: PUT /users/{user_guid}/transactions/{transaction_guid}

Request
Response
Language:shell

_10
curl -i -X PUT 'https://int-api.mx.com/users/USR-fa7537f3-48aa-a683-a02a-b18940482f54/transactions/TRN-810828b0-5210-4878-9bd3-f4ce514f90c4' \
_10
-H 'Accept: application/vnd.mx.api.v1+json' \
_10
-H 'Content-Type: application/json' \
_10
-u 'client_id:api_key' \
_10
-d '{
_10
"transaction": {
_10
"description": "new description"
_10
}
_10
}'