EDIBridge Transform

Home / Docs / JSON → CSV

JSON → CSV live

Emit the v1 CSV header contract from canonical purchase-order JSON.

Endpoint

POST /v1/transform?from=json&to=csv

curl (copy-paste)

# Use the JSON body returned by csv→json (canonical Purchase Order shape).
curl -sS -X POST 'https://transform.edibridge.com/v1/transform?from=json&to=csv' \
  -H 'content-type: application/json' \
  -d '{
    "poNumber": "DEMO001",
    "poDate": "20260701",
    "parties": [
      {
        "entityCode": "ST",
        "name": "Demo Store",
        "address1": "100 Main St",
        "city": "Austin",
        "state": "TX",
        "zip": "78701"
      }
    ],
    "lineItems": [
      {
        "lineNumber": "1",
        "quantityOrdered": 12,
        "unitOfMeasure": "EA",
        "unitPrice": 9.99,
        "upc": "012345678901",
        "description": "Demo Widget"
      }
    ]
  }'

Expect 200 text/csv with the 12-column v1 header row.

Expected JSON shape

Canonical Purchase Order (cm.v1). Required: poNumber, poDate, parties, lineItems.

Easiest path: run csv→json first, then pipe the body into this call.

← All docs · Check live directions