curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/edi/outbound/940/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"carrier_scac": "string",
"items": [
{
"description": "Two-person tent, green — replacement for damaged pole set.",
"quantity": "2",
"sku": "SKU-TENT-2P-GRN",
"sku_qualifier": "string",
"uom": "string"
}
],
"order_number": "ORD-10042",
"po_number": "ORD-10042",
"requested_ship_date": "2026-08-31",
"ship_to": {
"address_lines": [
"548 Market St"
],
"city": "San Francisco",
"country": "US",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id_qualifier": "string",
"name": "Two-Person Tent",
"postal_code": "94107",
"role": "string",
"state": "CA"
}
}'
940
Wire-ready X12 940 interchange
POST
/
v1
/
edi
/
outbound
/
940
/
{partner_id}
curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/edi/outbound/940/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"carrier_scac": "string",
"items": [
{
"description": "Two-person tent, green — replacement for damaged pole set.",
"quantity": "2",
"sku": "SKU-TENT-2P-GRN",
"sku_qualifier": "string",
"uom": "string"
}
],
"order_number": "ORD-10042",
"po_number": "ORD-10042",
"requested_ship_date": "2026-08-31",
"ship_to": {
"address_lines": [
"548 Market St"
],
"city": "San Francisco",
"country": "US",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id_qualifier": "string",
"name": "Two-Person Tent",
"postal_code": "94107",
"role": "string",
"state": "CA"
}
}'
Path parameters
string
required
Partner ID
Headers
string,null
Stable unique request key (1–128 ASCII letters/digits or -_.:). Requires Postgres. Retries return the original EDI bytes; changed JSON payload returns 409.
Request body
Ship940
string,null
W6603 — carrier SCAC for routing.
ShipItem[]
required
string
required
W0502 — depositor (our) order number.
string,null
W0503 — the customer PO this order fulfills, when there is one.
string,null (date)
G62*10 — requested ship date.
Party,null
An N1 party loop (N1/N2/N3/N4).
Response
No response body. Wire-ready X12 940 interchange.Status codes
| Code | Meaning |
|---|---|
200 | Wire-ready X12 940 interchange |
403 | Not this credential’s partner |
409 | Idempotency-Key reused with a different payload |
422 | Invalid payload or delimiter collision |
Using this contract
Read the source OpenAPI document for declared schemas and alternatives. This page also includes documented corrections from the spec overlays. Example IDs and values are illustrative; replace them with records from your workspace.curl --silent --show-error --fail-with-body --request POST \
--url 'https://api.edi.stateset.com/v1/edi/outbound/940/{partner_id}' \
--header "Authorization: Bearer $EDI_API_TOKEN" \
--header "Idempotency-Key: ${IDEMPOTENCY_KEY:?Set a unique key for this operation; preserve it on retries}" \
--header 'Content-Type: application/json' \
--data '{
"carrier_scac": "string",
"items": [
{
"description": "Two-person tent, green — replacement for damaged pole set.",
"quantity": "2",
"sku": "SKU-TENT-2P-GRN",
"sku_qualifier": "string",
"uom": "string"
}
],
"order_number": "ORD-10042",
"po_number": "ORD-10042",
"requested_ship_date": "2026-08-31",
"ship_to": {
"address_lines": [
"548 Market St"
],
"city": "San Francisco",
"country": "US",
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"id_qualifier": "string",
"name": "Two-Person Tent",
"postal_code": "94107",
"role": "string",
"state": "CA"
}
}'
Last modified on October 20, 2026