File Import
curl --request POST \
--url https://api.staging.paycodefintech.net/terminals/import/file \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"file_content": [
{
"aid": "A0000008851010",
"applicationLabel": "MOSOLO DEBIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 100000,
"transactionLimit": 250000
},
{
"aid": "A0000008852020",
"applicationLabel": "MOSOLO CREDIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 200000,
"transactionLimit": 500000
}
],
"file_issuer": "mosolo",
"file_type": "AID",
"file_version": "v2.1.5"
}
'import requests
url = "https://api.staging.paycodefintech.net/terminals/import/file"
payload = {
"file_content": [
{
"aid": "A0000008851010",
"applicationLabel": "MOSOLO DEBIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 100000,
"transactionLimit": 250000
},
{
"aid": "A0000008852020",
"applicationLabel": "MOSOLO CREDIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 200000,
"transactionLimit": 500000
}
],
"file_issuer": "mosolo",
"file_type": "AID",
"file_version": "v2.1.5"
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
file_content: [
{
aid: 'A0000008851010',
applicationLabel: 'MOSOLO DEBIT',
defaultTAC: 'DC4000A800',
denialTAC: '0010000000',
onlineTAC: 'DC4004A800',
terminalFloorLimit: 100000,
transactionLimit: 250000
},
{
aid: 'A0000008852020',
applicationLabel: 'MOSOLO CREDIT',
defaultTAC: 'DC4000A800',
denialTAC: '0010000000',
onlineTAC: 'DC4004A800',
terminalFloorLimit: 200000,
transactionLimit: 500000
}
],
file_issuer: 'mosolo',
file_type: 'AID',
file_version: 'v2.1.5'
})
};
fetch('https://api.staging.paycodefintech.net/terminals/import/file', 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.staging.paycodefintech.net/terminals/import/file",
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([
'file_content' => [
[
'aid' => 'A0000008851010',
'applicationLabel' => 'MOSOLO DEBIT',
'defaultTAC' => 'DC4000A800',
'denialTAC' => '0010000000',
'onlineTAC' => 'DC4004A800',
'terminalFloorLimit' => 100000,
'transactionLimit' => 250000
],
[
'aid' => 'A0000008852020',
'applicationLabel' => 'MOSOLO CREDIT',
'defaultTAC' => 'DC4000A800',
'denialTAC' => '0010000000',
'onlineTAC' => 'DC4004A800',
'terminalFloorLimit' => 200000,
'transactionLimit' => 500000
]
],
'file_issuer' => 'mosolo',
'file_type' => 'AID',
'file_version' => 'v2.1.5'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$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.staging.paycodefintech.net/terminals/import/file"
payload := strings.NewReader("{\n \"file_content\": [\n {\n \"aid\": \"A0000008851010\",\n \"applicationLabel\": \"MOSOLO DEBIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 100000,\n \"transactionLimit\": 250000\n },\n {\n \"aid\": \"A0000008852020\",\n \"applicationLabel\": \"MOSOLO CREDIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 200000,\n \"transactionLimit\": 500000\n }\n ],\n \"file_issuer\": \"mosolo\",\n \"file_type\": \"AID\",\n \"file_version\": \"v2.1.5\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
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.staging.paycodefintech.net/terminals/import/file")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_content\": [\n {\n \"aid\": \"A0000008851010\",\n \"applicationLabel\": \"MOSOLO DEBIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 100000,\n \"transactionLimit\": 250000\n },\n {\n \"aid\": \"A0000008852020\",\n \"applicationLabel\": \"MOSOLO CREDIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 200000,\n \"transactionLimit\": 500000\n }\n ],\n \"file_issuer\": \"mosolo\",\n \"file_type\": \"AID\",\n \"file_version\": \"v2.1.5\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.paycodefintech.net/terminals/import/file")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_content\": [\n {\n \"aid\": \"A0000008851010\",\n \"applicationLabel\": \"MOSOLO DEBIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 100000,\n \"transactionLimit\": 250000\n },\n {\n \"aid\": \"A0000008852020\",\n \"applicationLabel\": \"MOSOLO CREDIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 200000,\n \"transactionLimit\": 500000\n }\n ],\n \"file_issuer\": \"mosolo\",\n \"file_type\": \"AID\",\n \"file_version\": \"v2.1.5\"\n}"
response = http.request(request)
puts response.read_body{
"file_content": [
{
"aid": "A0000008851010",
"applicationLabel": "MOSOLO DEBIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 100000,
"transactionLimit": 250000
},
{
"aid": "A0000008852020",
"applicationLabel": "MOSOLO CREDIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 200000,
"transactionLimit": 500000
}
],
"file_type": "AID",
"file_version": "v2.1.5"
}Terminal
File Import
Upload file content by it’s type,version etc.
POST
/
terminals
/
import
/
file
File Import
curl --request POST \
--url https://api.staging.paycodefintech.net/terminals/import/file \
--header 'Content-Type: application/json' \
--header 'api-key: <api-key>' \
--data '
{
"file_content": [
{
"aid": "A0000008851010",
"applicationLabel": "MOSOLO DEBIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 100000,
"transactionLimit": 250000
},
{
"aid": "A0000008852020",
"applicationLabel": "MOSOLO CREDIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 200000,
"transactionLimit": 500000
}
],
"file_issuer": "mosolo",
"file_type": "AID",
"file_version": "v2.1.5"
}
'import requests
url = "https://api.staging.paycodefintech.net/terminals/import/file"
payload = {
"file_content": [
{
"aid": "A0000008851010",
"applicationLabel": "MOSOLO DEBIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 100000,
"transactionLimit": 250000
},
{
"aid": "A0000008852020",
"applicationLabel": "MOSOLO CREDIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 200000,
"transactionLimit": 500000
}
],
"file_issuer": "mosolo",
"file_type": "AID",
"file_version": "v2.1.5"
}
headers = {
"api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
file_content: [
{
aid: 'A0000008851010',
applicationLabel: 'MOSOLO DEBIT',
defaultTAC: 'DC4000A800',
denialTAC: '0010000000',
onlineTAC: 'DC4004A800',
terminalFloorLimit: 100000,
transactionLimit: 250000
},
{
aid: 'A0000008852020',
applicationLabel: 'MOSOLO CREDIT',
defaultTAC: 'DC4000A800',
denialTAC: '0010000000',
onlineTAC: 'DC4004A800',
terminalFloorLimit: 200000,
transactionLimit: 500000
}
],
file_issuer: 'mosolo',
file_type: 'AID',
file_version: 'v2.1.5'
})
};
fetch('https://api.staging.paycodefintech.net/terminals/import/file', 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.staging.paycodefintech.net/terminals/import/file",
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([
'file_content' => [
[
'aid' => 'A0000008851010',
'applicationLabel' => 'MOSOLO DEBIT',
'defaultTAC' => 'DC4000A800',
'denialTAC' => '0010000000',
'onlineTAC' => 'DC4004A800',
'terminalFloorLimit' => 100000,
'transactionLimit' => 250000
],
[
'aid' => 'A0000008852020',
'applicationLabel' => 'MOSOLO CREDIT',
'defaultTAC' => 'DC4000A800',
'denialTAC' => '0010000000',
'onlineTAC' => 'DC4004A800',
'terminalFloorLimit' => 200000,
'transactionLimit' => 500000
]
],
'file_issuer' => 'mosolo',
'file_type' => 'AID',
'file_version' => 'v2.1.5'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"api-key: <api-key>"
],
]);
$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.staging.paycodefintech.net/terminals/import/file"
payload := strings.NewReader("{\n \"file_content\": [\n {\n \"aid\": \"A0000008851010\",\n \"applicationLabel\": \"MOSOLO DEBIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 100000,\n \"transactionLimit\": 250000\n },\n {\n \"aid\": \"A0000008852020\",\n \"applicationLabel\": \"MOSOLO CREDIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 200000,\n \"transactionLimit\": 500000\n }\n ],\n \"file_issuer\": \"mosolo\",\n \"file_type\": \"AID\",\n \"file_version\": \"v2.1.5\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("api-key", "<api-key>")
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.staging.paycodefintech.net/terminals/import/file")
.header("api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"file_content\": [\n {\n \"aid\": \"A0000008851010\",\n \"applicationLabel\": \"MOSOLO DEBIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 100000,\n \"transactionLimit\": 250000\n },\n {\n \"aid\": \"A0000008852020\",\n \"applicationLabel\": \"MOSOLO CREDIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 200000,\n \"transactionLimit\": 500000\n }\n ],\n \"file_issuer\": \"mosolo\",\n \"file_type\": \"AID\",\n \"file_version\": \"v2.1.5\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.staging.paycodefintech.net/terminals/import/file")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_content\": [\n {\n \"aid\": \"A0000008851010\",\n \"applicationLabel\": \"MOSOLO DEBIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 100000,\n \"transactionLimit\": 250000\n },\n {\n \"aid\": \"A0000008852020\",\n \"applicationLabel\": \"MOSOLO CREDIT\",\n \"defaultTAC\": \"DC4000A800\",\n \"denialTAC\": \"0010000000\",\n \"onlineTAC\": \"DC4004A800\",\n \"terminalFloorLimit\": 200000,\n \"transactionLimit\": 500000\n }\n ],\n \"file_issuer\": \"mosolo\",\n \"file_type\": \"AID\",\n \"file_version\": \"v2.1.5\"\n}"
response = http.request(request)
puts response.read_body{
"file_content": [
{
"aid": "A0000008851010",
"applicationLabel": "MOSOLO DEBIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 100000,
"transactionLimit": 250000
},
{
"aid": "A0000008852020",
"applicationLabel": "MOSOLO CREDIT",
"defaultTAC": "DC4000A800",
"denialTAC": "0010000000",
"onlineTAC": "DC4004A800",
"terminalFloorLimit": 200000,
"transactionLimit": 500000
}
],
"file_type": "AID",
"file_version": "v2.1.5"
}Authorizations
Admin API keys allow you to perform some privileged actions such as creating a merchant account and Merchant Connector account.
Body
application/json
Request body for uploading terminal file content
⌘I