Skip to main content
GET
/
account
/
account_numbers
Request an account number (Processors Only)
curl --request GET \
  --url https://int-api.mx.com/account/account_numbers \
  --header 'Accept-Version: <accept-version>' \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://int-api.mx.com/account/account_numbers"

headers = {
"Accept-Version": "<accept-version>",
"Authorization": "Bearer <token>"
}

response = requests.get(url, headers=headers)

print(response.text)
const options = {
method: 'GET',
headers: {'Accept-Version': '<accept-version>', Authorization: 'Bearer <token>'}
};

fetch('https://int-api.mx.com/account/account_numbers', 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/account/account_numbers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Accept-Version: <accept-version>",
"Authorization: Bearer <token>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://int-api.mx.com/account/account_numbers"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("Accept-Version", "<accept-version>")
req.Header.Add("Authorization", "Bearer <token>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://int-api.mx.com/account/account_numbers")
.header("Accept-Version", "<accept-version>")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://int-api.mx.com/account/account_numbers")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Accept-Version"] = '<accept-version>'
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
{
  "account_numbers": [
    {
      "account_guid": "ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1",
      "member_guid": "MBR-7c6f361b-e582-15b6-60c0-358f12466b4b",
      "user_guid": "USR-fa7537f3-48aa-a683-a02a-b18940482f54",
      "account_number": 6366816006,
      "guid": "ACN-68c0b681-78c2-4731-9b41-d6e8ae2846cf",
      "institution_number": null,
      "loan_guarantor": null,
      "loan_reference_number": null,
      "passed_validation": true,
      "routing_number": 242564563,
      "sequence_number": null,
      "transit_number": null
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Accept-Version
string
default:v20250224
required

MX Platform API version.

Example:

"v20250224"

Response

200 - application/json

OK

account_numbers
object[]