Skip to main content

Download Document File

Download a document file from a completed order. The download URL is provided in the download_url field of each delivered document in the Get Order by ID response or via the Document Order Webhook.

warning

Do not construct this URL manually. Always use the download_url provided by the API.


Method & URL

GET https://api.gbris.com/files/{order_id}/{file_name}

Example Request

curl -X GET "https://api.gbris.com/files/d8595ad1e63dc/YAzH4SwNkpgA0h.pdf" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-o downloaded-document.pdf

Response

The Content-Type will match the actual file format (application/pdf, application/zip, etc.).


Notes

  • Files are only accessible after the order is marked as COMPLETED and the document status is DELIVERED.
  • Documents will remain available for 90 days from the time of order completion.
  • If the file is not available or the status is NOT_AVAILABLE, this endpoint will return a 404 Not Found.