AVLREQ Availability request (D12A)
This is the standard EDIFACT D12A spec, with 9 loops and 54 segment positions, as OpenEDI JSON, an ediFabric C# template and an ediFabric Native model. To change it for a trading partner, customize it in the EDI Spec Builder.
Use the AVLREQ spec in your code
ediFabric .NET
Add the C# template and its common files to your project, or reference the template NuGet package, and read AVLREQ files into TSAVLREQ objects. See ediFabric .NET.
ediFabric Native
Native supports X12 today, and EDIFACT is coming. When it's available, map version D12A to this Native model with set_map to parse AVLREQ files to JSON from Python, Java, C or C#. See ediFabric Native.
OpenEDI
Select Customize in Spec Builder to copy the spec under your own name, change it for your partner, and parse files against it in EdiNation, ediFabric Native or ediFabric Cloud. Read about OpenEDI.
Generate AVLREQ classes in Python, Java, Node.js, Go, Rust or C
The OpenEDI file describes each AVLREQ as JSON. To work with AVLREQ data as typed objects, generate classes from the OpenEDI file in your language; the root class is TSAVLREQ. The classes keep the loops, segments, lengths and code lists, but not the EDI data formats. Read more in Generate a class from OpenEDI.
Python: datamodel-code-generator. Node.js: openapi-typescript. Java, Go, Rust and C: OpenAPI Generator.
AVLREQ structure
Loops and segments of the standard AVLREQ, with their usage and maximum repeats.
| ID | Name | Usage | Max use |
|---|---|---|---|
| UIH | UIH | Mandatory | 1 |
| MSD | MSD | Optional | 1 |
| ORG | ORG | Optional | 1 |
| PDT | PDT | Optional | 1 |
| NUN | NUN | Optional | 1 |
| RPI | RPI | Optional | 1 |
| FTI | FTI | Optional | 1 |
| CRI | CRI | Optional | 1 |
| ITM | ITM | Optional | 1 |
| PLI | PLI | Optional | 1 |
| PMT | PMT | Optional | 1 |
| SDT | SDT | Optional | 1 |
| NME | NME | Optional | 1 |
| RTC | RTC | Optional | 1 |
| HDI | HDI | Optional | 1 |
| RCI | RCI | Optional | 1 |
| TDI | TDI | Optional | 1 |
| POS | POS | Optional | 1 |
| CON | CON | Optional | 1 |
| TFF | TFF | Optional | 9 |
| Loop SSR | SSR | Optional | 9 |
| SSR | SSR | Mandatory | 1 |
| IFT | IFT | Optional | 1 |
| CUR | CUR | Optional | 9 |
| RUL | RUL | Optional | 99 |
| ADS | ADS | Optional | 5 |
| Loop TVL | TVL | Optional | 99 |
| TVL | TVL | Mandatory | 1 |
| PRD | PRD | Optional | 1 |
| ITM | ITM | Optional | 1 |
| TFF | TFF | Optional | 1 |
| APD | APD | Optional | 1 |
| Loop NUN | NUN | Optional | 1 |
| NUN | NUN | Mandatory | 1 |
| CRI | CRI | Optional | 1 |
| Loop TIF | TIF | Optional | 999 |
| TIF | TIF | Mandatory | 1 |
| FTI | FTI | Optional | 99 |
| SSR | SSR | Optional | 9 |
| Loop RTI | RTI | Optional | 99 |
| RTI | RTI | Mandatory | 1 |
| RTC | RTC | Optional | 1 |
| Loop MOV | MOV | Optional | 2 |
| MOV | MOV | Mandatory | 1 |
| ADS | ADS | Optional | 1 |
| CON | CON | Optional | 1 |
| PLI | PLI | Optional | 1 |
| Loop ODI | ODI | Optional | 99 |
| ODI | ODI | Mandatory | 1 |
| MSD | MSD | Optional | 1 |
| PDT | PDT | Optional | 1 |
| Loop TVL | TVL | Optional | 99 |
| TVL | TVL | Mandatory | 1 |
| PDT | PDT | Optional | 1 |
| RPI | RPI | Optional | 1 |
| FTI | FTI | Optional | 1 |
| SSR | SSR | Optional | 1 |
| CNX | CNX | Optional | 1 |
| Loop TIF | TIF | Optional | 999 |
| TIF | TIF | Mandatory | 1 |
| FTI | FTI | Optional | 99 |
| SSR | SSR | Optional | 9 |
| UIT | UIT | Mandatory | 1 |