{"uid":"cap_DOxcPdKuynrCmGCUhwlU1","slug":"2s-edi-x12-parser-54438c59","name":"2s EDI X12 Parser","description":"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.","url":"https://2s.io/api/edi/parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"edi":{"type":"string","description":"Raw X12 interchange text (begins with ISA)."}}},"responseSchema":null,"example":{"request":{"edi":"ISA*00* *00* *ZZ*SENDER123 *ZZ*RECEIVER456 *240115*1200*^*00501*000000001*0*P*>~GS*PO*SENDER123*RECEIVER456*20240115*1200*1*X*005010~ST*850*0001~BEG*00*SA*PO-12345**20240115~PO1*1*5*EA*50.00**VP*PRODUCT-001~CTT*1~SE*4*0001~GE*1*1~IEA*1*000000001~"},"response":{"data":{"ok":true,"meta":{"delimiters":{"element":"*","segment":"~","component":">","repetition":"^"},"interchange":{"date":"2024-01-15","time":"12:00","usage":"Production","version":"00501","senderId":"SENDER123","receiverId":"RECEIVER456","ackRequested":false,"controlNumber":"000000001","senderQualifier":"ZZ","receiverQualifier":"ZZ"},"segmentCount":9,"transactionSetCount":1,"functionalGroupCount":1},"items":[{"type":"850","summary":{"poDate":"2024-01-15","parties":[],"purpose":"Original","poNumber":"PO-12345","lineItems":[{"uom":"EA","line":"1","quantity":"5","productId":"PRODUCT-001","unitPrice":"50.00","idQualifier":"VP"}],"documentType":"Purchase Order","lineItemCount":1,"requestedDeliveryDate":null},"segments":[{"tag":"ST","name":"Transaction Set Header","elements":["850","0001"]},{"tag":"BEG","name":"Beginning Segment for Purchase Order","elements":["00","SA","PO-12345","","20240115"]},{"tag":"PO1","name":"Purchase Order Baseline Item","elements":["1","5","EA","50.00","","VP","PRODUCT-001"]},{"tag":"CTT","name":"Transaction Totals","elements":["1"]},{"tag":"SE","name":"Transaction Set Trailer","elements":["4","0001"]}],"typeName":"Purchase Order","segmentCount":5,"controlNumber":"0001","functionalCode":"PO","functionalName":"Purchase Order (850)"}],"total":1,"source":{"url":"https://2s.io/edi/parse","license":"Computed by 2s.io. X12 is an ASC X12 standard; this is an independent parser.","provider":"2s.io X12 EDI parser"}},"meta":{"cost":{"usd":0.0018,"tier":0},"caller":"x402","version":null,"endpoint":"edi.parse","settlement":{"txHash":"0x59f6ea9de5fe25ae40e03b45d4d76ff1dee2aa3a4ae019be05114cb237bd9562","network":"eip155:8453","success":true}}}},"exampleRequest":{"edi":"ISA*00* *00* *ZZ*SENDER123 *ZZ*RECEIVER456 *240115*1200*^*00501*000000001*0*P*>~GS*PO*SENDER123*RECEIVER456*20240115*1200*1*X*005010~ST*850*0001~BEG*00*SA*PO-12345**20240115~PO1*1*5*EA*50.00**VP*PRODUCT-001~CTT*1~SE*4*0001~GE*1*1~IEA*1*000000001~"},"tags":["x402"],"displayCostAmount":"0.0018","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.0018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0045","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_a-k-TLlUAkR6dWjFfnQqa","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0045","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses raw X12 EDI interchange text and returns structured JSON with transaction sets, segments, delimiters, and document summaries","exampleAgentPrompt":"Can you parse this raw X12 EDI interchange for me and tell me what transaction type it is, who the sender and receiver are, and break out the individual segments? Here's the data: ISA*00* *00* *ZZ*ACME *ZZ*BUYERCORP *240115*1200*^*00501*000000001*0*P*>~GS*PO*ACME*BUYERCORP*20240115*1200*1*X*005010~ST*850*0001~BEG*00*SA*PO-99012**20240115~PO1*1*10*EA*25.00**VP*WIDGET-A~CTT*1~SE*4*0001~GE*1*1~IEA*1*000000001~","exampleUseCases":null,"resultDescription":"Returns a JSON object with ok:true, interchange metadata (sender ID, receiver ID, usage mode), delimiter characters, segment count, functional group count, and an items array where each entry contains the transaction set type (e.g. '850'), a human-readable typeName, a summary with PO number/date/line item count, an array of decoded segments with tag names and element values, and control numbers. Total transaction count is also included.","failureModes":["Invalid or malformed EDI text that doesn't begin with ISA returns an error","Missing required ISA segment structure causes parse failure","Unsupported X12 transaction set types may parse segments but lack rich summary fields","Empty edi field or non-string input returns validation error","Payment failure (402) if USDC balance insufficient"],"whenToPreferThis":"Use this endpoint when you have raw X12 EDI text (beginning with ISA) that you need to decode into structured JSON — especially for 850 purchase orders, 810 invoices, or other X12 transaction sets in B2B supply chain workflows. Prefer this over manual parsing or custom EDI libraries when you need fast, pay-per-call parsing without setup, API keys, or subscription overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:07:27.246Z","isFirstParty":false}