File Definition Rules
Submit an EDI specification PDF (X12 or EDIFACT) and receive parsing and/or generation File Definition Rules JSON, generated asynchronously. Submit endpoints return a requestId immediately (202); poll the matching GET endpoint until the job reaches completed or failed. Job records expire 24 hours after submission. Submissions are rate-limited per caller (10 per hour, with an administrator bypass); the document-types catalog allows 100 per hour and 10 per 60 seconds. The API only produces rules — it persists nothing. The Ora agent in integrator.io drives these endpoints for interactive onboarding; call them directly to script partner onboarding in bulk.
File definition rules schemas
Submits an async job that produces both parsing and generation FDR artifacts from the supplied EDI specification PDF. Returns a requestId immediately; poll GET /v1/filedefinitionrules/generate/{requestId} for status and results. Rate-limited to 10 submissions per caller per hour (administrators bypass the limit).
Base64-encoded EDI specification PDF. Must decode to a text-bearing
PDF — scanned/image-only documents fail the job with
PDF_EXTRACTION_FAILED. Encoded payloads over 50 MB are rejected
with 413 PAYLOAD_TOO_LARGE.
X12 transaction set number (e.g. 850), or 0 to auto-detect an
EDIFACT specification from the PDF contents. Values outside the
supported set fail with 400 INVALID_DOCUMENT_TYPE; discover the
supported set via GET /v1/filedefinitionrules/document-types.
850Job accepted.
Invalid documentType or request body failed validation.
Missing Authorization header or scheme is not Bearer JWT.
Token is invalid or expired, or the caller lacks permission or a valid AShare.
Encoded pdf exceeds the 50 MB limit.
pdf is not valid base64 or decoded bytes do not start with %PDF.
Caller exceeded the endpoint's rate limit.
Unexpected FDR service failure.
Job store or PDF storage is unavailable.
POST /v1/filedefinitionrules/generate HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"pdf": "<base64-encoded PDF>",
"documentType": 850
}{
"fileDefinitionGenerationJob": {
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}
}Returns the job's current state. When status is completed, result carries parsingFdr and generationFdr; when failed, error carries the code and message. Non-administrators can only poll their own jobs. Job records expire after 24 hours (404 REQUEST_NOT_FOUND).
Request id returned by the submit endpoint.
550e8400-e29b-41d4-a716-446655440000Current job state.
Missing Authorization header or scheme is not Bearer JWT.
Token is invalid or expired, or the caller lacks permission or a valid AShare.
Job id is unknown, belongs to the other operation, is not visible to the caller, or expired after 24 hours.
Unexpected FDR service failure.
GET /v1/filedefinitionrules/generate/{requestId} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"fileDefinitionGenerationJob": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"createdAt": "2026-06-24T10:30:00Z",
"startedAt": "2026-06-24T10:30:05Z",
"completedAt": "2026-06-24T10:31:45Z",
"result": {
"parsingFdr": {},
"generationFdr": {}
}
}
}Submits an async job that produces a parsing FDR only (no generation artifact) from the supplied EDI specification PDF. Returns a requestId immediately; poll GET /v1/filedefinitionrules/parse/{requestId} for status and results. Rate-limited to 10 submissions per caller per hour (administrators bypass the limit).
Base64-encoded EDI specification PDF. Must decode to a text-bearing
PDF — scanned/image-only documents fail the job with
PDF_EXTRACTION_FAILED. Encoded payloads over 50 MB are rejected
with 413 PAYLOAD_TOO_LARGE.
X12 transaction set number (e.g. 850), or 0 to auto-detect an
EDIFACT specification from the PDF contents. Values outside the
supported set fail with 400 INVALID_DOCUMENT_TYPE; discover the
supported set via GET /v1/filedefinitionrules/document-types.
850Job accepted.
Invalid documentType or request body failed validation.
Missing Authorization header or scheme is not Bearer JWT.
Token is invalid or expired, or the caller lacks permission or a valid AShare.
Encoded pdf exceeds the 50 MB limit.
pdf is not valid base64 or decoded bytes do not start with %PDF.
Caller exceeded the endpoint's rate limit.
Unexpected FDR service failure.
Job store or PDF storage is unavailable.
POST /v1/filedefinitionrules/parse HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"pdf": "<base64-encoded PDF>",
"documentType": 850
}{
"fileDefinitionParsingJob": {
"requestId": "550e8400-e29b-41d4-a716-446655440000"
}
}Returns the job's current state. When status is completed, result carries parsingFdr only; when failed, error carries the code and message. Non-administrators can only poll their own jobs. Job records expire after 24 hours (404 REQUEST_NOT_FOUND).
Request id returned by the submit endpoint.
550e8400-e29b-41d4-a716-446655440000Current job state.
Missing Authorization header or scheme is not Bearer JWT.
Token is invalid or expired, or the caller lacks permission or a valid AShare.
Job id is unknown, belongs to the other operation, is not visible to the caller, or expired after 24 hours.
Unexpected FDR service failure.
GET /v1/filedefinitionrules/parse/{requestId} HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"fileDefinitionParsingJob": {
"requestId": "550e8400-e29b-41d4-a716-446655440000",
"status": "completed",
"createdAt": "2026-06-24T10:30:00Z",
"completedAt": "2026-06-24T10:31:45Z",
"result": {
"parsingFdr": {}
}
}
}Returns the X12 transaction set numbers the generator supports (24 sets as of v1.2.0) and whether EDIFACT auto-detection is available (documentType: 0). Rate-limited to 100 requests per hour and 10 per 60 seconds per caller.
Supported document types.
Missing Authorization header or scheme is not Bearer JWT.
Token is invalid or expired, or the caller lacks permission or a valid AShare.
Caller exceeded the endpoint's rate limit.
Unexpected FDR service failure.
GET /v1/filedefinitionrules/document-types HTTP/1.1
Host: api.integrator.io
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"fileDefinitionDocumentTypes": {
"supportedTypes": [
180,
204,
210,
214,
810,
812,
820,
824,
832,
835,
846,
850,
852,
855,
856,
860,
864,
870,
875,
880,
940,
943,
944,
945
],
"edifactSupported": true
}
}Last updated
Was this helpful?