# Validate a D01B ORDERS transaction

**Use case:** 

Validate a safe synthetic EDIFACT order, inspect stable quality evidence, and generate a deterministic CONTRL acknowledgement.

## Input

```json
{
  "interchanges": [
    {
      "sourceId": "synthetic-order-1001",
      "content": "UNB+UNOC:3+SYNTHETIC-SENDER:14+SYNTHETIC-RECEIVER:14+260916:1200+SYNTH-1'UNH+1+ORDERS:D:01B:UN'BGM+220+PO-1001+9'DTM+137:20260916:102'NAD+BY+SYNTHETIC-BUYER::9'LIN+1++SYNTHETIC-SKU:EN'QTY+21:5'UNT+7+1'UNZ+1+SYNTH-1'"
    }
  ],
  "directory": "D01B",
  "mode": "strict",
  "generateContrl": true,
  "partnerRules": [],
  "maxInterchangeBytes": 2000000,
  "maxSegmentsPerInterchange": 20000,
  "maxMessagesPerInterchange": 1000
}
```

## Output

```json
{
  "recordType": {
    "label": "Record type"
  },
  "sourceId": {
    "label": "Source id"
  },
  "status": {
    "label": "Status"
  },
  "interchangeReference": {
    "label": "Interchange reference"
  },
  "messageReference": {
    "label": "Message reference"
  },
  "messageType": {
    "label": "Message type"
  },
  "directory": {
    "label": "Directory"
  },
  "documentNumber": {
    "label": "Document number"
  },
  "segmentCount": {
    "label": "Segment count"
  },
  "findingCode": {
    "label": "Finding code"
  },
  "severity": {
    "label": "Severity"
  },
  "segmentTag": {
    "label": "Segment tag"
  },
  "segmentIndex": {
    "label": "Segment index"
  },
  "message": {
    "label": "Message"
  },
  "fingerprint": {
    "label": "Fingerprint"
  },
  "errorCode": {
    "label": "Error code"
  }
}
```

## About this Actor

This example demonstrates how to use [UN/EDIFACT Transaction Quality Gate](https://apify.com/ceddl/unedifact-transaction-quality-gate.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/ceddl/unedifact-transaction-quality-gate.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/ceddl/unedifact-transaction-quality-gate.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
