View a List of Tokens
curl --request GET \
--url https://int-api.mx.com/tokens \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"scope": {
"account_guid": "ACT-283132a4-1401-486a-909e-1605f1623d11",
"member_guid": "MBR-54feffb9-8474-47bd-8442-de003910113a",
"user_guid": "USR-101ad774-288b-44ed-ad16-da87d522ea20"
}
}
'import requests
url = "https://int-api.mx.com/tokens"
payload = { "scope": {
"account_guid": "ACT-283132a4-1401-486a-909e-1605f1623d11",
"member_guid": "MBR-54feffb9-8474-47bd-8442-de003910113a",
"user_guid": "USR-101ad774-288b-44ed-ad16-da87d522ea20"
} }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scope: {
account_guid: 'ACT-283132a4-1401-486a-909e-1605f1623d11',
member_guid: 'MBR-54feffb9-8474-47bd-8442-de003910113a',
user_guid: 'USR-101ad774-288b-44ed-ad16-da87d522ea20'
}
})
};
fetch('https://int-api.mx.com/tokens', 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/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'scope' => [
'account_guid' => 'ACT-283132a4-1401-486a-909e-1605f1623d11',
'member_guid' => 'MBR-54feffb9-8474-47bd-8442-de003910113a',
'user_guid' => 'USR-101ad774-288b-44ed-ad16-da87d522ea20'
]
]),
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/tokens"
payload := strings.NewReader("{\n \"scope\": {\n \"account_guid\": \"ACT-283132a4-1401-486a-909e-1605f1623d11\",\n \"member_guid\": \"MBR-54feffb9-8474-47bd-8442-de003910113a\",\n \"user_guid\": \"USR-101ad774-288b-44ed-ad16-da87d522ea20\"\n }\n}")
req, _ := http.NewRequest("GET", 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.get("https://int-api.mx.com/tokens")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"scope\": {\n \"account_guid\": \"ACT-283132a4-1401-486a-909e-1605f1623d11\",\n \"member_guid\": \"MBR-54feffb9-8474-47bd-8442-de003910113a\",\n \"user_guid\": \"USR-101ad774-288b-44ed-ad16-da87d522ea20\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://int-api.mx.com/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scope\": {\n \"account_guid\": \"ACT-283132a4-1401-486a-909e-1605f1623d11\",\n \"member_guid\": \"MBR-54feffb9-8474-47bd-8442-de003910113a\",\n \"user_guid\": \"USR-101ad774-288b-44ed-ad16-da87d522ea20\"\n }\n}"
response = http.request(request)
puts response.read_body{
"tokens": [
{
"payment_processor_guid": "PPR-084aa709-8218-4b5a-b3ab-70ffc7483daf",
"expires_at": "2023-04-19T15:38:2800:00",
"access_token": "i8FnF...",
"active": true
}
]
}Processor Token
View a List of Tokens
GET
/
tokens
View a List of Tokens
curl --request GET \
--url https://int-api.mx.com/tokens \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"scope": {
"account_guid": "ACT-283132a4-1401-486a-909e-1605f1623d11",
"member_guid": "MBR-54feffb9-8474-47bd-8442-de003910113a",
"user_guid": "USR-101ad774-288b-44ed-ad16-da87d522ea20"
}
}
'import requests
url = "https://int-api.mx.com/tokens"
payload = { "scope": {
"account_guid": "ACT-283132a4-1401-486a-909e-1605f1623d11",
"member_guid": "MBR-54feffb9-8474-47bd-8442-de003910113a",
"user_guid": "USR-101ad774-288b-44ed-ad16-da87d522ea20"
} }
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.get(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
scope: {
account_guid: 'ACT-283132a4-1401-486a-909e-1605f1623d11',
member_guid: 'MBR-54feffb9-8474-47bd-8442-de003910113a',
user_guid: 'USR-101ad774-288b-44ed-ad16-da87d522ea20'
}
})
};
fetch('https://int-api.mx.com/tokens', 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/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => json_encode([
'scope' => [
'account_guid' => 'ACT-283132a4-1401-486a-909e-1605f1623d11',
'member_guid' => 'MBR-54feffb9-8474-47bd-8442-de003910113a',
'user_guid' => 'USR-101ad774-288b-44ed-ad16-da87d522ea20'
]
]),
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/tokens"
payload := strings.NewReader("{\n \"scope\": {\n \"account_guid\": \"ACT-283132a4-1401-486a-909e-1605f1623d11\",\n \"member_guid\": \"MBR-54feffb9-8474-47bd-8442-de003910113a\",\n \"user_guid\": \"USR-101ad774-288b-44ed-ad16-da87d522ea20\"\n }\n}")
req, _ := http.NewRequest("GET", 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.get("https://int-api.mx.com/tokens")
.header("Authorization", "Basic <encoded-value>")
.header("Content-Type", "application/json")
.body("{\n \"scope\": {\n \"account_guid\": \"ACT-283132a4-1401-486a-909e-1605f1623d11\",\n \"member_guid\": \"MBR-54feffb9-8474-47bd-8442-de003910113a\",\n \"user_guid\": \"USR-101ad774-288b-44ed-ad16-da87d522ea20\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://int-api.mx.com/tokens")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"scope\": {\n \"account_guid\": \"ACT-283132a4-1401-486a-909e-1605f1623d11\",\n \"member_guid\": \"MBR-54feffb9-8474-47bd-8442-de003910113a\",\n \"user_guid\": \"USR-101ad774-288b-44ed-ad16-da87d522ea20\"\n }\n}"
response = http.request(request)
puts response.read_body{
"tokens": [
{
"payment_processor_guid": "PPR-084aa709-8218-4b5a-b3ab-70ffc7483daf",
"expires_at": "2023-04-19T15:38:2800:00",
"access_token": "i8FnF...",
"active": true
}
]
}View a list of tokens that exist for a user, member, or account.
Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Body
application/json
Response
200 - application/vnd.mx.api.v1+json
OK
⌘I

