curl --silent --show-error --fail-with-body --request POST \
--url 'https://edi.stateset.com/v1/edi/outbound/865/{partner_id}' \
--header "Authorization: Bearer $STATESET_EDI_API_KEY" \
--header 'Content-Type: application/json' \
--data @po-change-ack.json
"string"
Send a purchase-order change acknowledgment (865)
Build and dispatch an X12 865 change acknowledgment. Save a partner-approved payload with at least one line as po-change-ack.json…
POST
/
v1
/
edi
/
outbound
/
865
/
{partner_id}
curl --silent --show-error --fail-with-body --request POST \
--url 'https://edi.stateset.com/v1/edi/outbound/865/{partner_id}' \
--header "Authorization: Bearer $STATESET_EDI_API_KEY" \
--header 'Content-Type: application/json' \
--data @po-change-ack.json
"string"
Build and dispatch an X12 865 change acknowledgment. Save a partner-approved payload with at least one line as po-change-ack.json. The successful response is wire-ready X12, not JSON; inspect delivery and partner acknowledgments separately.
Path parameters
string
required
Partner ID
Request body
Ack865
string (date)
required
string
BCA02 acknowledgment type: AC accept, AD accept with detail, AK acknowledge no detail, RJ reject.
ChangeAckLine[]
required
Show ChangeAckLine
Show ChangeAckLine
string
POC02 change/response type: CA changes, QD quantity decrease, QI quantity increase, DI delete item, AI add item, NC no change.
string
required
string
required
POC03 — quantity ordered after the change.
string
ACK01 line status: IA accepted, IB backordered, IQ quantity changed, IR rejected.
string
ACK02 — quantity the status applies to; defaults to the line quantity.
string
string
string (date)
BCA06 — original PO date.
string
required
BCA03 — the changed PO being acknowledged.
Response
Returnsapplication/edi-x12 — Wire-ready X12 865 interchange.
Status codes
| Code | Meaning |
|---|---|
200 | Wire-ready X12 865 interchange |
403 | Not this credential’s partner |
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://edi.stateset.com/v1/edi/outbound/865/{partner_id}' \
--header "Authorization: Bearer $STATESET_EDI_API_KEY" \
--header 'Content-Type: application/json' \
--data @po-change-ack.json
"string"
Last modified on September 21, 2026