Generate
curl --request POST \
--url https://api.iso8583sim.com/generate \
--header 'Content-Type: application/json' \
--data '
{
"amount_minor_units": 1000,
"currency": "840",
"description": "<string>",
"message_type": "auth",
"model": "<string>",
"pan": "<string>",
"provider": "<string>",
"stan": "123456"
}
'import requests
url = "https://api.iso8583sim.com/generate"
payload = {
"amount_minor_units": 1000,
"currency": "840",
"description": "<string>",
"message_type": "auth",
"model": "<string>",
"pan": "<string>",
"provider": "<string>",
"stan": "123456"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
amount_minor_units: 1000,
currency: '840',
description: '<string>',
message_type: 'auth',
model: '<string>',
pan: '<string>',
provider: '<string>',
stan: '123456'
})
};
fetch('https://api.iso8583sim.com/generate', 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.iso8583sim.com/generate",
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([
'amount_minor_units' => 1000,
'currency' => '840',
'description' => '<string>',
'message_type' => 'auth',
'model' => '<string>',
'pan' => '<string>',
'provider' => '<string>',
'stan' => '123456'
]),
CURLOPT_HTTPHEADER => [
"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.iso8583sim.com/generate"
payload := strings.NewReader("{\n \"amount_minor_units\": 1000,\n \"currency\": \"840\",\n \"description\": \"<string>\",\n \"message_type\": \"auth\",\n \"model\": \"<string>\",\n \"pan\": \"<string>\",\n \"provider\": \"<string>\",\n \"stan\": \"123456\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.iso8583sim.com/generate")
.header("Content-Type", "application/json")
.body("{\n \"amount_minor_units\": 1000,\n \"currency\": \"840\",\n \"description\": \"<string>\",\n \"message_type\": \"auth\",\n \"model\": \"<string>\",\n \"pan\": \"<string>\",\n \"provider\": \"<string>\",\n \"stan\": \"123456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iso8583sim.com/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount_minor_units\": 1000,\n \"currency\": \"840\",\n \"description\": \"<string>\",\n \"message_type\": \"auth\",\n \"model\": \"<string>\",\n \"pan\": \"<string>\",\n \"provider\": \"<string>\",\n \"stan\": \"123456\"\n}"
response = http.request(request)
puts response.read_body{
"fields": [
{
"name": "<string>",
"number": 123,
"value": "<string>"
}
],
"message": "<string>",
"mti": "<string>",
"network": "VISA",
"source": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Messages
Generate
Generate a valid test message from options, or from a description with an LLM.
POST
/
generate
Generate
curl --request POST \
--url https://api.iso8583sim.com/generate \
--header 'Content-Type: application/json' \
--data '
{
"amount_minor_units": 1000,
"currency": "840",
"description": "<string>",
"message_type": "auth",
"model": "<string>",
"pan": "<string>",
"provider": "<string>",
"stan": "123456"
}
'import requests
url = "https://api.iso8583sim.com/generate"
payload = {
"amount_minor_units": 1000,
"currency": "840",
"description": "<string>",
"message_type": "auth",
"model": "<string>",
"pan": "<string>",
"provider": "<string>",
"stan": "123456"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
amount_minor_units: 1000,
currency: '840',
description: '<string>',
message_type: 'auth',
model: '<string>',
pan: '<string>',
provider: '<string>',
stan: '123456'
})
};
fetch('https://api.iso8583sim.com/generate', 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.iso8583sim.com/generate",
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([
'amount_minor_units' => 1000,
'currency' => '840',
'description' => '<string>',
'message_type' => 'auth',
'model' => '<string>',
'pan' => '<string>',
'provider' => '<string>',
'stan' => '123456'
]),
CURLOPT_HTTPHEADER => [
"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.iso8583sim.com/generate"
payload := strings.NewReader("{\n \"amount_minor_units\": 1000,\n \"currency\": \"840\",\n \"description\": \"<string>\",\n \"message_type\": \"auth\",\n \"model\": \"<string>\",\n \"pan\": \"<string>\",\n \"provider\": \"<string>\",\n \"stan\": \"123456\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.iso8583sim.com/generate")
.header("Content-Type", "application/json")
.body("{\n \"amount_minor_units\": 1000,\n \"currency\": \"840\",\n \"description\": \"<string>\",\n \"message_type\": \"auth\",\n \"model\": \"<string>\",\n \"pan\": \"<string>\",\n \"provider\": \"<string>\",\n \"stan\": \"123456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iso8583sim.com/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"amount_minor_units\": 1000,\n \"currency\": \"840\",\n \"description\": \"<string>\",\n \"message_type\": \"auth\",\n \"model\": \"<string>\",\n \"pan\": \"<string>\",\n \"provider\": \"<string>\",\n \"stan\": \"123456\"\n}"
response = http.request(request)
puts response.read_body{
"fields": [
{
"name": "<string>",
"number": 123,
"value": "<string>"
}
],
"message": "<string>",
"mti": "<string>",
"network": "VISA",
"source": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Body
application/json
Required range:
0 <= x <= 999999999999Pattern:
^\d{3}$Describe the message in plain English and let an LLM build it. Overrides the other fields.
Maximum string length:
2000Available options:
auth, financial, echo Card network identifiers
Available options:
VISA, MASTERCARD, AMEX, DISCOVER, JCB, UNIONPAY Pattern:
^\d{12,19}$Pattern:
^\d{6}$