Enhance transactions
curl --request POST \
--url https://int-api.mx.com/transactions/enhance \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"transactions": [
{
"description": "ubr* pending.uber.com",
"id": "ID-123",
"amount": 21.33,
"extended_transaction_type": "partner_transaction_type",
"memo": "Additional-information*on_transaction",
"merchant_category_code": 4121,
"type": "DEBIT"
}
]
}
'import requests
url = "https://int-api.mx.com/transactions/enhance"
payload = { "transactions": [
{
"description": "ubr* pending.uber.com",
"id": "ID-123",
"amount": 21.33,
"extended_transaction_type": "partner_transaction_type",
"memo": "Additional-information*on_transaction",
"merchant_category_code": 4121,
"type": "DEBIT"
}
] }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactions: [
{
description: 'ubr* pending.uber.com',
id: 'ID-123',
amount: 21.33,
extended_transaction_type: 'partner_transaction_type',
memo: 'Additional-information*on_transaction',
merchant_category_code: 4121,
type: 'DEBIT'
}
]
})
};
fetch('https://int-api.mx.com/transactions/enhance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://int-api.mx.com/transactions/enhance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transactions' => [
[
'description' => 'ubr* pending.uber.com',
'id' => 'ID-123',
'amount' => 21.33,
'extended_transaction_type' => 'partner_transaction_type',
'memo' => 'Additional-information*on_transaction',
'merchant_category_code' => 4121,
'type' => 'DEBIT'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://int-api.mx.com/transactions/enhance"
payload := strings.NewReader("{\n \"transactions\": [\n {\n \"description\": \"ubr* pending.uber.com\",\n \"id\": \"ID-123\",\n \"amount\": 21.33,\n \"extended_transaction_type\": \"partner_transaction_type\",\n \"memo\": \"Additional-information*on_transaction\",\n \"merchant_category_code\": 4121,\n \"type\": \"DEBIT\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://int-api.mx.com/transactions/enhance")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"transactions\": [\n {\n \"description\": \"ubr* pending.uber.com\",\n \"id\": \"ID-123\",\n \"amount\": 21.33,\n \"extended_transaction_type\": \"partner_transaction_type\",\n \"memo\": \"Additional-information*on_transaction\",\n \"merchant_category_code\": 4121,\n \"type\": \"DEBIT\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://int-api.mx.com/transactions/enhance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transactions\": [\n {\n \"description\": \"ubr* pending.uber.com\",\n \"id\": \"ID-123\",\n \"amount\": 21.33,\n \"extended_transaction_type\": \"partner_transaction_type\",\n \"memo\": \"Additional-information*on_transaction\",\n \"merchant_category_code\": 4121,\n \"type\": \"DEBIT\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"transactions": [
{
"amount": 21.33,
"categorized_by": 13,
"category": "Rental Car & Taxi",
"category_guid": "CAT-9588eaad-90a4-bb5c-66c8-1812503d0db8",
"described_by": 6,
"description": "Uber",
"extended_transaction_type": "partner_transaction_type",
"id": "ID-123",
"is_bill_pay": false,
"is_direct_deposit": false,
"is_expense": false,
"is_fee": false,
"is_income": false,
"is_international": false,
"is_overdraft_fee": false,
"is_payroll_advance": false,
"is_subscription": false,
"memo": "Additional-information*on_transaction",
"merchant_category_code": 4121,
"merchant_guid": "MCH-14f25b63-ef47-a38e-b2b6-d02b280b6e4e",
"merchant_location_guid": "MCL-00024e59-18b5-4d79-b879-2a7896726fea",
"original_description": "ubr* pending.uber.com",
"type": "DEBIT"
}
]
}Transactions
Enhance transactions
POST
/
transactions
/
enhance
Enhance transactions
curl --request POST \
--url https://int-api.mx.com/transactions/enhance \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"transactions": [
{
"description": "ubr* pending.uber.com",
"id": "ID-123",
"amount": 21.33,
"extended_transaction_type": "partner_transaction_type",
"memo": "Additional-information*on_transaction",
"merchant_category_code": 4121,
"type": "DEBIT"
}
]
}
'import requests
url = "https://int-api.mx.com/transactions/enhance"
payload = { "transactions": [
{
"description": "ubr* pending.uber.com",
"id": "ID-123",
"amount": 21.33,
"extended_transaction_type": "partner_transaction_type",
"memo": "Additional-information*on_transaction",
"merchant_category_code": 4121,
"type": "DEBIT"
}
] }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
transactions: [
{
description: 'ubr* pending.uber.com',
id: 'ID-123',
amount: 21.33,
extended_transaction_type: 'partner_transaction_type',
memo: 'Additional-information*on_transaction',
merchant_category_code: 4121,
type: 'DEBIT'
}
]
})
};
fetch('https://int-api.mx.com/transactions/enhance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://int-api.mx.com/transactions/enhance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'transactions' => [
[
'description' => 'ubr* pending.uber.com',
'id' => 'ID-123',
'amount' => 21.33,
'extended_transaction_type' => 'partner_transaction_type',
'memo' => 'Additional-information*on_transaction',
'merchant_category_code' => 4121,
'type' => 'DEBIT'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://int-api.mx.com/transactions/enhance"
payload := strings.NewReader("{\n \"transactions\": [\n {\n \"description\": \"ubr* pending.uber.com\",\n \"id\": \"ID-123\",\n \"amount\": 21.33,\n \"extended_transaction_type\": \"partner_transaction_type\",\n \"memo\": \"Additional-information*on_transaction\",\n \"merchant_category_code\": 4121,\n \"type\": \"DEBIT\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://int-api.mx.com/transactions/enhance")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"transactions\": [\n {\n \"description\": \"ubr* pending.uber.com\",\n \"id\": \"ID-123\",\n \"amount\": 21.33,\n \"extended_transaction_type\": \"partner_transaction_type\",\n \"memo\": \"Additional-information*on_transaction\",\n \"merchant_category_code\": 4121,\n \"type\": \"DEBIT\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://int-api.mx.com/transactions/enhance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"transactions\": [\n {\n \"description\": \"ubr* pending.uber.com\",\n \"id\": \"ID-123\",\n \"amount\": 21.33,\n \"extended_transaction_type\": \"partner_transaction_type\",\n \"memo\": \"Additional-information*on_transaction\",\n \"merchant_category_code\": 4121,\n \"type\": \"DEBIT\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"transactions": [
{
"amount": 21.33,
"categorized_by": 13,
"category": "Rental Car & Taxi",
"category_guid": "CAT-9588eaad-90a4-bb5c-66c8-1812503d0db8",
"described_by": 6,
"description": "Uber",
"extended_transaction_type": "partner_transaction_type",
"id": "ID-123",
"is_bill_pay": false,
"is_direct_deposit": false,
"is_expense": false,
"is_fee": false,
"is_income": false,
"is_international": false,
"is_overdraft_fee": false,
"is_payroll_advance": false,
"is_subscription": false,
"memo": "Additional-information*on_transaction",
"merchant_category_code": 4121,
"merchant_guid": "MCH-14f25b63-ef47-a38e-b2b6-d02b280b6e4e",
"merchant_location_guid": "MCL-00024e59-18b5-4d79-b879-2a7896726fea",
"original_description": "ubr* pending.uber.com",
"type": "DEBIT"
}
]
}Use this endpoint to categorize, cleanse, and classify transactions. These transactions are not persisted or stored on the MX platform.
For more information on returned data, please see the Enhanced Transactions fields guide.
For more information on returned data, please see the Enhanced Transactions fields guide.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Transaction object to be enhanced
Hide child attributes
Hide child attributes
Example:
"ubr* pending.uber.com"
Example:
"ID-123"
Example:
21.33
Example:
"partner_transaction_type"
Example:
"Additional-information*on_transaction"
Example:
4121
Example:
"DEBIT"
Response
200 - application/vnd.mx.api.v1+json
OK
Hide child attributes
Hide child attributes
Example:
21.33
Example:
13
Example:
"Rental Car & Taxi"
Example:
"CAT-9588eaad-90a4-bb5c-66c8-1812503d0db8"
Example:
6
Example:
"Uber"
Example:
"partner_transaction_type"
Example:
"ID-123"
Example:
false
Example:
false
Example:
false
Example:
false
Example:
false
Example:
false
Example:
false
Example:
false
Example:
false
Example:
"Additional-information*on_transaction"
Example:
4121
Example:
"MCH-14f25b63-ef47-a38e-b2b6-d02b280b6e4e"
Example:
"MCL-00024e59-18b5-4d79-b879-2a7896726fea"
Example:
"ubr* pending.uber.com"
Example:
"DEBIT"
⌘I

