get_purchase_order
Fetch a purchase order by ID, returning the native ERP envelope (SAP, NetSuite, or Dynamics 365) exactly as the ERP would. Throws if not found.
Instructions
Fetch one purchase order as the configured ERP would return it.
- po_id: corpus PO id, e.g. "PO-8801". Join key across the whole kit.
Returns the ERP-native PO envelope. Under sap_s4hana: an
API_PURCHASEORDER_PROCESS_SRV `{"d": {A_PurchaseOrder ... to_PurchaseOrderItem}}`
document with stringified decimals and /Date(ms)/ dates. Under netsuite: a REST
Record `purchaseOrder` with JSON numbers and an `item.items[]` sublist. Under
dynamics365: an OData V4 PurchaseOrderHeadersV2 entity with `@odata.etag` and
`dataAreaId`. Raises if the PO is unknown.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| po_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||