Create Bulk Dispatch

View as Markdown

Headers

{{tenant_key_name}}stringOptional

Request

This endpoint expects a multipart form.
expires_atstringRequired

Optional: Dispatch expiration - date format - must be in the future

document_idstringRequired

Required: Document UUID - exists:documents,id - document MUST be PUBLISHED

send_via_smsstringRequired

Optional: Enable SMS channel - boolean

send_via_emailstringRequired

Optional: Enable email channel - boolean - at least one channel required

send_via_portalstringRequired

Optional: Enable portal channel - boolean

send_via_postalstringRequired

Optional: Enable postal channel - boolean

parent_record_idstringRequired

Optional: Parent record UUID - both-or-neither with parent_record_type

parent_record_typestringRequired

Optional: Polymorphic parent type - both-or-neither with parent_record_id

recipients[0][recipient_name]stringRequired

Required if recipient is external: Snapshot recipient name - max 255 chars

recipients[0][recipient_email]stringRequired

Optional per-recipient: Snapshot email - valid email - max 255 chars

recipients[0][recipient_phone]stringRequired

Optional per-recipient: Snapshot phone - max 32 chars

recipients[0][is_external_recipient]stringRequired

Optional per-recipient: External-recipient flag - boolean

recipients[0][recipient_customer_id]stringRequired

Optional per-recipient: CRM customer UUID - must belong to tenant

recipients[0][external_recipient_label]stringRequired

Required if recipient is external: Display label - max 255 chars

recipients[0][recipient_customer_contact_id]stringRequired

Optional per-recipient: CRM customer contact UUID

recipients[0][recipient_customer_location_id]stringRequired

Optional per-recipient: CRM customer location UUID

Response

Successful response