Documents API

Download a bill document

Download the original PDF attached to the payer billing packet.

GEThttps://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.

AuthenticationServer API key or browser session + Origin
Permissions by credentialServer: bills:read · Browser: documents:read
IdempotencyNot required

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
billIdRequired
string

The MindBill bill identifier returned after atomic submission.

documentIdRequired
string

The document identifier returned with the atomically submitted bill.

Examples

Download a document
curl https://app.mindbill.org/partner/v2/bills/$BILL_ID/documents/$DOCUMENT_ID \
  --header "Authorization: Bearer $MINDBILL_API_KEY" \
  --output bill-document.pdf

Response

200 PDF

Response
Binary PDF response.