xp_live_iyKgYbPo…
live
May 05, 2026
xp_test_4Qgc1KnT…
sandbox
May 05, 2026
xp_test_j2VyGwkY…
sandbox
May 05, 2026
# Step 1 — verify your key
curl https://x12port.com/api/v1/ping \
-H "Authorization: Bearer xp_test_YOUR_KEY"
# Step 2 — parse an X12 document
curl https://x12port.com/api/v1/parse \
-X POST \
-H "Authorization: Bearer xp_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"format": "x12",
"document": "ISA*00* *00* *ZZ*ACME *ZZ*PARTNER *260416*1200*^*00501*000000001*0*T*:~GS*PO*ACME*PARTNER*20260416*1200*1*X*005010~ST*850*0001~BEG*00*SA*PO-88241**20260416~SE*2*0001~GE*1*1~IEA*1*000000001~"
}'
# Step 3 — convert using a saved map ID
curl https://x12port.com/api/v1/convert \
-X POST \
-H "Authorization: Bearer xp_test_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"map_id": 1,
"document": "ISA*00*..."
}'
import requests
BASE = "https://x12port.com/api/v1"
HEADERS = {
"Authorization": "Bearer xp_test_YOUR_KEY",
"Content-Type": "application/json"
}
# Step 1 — verify key
r = requests.get(f"{BASE}/ping", headers=HEADERS)
print(r.json()) # {"ok": true, "environment": "sandbox", ...}
# Step 2 — parse a document
r = requests.post(f"{BASE}/parse", headers=HEADERS, json={
"format": "x12",
"document": "ISA*00*..."
})
fields = r.json()["fields"]
# Step 3 — convert using a saved map
r = requests.post(f"{BASE}/convert", headers=HEADERS, json={
"map_id": 1,
"document": "ISA*00*...",
"save_to_vault": True
})
print(r.json()["output"])
const BASE = 'https://x12port.com/api/v1';
const HEADERS = {
'Authorization': 'Bearer xp_test_YOUR_KEY',
'Content-Type': 'application/json'
};
// Step 1 — verify key
const ping = await fetch(`${BASE}/ping`, { headers: HEADERS });
console.log(await ping.json()); // { ok: true, environment: 'sandbox', ... }
// Step 2 — parse a document
const parse = await fetch(`${BASE}/parse`, {
method: 'POST', headers: HEADERS,
body: JSON.stringify({ format: 'x12', document: 'ISA*00*...' })
});
const { fields } = await parse.json();
// Step 3 — convert using a saved map
const convert = await fetch(`${BASE}/convert`, {
method: 'POST', headers: HEADERS,
body: JSON.stringify({ map_id: 1, document: 'ISA*00*...', save_to_vault: true })
});
console.log((await convert.json()).output);