Headers
The legacy header
Accept: application/vnd.mx.api.v1+json still works and requests v20111101. Move to Accept: application/json with an Accept-Version header.Data format
Requests and responses use JSON, including error responses (see Errors). The exceptions are:- Download Statement PDF returns a PDF file.
- Some responses, such as
204 No Content, have no body. - Encrypted responses return an encrypted JWE string.
Request bodies
PUT request bodies can’t be empty. Include at least one parameter inside the body’s root object, even when no parameter is required. An empty PUT body returns 400 Bad Request.
Boolean fields
Boolean fields accept onlytrue or false. Don’t use 0 or 1.
Dates and times
Dates and times use ISO 8601 format:- Fields that end in
_onare dates without a time, for example2018-07-18. - Fields that end in
_atare dates with a time and UTC offset, for example2025-02-13T18:08:00+00:00.
Numbers
Some fields, such as account balances, have limits on decimal numbers, given as precision and scale (for example,14,2). Precision is the total number of digits, and scale is the number of digits to the right of the decimal point. For example, 538.46 has a precision and scale of 5,2.
Identifiers and metadata
Many resources you create through the API accept an optionalid and an optional metadata field.
id: Your own unique identifier for the resource. Use it to make sure a resource is created only once, or to match MX data with data on your platform. Creating a resource with anidthat already exists returns409 Conflict.metadata: A string you can use to store additional data about the resource, such as a JSON-encoded string. MX doesn’t use it.
Pagination
Endpoints that return lists are paginated. Use these query parameters to control which page you get and how many records it contains:
Each list response includes a
pagination object:
Special characters in responses
Because of the financial nature of the data, string fields may contain special characters such as', <, >, ", and =. For example, an account might be named Mortgage Loan <= 15 Years. Sanitize or encode API output before you display it, for example by HTML-encoding it before rendering it in a web view.

