Lifecycle API
Preview or send a courtesy copy
Preview the exact PDF, recipients, and message before sending.
https://app.mindbill.org/partner/v2/bills/{billId}/courtesy-forwardPreview the exact PDF, recipients, and message before sending. mode=send requires Idempotency-Key and the preview packetHash. A changed packet returns 409. Sandbox sends are simulated. This is not a payer submission.
Use this URL with a server API key or a browser session and its exact allowed Origin. Both credentials use the same request and response contract. See the component API inventory for exact paths and SDK methods.
Path parameters
billIdRequiredstringResource identifier.
Request body
modeRequiredstringmode
toRequiredstring[]to
ccstring[]cc
subjectRequiredstringsubject
bodyTextRequiredstringbodyText
includeCms1500booleanincludeCms1500
documentIdsstring[]documentIds
packetHashstringRequired for send. Hash from the reviewed preview for this exact packet, recipients, and message.
Examples
curl 'https://app.mindbill.org/partner/v2/bills/{billId}/courtesy-forward' \
--request POST \
--header "Authorization: Bearer $MINDBILL_API_KEY" \
--header 'Content-Type: application/json' \
--data @request.jsoncurl 'https://app.mindbill.org/partner/v2/bills/{billId}/courtesy-forward' \
--request POST \
--header "Authorization: Bearer $MINDBILL_BROWSER_TOKEN" \
--header 'Origin: https://your-app.example' \
--header 'Content-Type: application/json' \
--data @request.jsonResponse
200
Response fields are documented below.filenameRequiredstringfilename
documentCountRequiredintegerdocumentCount
packetHashRequiredstringpacketHash
pdfBase64RequiredstringpdfBase64
environmentRequiredstringenvironment
okRequiredbooleanok
sentRequiredbooleansent
messageIdstringmessageId
simulatedbooleansimulated
dryRunbooleandryRun