Skip to main content

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.

Required scope: purchase-orders:read

Grant 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 needs to).
  • 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; message is 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_path is 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​

OK

Response Headers
    Content-Type