get
https://sandbox.uk.rootplatform.com/v1/insurance/invoices//proof-of-payment
Download the proof of payment attached to an invoice.
This endpoint returns the file itself, not JSON. The response body is the raw document, with Content-Type set to the file's MIME type and Content-Disposition naming it as an attachment. Check proof_of_payment_file_id on the invoice object to tell whether one is attached before calling.
Invoicing is opt-in per organization: unless the invoicing feature flag is enabled for your organization this endpoint returns 403.
403Invoicing is not enabled for the organization, or the caller is missing the invoices:read permission.
404The invoice has no proof of payment attached, or no such invoice, or the caller's user group does not grant access to its policy.