2s EDI Document Generator is a paid API for AI agents from 2s.io, paid per call via x402, $0.0018/call, status unknown (last checked 2026-09-13).
Generates ASC X12 EDI documents (Purchase Orders 850 or Invoices 810) from structured JSON input
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, a meta object containing the full EDI X12 string (ISA through IEA segments), segment count, and control number, plus an items array summarizing the document type, line item count, and document number. Also includes source/license metadata.
POSThttps://2s.io/api/edi/generateUse this endpoint when you need to programmatically generate standards-compliant ASC X12 EDI 850 Purchase Orders or 810 Invoices on demand without setting up a full EDI platform, trading partner agreement, or VAN. Ideal for AI agents automating supply chain workflows, B2B order fulfillment, or invoicing with trading partners that require EDI.
{
"date": "20240115",
"type": "850",
"items": [
{
"uom": "EA",
"price": 12.5,
"quantity": 50,
"productId": "WIDGET-X"
}
],
"parties": [
{
"name": "Acme Distribution",
"role": "BY"
},
{
"name": "Supplier Corp",
"role": "SU"
}
],
"senderId": "MYCOMPANY",
"receiverId": "SUPPLIER01",
"documentNumber": "PO-2024-001"
}| Field | Type | Description |
|---|---|---|
| date | string | Document date YYYYMMDD (default today). |
| type | string | 850 = Purchase Order, 810 = Invoice, 856 = Ship Notice/ASN. |
| items | array | Line items (quantity, uom, price, productId). |
| total | number | For 810: invoice total (USD). |
| parties | array | N1 party loops (role + name). |
| poNumber | string | For 810: the PO being invoiced. |
| senderId | string | Sender interchange id. |
| receiverId | string | Receiver interchange id. |
| documentNumber | string | PO number (850) or invoice number (810). |
{
"data": {
"ok": true,
"meta": {
"edi": "ISA*00* *00* *ZZ*MYCOMPANY *ZZ*SUPPLIER01 *240115*2139*U*00401*732373109*0*P*>~GS*PO*MYCOMPANY*SUPPLIER01*20240115*2139*732373109*X*004010~ST*850*0001~BEG*00*SA*PO-2024-001**20240115~N1*BY*Acme Distribution~N1*SU*Supplier Corp~PO1*1*50*EA*12.5**VP*WIDGET-X~CTT*1~SE*7*0001~GE*1*732373109~IEA*1*732373109~",
"segmentCount": 11,
"controlNumber": "732373109"
},
"items": [
{
"type": "850",
"lineItems": 1,
"documentNumber": "PO-2024-001"
}
],
"total": 1,
"source": {
"url": "https://2s.io/edi/generate",
"license": "Computed by 2s.io. X12 is an ASC X12 standard; this is an independent generator.",
"provider": "2s.io X12 EDI generator"
}
},
"meta": {
"cost": {
"usd": 0.0018,
"tier": 0
},
"caller": "x402",
"version": null,
"endpoint": "edi.generate",
"settlement": {
"txHash": "0xf9580b1d77fc590f829bb94fde52f69034b6e740db994ef2096179238ad1527a",
"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"