curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.edi.stateset.com/v1/orders/{po_number}/drafts/{set}' \
--header "Authorization: Bearer $EDI_API_TOKEN"
Returns a pre-filled 855/856/810 request body built from the stored 850 (with…
data is the ready-to-send request body; order summarizes the PO
GET
/
v1
/
orders
/
{po_number}
/
drafts
/
{set}
curl --silent --show-error --fail-with-body --request GET \
--url 'https://api.edi.stateset.com/v1/orders/{po_number}/drafts/{set}' \
--header "Authorization: Bearer $EDI_API_TOKEN"
Path parameters
string
required
Buyer PO number (BEG03)
string
required
855, 856 or 810; or desadv / invoic for the EDIFACT body of the 856 / 810 draft
Query parameters
string
The trading partner that sent the PO. Optional for a partner-scoped credential (defaults to its own partner).
Response
No response body.data is the ready-to-send request body; order summarizes the PO.
Status codes
| Code | Meaning |
|---|---|
200 | data is the ready-to-send request body; order summarizes the PO |
403 | Not this credential’s partner |
404 | Unknown partner, or no accepted 850 for this PO |
409 | PO cancelled (856/810) or nothing left to ship / invoice |
422 | Unsupported set |
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 GET \
--url 'https://api.edi.stateset.com/v1/orders/{po_number}/drafts/{set}' \
--header "Authorization: Bearer $EDI_API_TOKEN"
Last modified on October 20, 2026