Skip to main content

Code Samples

Code Samples

Complete request examples in multiple languages. Click the tabs to switch between cURL, Node.js, Python, and PHP.

Authentication
Include your API key as a Bearer token in the Authorization header.
curl -X GET "https://api.signaledi.com/v1/transactions" \
  -H "Authorization: Bearer sk_cert_YOUR_CERTIFICATION_KEY" \
  -H "Content-Type: application/json"
Send an Outbound Document
Send an outbound EDI document as JSON to the versioned developer API. Returns 202 with a document id.
curl -X POST "https://api.signaledi.com/v1/documents/outbound" \
  -H "Authorization: Bearer sk_cert_YOUR_CERTIFICATION_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: po-1001-attempt-1" \
  -d '{"partnerId":"your-partner-id","environment":"CERTIFICATION","documentTypeCode":"850","payload":{"purchaseOrderNumber":"PO-1001","lines":[{"sku":"SKU-1","quantity":1,"unitPrice":10}]}}'
Get Transaction Status
Retrieve a single transaction by ID.
curl -X GET "https://api.signaledi.com/v1/transactions/txn_abc123" \
  -H "Authorization: Bearer sk_cert_YOUR_CERTIFICATION_KEY"
Webhook Verification
Verify webhook signatures using HMAC-SHA256.
# SignalEDI signs the string "<X-SignalEDI-Timestamp>.<rawBody>" with HMAC-SHA256.
# The X-SignalEDI-Signature header is "sha256=<hex>". Verify with:
SIGNED="$TIMESTAMP.$BODY"
echo -n "$SIGNED" | openssl dgst -sha256 -hmac "whsec_YOUR_SECRET"

Still have questions?

Our support team typically responds within a few hours during business hours.

Contact support

© 2026 SignalEDI Inc. All rights reserved.