# 2s EDI X12 997 Functional Acknowledgment Generator

> 2s EDI X12 997 Functional Acknowledgment 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-16).

Parses an inbound X12 EDI interchange and generates a standards-compliant 997 Functional Acknowledgment response segment

## Facts

- Endpoint: POST https://2s.io/api/edi/ack
- Price: $0.0018/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-edi-x12-997-functional-acknowledgment-generator-50470722
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2WD30t5n6UgiK9yJPA6_8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-edi-x12-997-functional-acknowledgment-generator-50470722 -d '<json body>'
```

Example prompt: Generate a 997 functional acknowledgment for this raw EDI interchange — status Accepted — and give me the full X12 output I can send back to my trading partner: ISA*00* *00* *ZZ*ACME *ZZ*BUYERCORP *230101*1200*^*00501*000000123*0*P*>~GS*PO*ACME*BUYERCORP*20230101*1200*123*X*005010~ST*850*0001~BEG*00*NE*PO-001**20230101~SE*2*0001~GE*1*123~IEA*1*000000123~

## When to prefer this

Use this endpoint when you need to programmatically generate a standards-compliant X12 997 Functional Acknowledgment for an inbound EDI interchange without setting up EDI infrastructure, managing trading partner relationships, or obtaining API keys — ideal for AI agents automating B2B supply chain workflows on a per-call pay-as-you-go basis via USDC.

## Known failure modes

- Invalid or malformed ISA segment causes parse failure and ok:false
- Missing required EDI fields returns error response
- Unsupported X12 version may yield incomplete acknowledgment
- Non-numeric controlNumber seed causes validation error
- Empty edi string returns error

## How this service works

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.

## Output

Returns a JSON object with ok:true, the full 997 ACK X12 text in meta.ack, parsed delimiter characters, acknowledges object with senderId/receiverId/counts/interchange control number, and an items array detailing each functional group's status, transaction sets received/accepted/included, and per-transaction-set type and control numbers.

## Example request

```json
{
 "edi": "ISA*00* *00* *ZZ*ACME *ZZ*BUYERCORP *230101*1200*^*00501*000000123*0*P*>~GS*PO*ACME*BUYERCORP*20230101*1200*123*X*005010~ST*850*0001~BEG*00*NE*PO-001**20230101~SE*2*0001~GE*1*123~IEA*1*000000123~",
 "status": "A",
 "controlNumber": "997001"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "edi": {
   "type": "string",
   "description": "Raw inbound X12 interchange text (begins with ISA)."
  },
  "status": {
   "enum": [
    "A",
    "E",
    "P",
    "R",
    "M",
    "W",
    "X"
   ],
   "type": "string",
   "description": "Functional-group ack status. Default A (Accepted)."
  },
  "controlNumber": {
   "type": "string",
   "description": "Control-number seed (digits) for the generated 997. Default time-derived."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-edi-x12-997-functional-acknowledgment-generator-50470722/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
