documentPdf

@GET(value = "documents/{id}/pdf")
abstract suspend fun documentPdf(@Path(value = "id") id: String): Response<ResponseBody>

Get the orginal pdf of a pdf/pdf_email source format document. This endpoint allows you to get the original pdf for any pdf source format document (pdf or pdf_email).
This will be the url that was returned in the url field in the GET document details data format endpoint for pdf documents.

Important: This endpoint can only be called for pdf or pdf_email source format documents and will not work with other document source format types Responses:

  • 200: Success. Successfully returned the original document pdf.

  • 400: Bad Request. This will occur if you omit a required parameter, or if you provide an invalid value for a required parameter.

  • 401: Unauthorized. This will occur if you do not supply an access-token to this endpoint, or if you provide an expired or invalid access token.

  • 403: Forbidden. This will occur if you attempt to use a client token with this endpoint. This endpoint must be used with a user-token.

  • 404: Not Found. The receiptID you have provided is not one of this user's documents.

Return

ResponseBody

Parameters

id

A unique ID that identifies this document in the Sensibill system.