2s EDIFACT Parser is a paid API for AI agents from 2s.io, paid per call via x402, $0.0018/call, status unknown (last checked 2026-10-10).
Parses raw UN/EDIFACT interchange text into structured JSON, extracting messages, segments, parties, and document metadata
The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.
Returns a JSON object with ok:true, interchange metadata (sender/recipient IDs, date, test indicator, delimiter characters, message count, segment count), and an items array where each message includes its type (e.g. ORDERS), agency, version, release, reference, segment count, a structured summary (parties with roles, order number, document date, document type, line item count), and a full segments array with tag, name, and element values for each segment.
POSThttps://2s.io/api/edi/edifact?utm_source=zero.xyzUse this endpoint when you have raw UN/EDIFACT text (common in B2B supply chain, logistics, and international trade integrations) and need to extract structured data from it without building a custom EDIFACT parser. Ideal for agents processing purchase orders, invoices, despatch advice, or other EDIFACT message types received from trading partners. Pay-per-call with no API key required makes it suitable for low-volume or ad-hoc parsing tasks.
{
"edi": "UNA:+.? 'UNB+UNOA:1+SUPPLIER123+BUYER456+240115:1200+DOC001'UNH+1+INVOIC:D:96A:UN'BGM+380+INV-2024-001+9'DTM+137:20240115:102'NAD+BY+BUYER456::92++BUYER COMPANY'NAD+SU+SUPPLIER123::92++SUPPLIER COMPANY'LIN+1++ITEM-001:SA'QTY+21:100'UNT+9+1'UNZ+1+DOC001'"
}| Field | Type | Description |
|---|---|---|
| edi | string | Raw UN/EDIFACT interchange text (optional UNA, then UNB/UNH…). |
{
"data": {
"ok": true,
"meta": {
"delimiters": {
"decimal": ".",
"element": "+",
"release": "?",
"segment": "'",
"component": ":",
"unaPresent": true
},
"interchange": {
"date": "2024-01-15",
"time": "12:00",
"senderId": "SUPPLIER123",
"syntaxId": "UNOA",
"controlRef": "DOC001",
"recipientId": "BUYER456",
"syntaxVersion": "1",
"testIndicator": false,
"applicationRef": null,
"senderQualifier": null,
"recipientQualifier": null
},
"messageCount": 1,
"segmentCount": 10
},
"items": [
{
"type": "INVOIC",
"agency": "UN",
"release": "96A",
"summary": {
"parties": [
{
"id": "BUYER456",
"name": "BUYER COMPANY",
"role": "BY",
"roleName": "Buyer"
},
{
"id": "SUPPLIER123",
"name": "SUPPLIER COMPANY",
"role": "SU",
"roleName": "Supplier"
}
],
"currency": null,
"invoiceDate": "2024-01-15",
"totalAmount": null,
"documentType": "Invoice",
"invoiceNumber": "INV-2024-001",
"lineItemCount": 1
},
"version": "D",
"segments": [
{
"tag": "UNH",
"name": "Message Header",
"elements": [
"1",
[
"INVOIC",
"D",
"96A",
"UN"
]
]
},
{
"tag": "BGM",
"name": "Beginning of Message",
"elements": [
"380",
"INV-2024-001",
"9"
]
},
{
"tag": "DTM",
"name": "Date/Time/Period",
"elements": [
[
"137",
"20240115",
"102"
]
]
},
{
"tag": "NAD",
"name": "Name and Address",
"elements": [
"BY",
[
"BUYER456",
"",
"92"
],
"",
"BUYER COMPANY"
]
},
{
"tag": "NAD",
"name": "Name and Address",
"elements": [
"SU",
[
"SUPPLIER123",
"",
"92"
],
"",
"SUPPLIER COMPANY"
]
},
{
"tag": "LIN",
"name": "Line Item",
"elements": [
"1",
"",
[
"ITEM-001",
"SA"
]
]
},
{
"tag": "QTY",
"name": "Quantity",
"elements": [
[
"21",
"100"
]
]
},
{
"tag": "UNT",
"name": "Message Trailer",
"elements": [
"9",
"1"
]
}
],
"typeName": "Invoice",
"reference": "1",
"segmentCount": 8
}
],
"total": 1,
"source": {
"url": "https://2s.io/edi/edifact",
"license": "Computed by 2s.io. UN/EDIFACT is a UN standard; this is an independent parser.",
"provider": "2s.io UN/EDIFACT parser"
}
},
"meta": {
"cost": {
"usd": 0.0018,
"tier": 0
},
"caller": "x402",
"version": null,
"endpoint": "edi.edifact",
"settlement": {
"txHash": "0x7929d2a72e6fd5a28194d82d60c80c5cbe7d454f900dd6b868c5629dc013422e",
"network": "eip155:8453",
"success": true
}
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"