> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

### Path parameters

**po\_number** `string` *required*

Buyer PO number (BEG03)

**set** `string` *required*

855, 856 or 810; or desadv / invoic for the EDIFACT body of the 856 / 810 draft

### Query parameters

**partner\_id** `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](/spec/edi.json) for declared schemas and alternatives.
This page also includes documented corrections from the [spec overlays](https://github.com/stateset/docs/tree/main/spec/overlays).
Example IDs and values are illustrative; replace them with records from your workspace.

```bash cURL theme={null}
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"
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.