Send Work Order

Changed on

Operates on Service Orders, shown in the Zuper client app as "Work Order" (in every industry). Work Orders share the exact same underlying schema and endpoints as Purchase Orders / Material Orders; they're distinguished only by the purchase_order_type field (SERVICE_ORDER here) and the /service_orders route prefix. If email is provided, sends the order by email and returns a JSON success message. If email is omitted, the response is instead a raw PDF (or Excel, if send_excel is true) binary stream, not JSON.

post/service_orders/{purchase_order_uid}/send

Request

  • Base URL
    https://dc-region.zuperpro.com/api
  • URL
    https://dc-region.zuperpro.com/api/service_orders/{purchase_order_uid}/send
  • Auth
    API key in header x-api-key

Path parameters

purchase_order_uidstring required

Request body

emailstring
subjectstring
email_bodystring
email_ccstring[]
email_bccstring[]
email_config_uidstring
template_uidstring
attachmentsobject[]
send_pdfboolean

If true, sends/returns a PDF.

send_excelboolean

If true, sends/returns an Excel file instead of a PDF.

include_measurementsboolean
include_job_attachmentsboolean
include_productsboolean
from_status_updateboolean

Response

200

type'success'
titlestring
messagestring

Changes