Skip to main content

Send Release to Supplier

POST 

/api/purchase-orders/:purchase_order/releases/:inbound_shipment/send

Emails the release to the supplier with the release PDF attached, using the Purchase order release email template. The first send stamps released_at on the shipment; a resend keeps the first date. Each send is recorded on the purchase order's activity and its supplier conversation.

Required scope: purchase-orders:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body (all optional):

  • to (array of emails, max 20): recipients. Omitted or empty: the supplier's purchase order email.
  • cc (array of emails, max 20, nullable): copy. Omitted or null: the default copy shown by Preview Release Email; an empty array copies nobody extra.
  • subject (string, max 255): replaces the template's subject for this send.
  • body (plain text, max 20000): replaces the template's message for this send; blank lines separate paragraphs.

Requires the purchase_orders.update permission. Returns 404 when the shipment carries no lines of the purchase order, 422 when the email template is switched off (code: release_email_turned_off, with settings_path), and 422 on to when there is nobody to send to.

Request​

Responses​

OK

Response Headers
    Content-Type