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.
purchase-orders:writeGrant 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
- 200
- 401
- 403
- 404
- 422
- 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
Unprocessable Entity
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.