Skip to main content

EDI API SDKs and code examples

Send an EDI 850 purchase order with cURL, Node.js, Python, or Go — same POST /api/v1/documents/outbound contract across every language.
cURLNode.jsPythonGo

Why teams evaluate SignalEDI

HIPAA-compliant workflowsAudit trailsSOC 2Published SLA

Illustrative example based on representative SignalEDI usage — not a named customer endorsement.

Definition

SignalEDI
SignalEDI is an AI-first EDI and API integration platform for small and mid-sized businesses that need fast, simple, affordable partner-mandate connectivity. This SDKs page collects language examples for SignalEDI’s EDI API so engineering teams can call outbound document endpoints without inventing request shapes.

Key takeaways

  • Language examples for calling SignalEDI’s EDI API with real request shapes.
  • Each sample pairs with the quickstart and full API reference.
  • Pick a language, copy the sample, then validate outbound traffic in trial.

cURL

Fastest way to test your API key and payload shape from any terminal.

curl -X POST https://signaledi.com/api/v1/documents/outbound \
  -H "Authorization: Bearer $SIGNALEDI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "partnerId": "your-partner-id",
  "documentTypeCode": "850",
  "payload": {
    "purchaseOrderNumber": "PO-1042",
    "shipTo": {
      "id": "DC-01",
      "name": "RetailMart DC 01"
    },
    "lines": [
      {
        "lineNumber": 1,
        "sku": "SKU-100",
        "quantity": 24,
        "unitPrice": 12.5
      }
    ]
  }
}'

Node.js

Use fetch or your HTTP client in serverless functions, Express, or Next.js routes.

const res = await fetch("https://signaledi.com/api/v1/documents/outbound", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SIGNALEDI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    partnerId: "your-partner-id",
    documentTypeCode: "850",
    payload: {
      purchaseOrderNumber: "PO-1042",
      shipTo: { id: "DC-01", name: "RetailMart DC 01" },
      lines: [{ lineNumber: 1, sku: "SKU-100", quantity: 24, unitPrice: 12.5 }],
    },
  }),
});
const data = await res.json(); // { ok: true, data: { documentId, status: "queued" } }

Python

Works with requests, httpx, or any HTTP library — ideal for data pipelines and Django/FastAPI backends.

import os
import requests

r = requests.post(
    "https://signaledi.com/api/v1/documents/outbound",
    headers={"Authorization": f"Bearer {os.environ['SIGNALEDI_API_KEY']}"},
    json={
        "partnerId": "your-partner-id",
        "documentTypeCode": "850",
        "payload": {
            "purchaseOrderNumber": "PO-1042",
            "shipTo": {"id": "DC-01", "name": "RetailMart DC 01"},
            "lines": [{"lineNumber": 1, "sku": "SKU-100", "quantity": 24, "unitPrice": 12.5}],
        },
    },
)
print(r.json())

Go

Standard library net/http — compile a small binary for high-throughput outbound workers.

package main

import (
  "net/http"
  "os"
  "strings"
)

func main() {
  body := strings.NewReader(`{"partnerId":"your-partner-id","documentTypeCode":"850","payload":{"purchaseOrderNumber":"PO-1042"}}`)
  req, _ := http.NewRequest("POST", "https://signaledi.com/api/v1/documents/outbound", body)
  req.Header.Set("Authorization", "Bearer "+os.Getenv("SIGNALEDI_API_KEY"))
  req.Header.Set("Content-Type", "application/json")
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
}

SDKs FAQ

Is there an official npm or PyPI package?

Use the REST API directly with your HTTP client today. The @signaledi/sdk package mirrors /api/v1 endpoints — see the API reference for installation.

What auth header do all examples use?

Authorization: Bearer with your SIGNALEDI_API_KEY environment variable.

Which document type do the samples send?

All samples POST an 850 purchase order to /api/v1/documents/outbound — swap documentTypeCode and payload for 856, 810, or other types.

Copy a sample, then go live in trial

Open the quickstart for the end-to-end path, or the API reference for every endpoint.

© 2026 SignalEDI Inc. All rights reserved.