API 1.0 / Invoices

GET /invoices/:identifier/download

Get download-URL for an invoice pdf

This method has the URL https://api.toptranslation.com/v1/invoices/:identifier/download and returns a download url for a invoice of the user.

Required arguments

access_token
Token to authenticate a user
String
identifier
Part of URL of the request. Unique identifier of the invoice
String

Response

Returns a download url for the invoice

{
  meta: {
    status: 200
  },
  data:
    {
      download_url: 'https://files.toptranslation.com/documents/XXXXXXXXXXXX?key=XYZ...'   
    }
  }

Errors

403 - User not authenticated
User is not allowed to access the resource or execute the method.
404 - Invoice not found
Invoice was not found or is not shared with user.