Preview Release Email
GET/api/purchase-orders/:purchase_order/releases/:inbound_shipment/preview
What sending this release to the supplier would email, without sending anything. A release is an inbound shipment that carries lines of the purchase order; on a shipment shared by several purchase orders, the release covers only this purchase order's lines.
purchase-orders:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
to: the supplier's purchase order email addresses (empty when the supplier has none — the send then needsto).cc: the default copy (extra store PO addresses, the purchase order settings' CC addresses and the person sending).subject/body: the rendered Purchase order release email template;messageis the body as plain text for editing.attachment_name: the release PDF's file name.release_number: the shipment's position (1, 2, 3 …) among the purchase order's releases, oldest first.released_at: when the release was first sent, or null.template_enabled: false when the email template is switched off (a send then returns 422);settings_pathis where to switch it on.
Requires the purchase_orders.show permission. Returns 404 when the shipment carries no lines of the purchase order.
Request
Responses
- 200
- 401
- 403
- 404
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not Found
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.