← 返回
AI智能 中文

Edi Parser

Parse EDI X12 files (810 Invoice, 850 Purchase Order, 856 ASN). Extract structured data from ISA/GS envelopes, transaction sets, and segments. Use when worki...
解析EDI X12文件(810发票、850采购订单、856发货通知),从ISA/GS信封、交易集和段中提取结构化数据。
npfaerber
AI智能 clawhub v1.0.1 1 版本 99824.9 Key: 无需
★ 0
Stars
📥 570
下载
💾 29
安装
1
版本
#edi#latest#supply-chain#walmart#x12

概述

EDI X12 Parser

Parse and extract structured data from EDI X12 transaction sets.

Supported Transaction Sets

  • 810 -- Invoice
  • 850 -- Purchase Order
  • 856 -- Advance Ship Notice (ASN)

Parsing Approach

EDI files use ~ as segment terminator, * as element separator, and > or : as sub-element separator (check ISA-16).

Envelope Structure

ISA*QQ*SenderID*RR*ReceiverID*Date*Time*:*Version*Control#*AckReq*Mode*SubSep~
  GS*FuncCode*SenderCode*ReceiverCode*Date*Time*GroupControl*Standard*Version~
    ST*TransactionSet*Control#~
      ... segments ...
    SE*SegmentCount*Control#~
  GE*TransactionCount*GroupControl~
IEA*GroupCount*InterchangeControl~

Key ISA Fields (1-indexed)

  • ISA-05: Sender qualifier (12=UCS, ZZ=mutually defined, 08=UCC)
  • ISA-06: Sender ID (left-padded to 15 chars)
  • ISA-07: Receiver qualifier
  • ISA-08: Receiver ID

850 Purchase Order

SegmentKey Fields
--------------------
BEGBEG-03=PO Number, BEG-05=PO Date
DTMDTM-01=Qualifier (002=Delivery, 010=Requested Ship), DTM-02=Date
N1N1-01=Entity (ST=Ship-To, BY=Buyer, SF=Ship-From), N1-02=Name
PO1PO1-02=Qty, PO1-04=Unit Price, PO1-07=UPC/SKU
PIDPID-05=Description

810 Invoice

SegmentKey Fields
--------------------
BIGBIG-01=Invoice Date, BIG-02=Invoice#, BIG-04=PO#
REFREF-01=Qualifier (IA=Vendor#, BM=BOL#), REF-02=Value
N1N1-01=Entity (ST=Ship-To, RE=Remit-To)
IT1IT1-02=Qty, IT1-04=Unit Price, IT1-07=UPC
TDSTDS-01=Total invoice amount (cents, divide by 100)

856 ASN

SegmentKey Fields
--------------------
BSNBSN-02=Shipment ID, BSN-03=Date
HLHL-03=Level (S=Shipment, O=Order, P=Pack, I=Item)
REFREF-01=Qualifier (BM=BOL, IA=Vendor#, LO=Load#, AO=Appointment)
PRFPRF-01=PO Number
MANMAN-02=SSCC-18 barcode
LINLIN-03=UPC
SN1SN1-02=Qty Shipped, SN1-03=UOM

Walmart-Specific Notes

  • Walmart ISA receiver: qualifier 08, ID 925485US00
  • REF*IA = Walmart vendor number (required on 856)
  • REF*LO = Load number (new requirement)
  • N1*ST with UL qualifier = GLN for ship-to location
  • MAN*GM = SSCC-18 (required per pallet on 856)

Output Format

When parsing, output a clean table:

| Field | Value |
|-------|-------|
| Transaction | 856 ASN |
| ISA Sender | 12 / 1234567890 |
| ISA Receiver | 08 / 925485US00 |
| PO# | 0123456789 |
| Ship Date | 2026-02-16 |
| Items | 16 line items |

For bulk parsing, output CSV with one row per line item.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 04:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,772
ai-intelligence

Proactive Agent

halthelobster
将AI智能体从任务执行者升级为主动预判需求、持续优化的智能伙伴。集成WAL协议、工作缓冲区、自主定时任务及实战验证模式。Hal Stack核心组件 🦞
★ 836 📥 213,073
security-compliance

Node.js Security Audit

npfaerber
审计 Node.js HTTP 服务器和 Web 应用安全漏洞,检查 OWASP Top 10、CORS、身份验证绕过、XSS、路径遍历、硬编码密钥、缺失...
★ 0 📥 1,151