Resolve merchants
curl --request POST \
--url https://api.swippee.com/v1/merchants/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"terminals": [
"2222000000000000"
],
"names": [
"Example Cafe"
]
}
'import requests
url = "https://api.swippee.com/v1/merchants/resolve"
payload = {
"terminals": ["2222000000000000"],
"names": ["Example Cafe"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({terminals: ['2222000000000000'], names: ['Example Cafe']})
};
fetch('https://api.swippee.com/v1/merchants/resolve', 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://api.swippee.com/v1/merchants/resolve",
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([
'terminals' => [
'2222000000000000'
],
'names' => [
'Example Cafe'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.swippee.com/v1/merchants/resolve"
payload := strings.NewReader("{\n \"terminals\": [\n \"2222000000000000\"\n ],\n \"names\": [\n \"Example Cafe\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.swippee.com/v1/merchants/resolve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"terminals\": [\n \"2222000000000000\"\n ],\n \"names\": [\n \"Example Cafe\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.swippee.com/v1/merchants/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"terminals\": [\n \"2222000000000000\"\n ],\n \"names\": [\n \"Example Cafe\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"count": 123,
"matched": 123,
"results": [
{
"input": "<string>",
"matched": true,
"merchant": "<string>",
"mcc": "<string>",
"category": "<string>",
"city": "<string>",
"terminal": "<string>"
}
]
},
"meta": {
"source": "<string>"
}
}{
"error_type": "AUTHENTICATION_ERROR",
"error_code": "INVALID_API_KEY",
"error_message": "Unknown API key.",
"display_message": null,
"request_id": "req_8f3c9b2e4a1d4f7c9e0b1a2c3d4e5f60",
"documentation_url": "https://docs.swippee.com/concepts/errors#invalid_api_key",
"suggested_action": "Check your API key in the Authorization header."
}Merchants
Resolve merchants
Turn raw Fonepay terminal PANs and merchant-name strings into clean merchant data — name, MCC, spend category, and city. FULL scope; bills 1 unit per call (batch up to 1000 lookups).
POST
/
v1
/
merchants
/
resolve
Resolve merchants
curl --request POST \
--url https://api.swippee.com/v1/merchants/resolve \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"terminals": [
"2222000000000000"
],
"names": [
"Example Cafe"
]
}
'import requests
url = "https://api.swippee.com/v1/merchants/resolve"
payload = {
"terminals": ["2222000000000000"],
"names": ["Example Cafe"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({terminals: ['2222000000000000'], names: ['Example Cafe']})
};
fetch('https://api.swippee.com/v1/merchants/resolve', 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://api.swippee.com/v1/merchants/resolve",
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([
'terminals' => [
'2222000000000000'
],
'names' => [
'Example Cafe'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.swippee.com/v1/merchants/resolve"
payload := strings.NewReader("{\n \"terminals\": [\n \"2222000000000000\"\n ],\n \"names\": [\n \"Example Cafe\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.swippee.com/v1/merchants/resolve")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"terminals\": [\n \"2222000000000000\"\n ],\n \"names\": [\n \"Example Cafe\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.swippee.com/v1/merchants/resolve")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"terminals\": [\n \"2222000000000000\"\n ],\n \"names\": [\n \"Example Cafe\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": {
"count": 123,
"matched": 123,
"results": [
{
"input": "<string>",
"matched": true,
"merchant": "<string>",
"mcc": "<string>",
"category": "<string>",
"city": "<string>",
"terminal": "<string>"
}
]
},
"meta": {
"source": "<string>"
}
}{
"error_type": "AUTHENTICATION_ERROR",
"error_code": "INVALID_API_KEY",
"error_message": "Unknown API key.",
"display_message": null,
"request_id": "req_8f3c9b2e4a1d4f7c9e0b1a2c3d4e5f60",
"documentation_url": "https://docs.swippee.com/concepts/errors#invalid_api_key",
"suggested_action": "Check your API key in the Authorization header."
}Authorizations
Your API key from the dashboard, sent as Authorization: Bearer swippee_sk_live_....
Body
application/json
⌘I