Table of Contents

API : Internet Access Account - download document

Introduction

This request is used to download/get/show a document on the Internet Access account.

Request

URL https://api.telecomx.dk/internet/account/ACCOUNT_ID/document/DOCUMENT_ID
Method GET
Access level VIEWER, MANAGER or OWNER if user belongs to the customer.
RESELLER if customer belongs to the reseller or a sub reseller.
RESELLER_ADMIN
ADMIN.
Params ACCOUNT_ID Id of Internet Access account the document belongs to.
DOCUMENT_ID Id of the document.
Query forcedownload True to enforce download and not view in browser.

Request example

https://api.telecomx.dk/internet/account/12345678901234567890ABCD/document/12345678901234567890AAAA

Response

Binary data.

Example

N/A

Errors

Error code Message Description
400 bad_request Id not found in request URI
400 bad_request File not found in request URI
404 id File not found (missing in the file store)
403 access_denied Insufficient access level
500 internal_error <Unspecified> - also returned when the account or document id is unknown