Documents API
Download a bill document
Download the original PDF attached to the payer billing packet.
GET
https://app.mindbill.org/partner/v2/bills/{billId}/documents/{documentId}Open or save a document from packet review without copying the file into your own frontend bundle.
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
FieldTypeDescription
billIdRequiredstringThe MindBill bill identifier returned after atomic submission.
documentIdRequiredstringThe document identifier returned with the atomically submitted bill.
Examples
curl https://app.mindbill.org/partner/v2/bills/$BILL_ID/documents/$DOCUMENT_ID \
--header "Authorization: Bearer $MINDBILL_API_KEY" \
--output bill-document.pdfResponse
200 PDF
Binary PDF response.