academyFIVE API Beta icon

academyFIVE API Beta

Interact with academyFIVE API

Actions482

Financial-documents → Download a refund document by database ID

AI-generated

Summary

Downloads a refund document using the refund record’s database ID and returns it as binary data for downstream workflow steps.

Inputs

  • refundId (required) — Unique database ID of the refund record; used in the request path /api/v1/financial-documents/refund/id/{refundId}.

Output shape

One item containing binary file data under binary.data, plus JSON metadata.

Metadata includes mimeType, fileName, response headers, and status code. The filename is taken from the response’s Content-Disposition header when available, otherwise from the request URL, with data as a fallback. File MIME type comes from the response Content-Type header, with a declared binary MIME type or application/octet-stream as fallback.

Links

Discussion