REST DocumentationReceiptsGET Get the file attached to a receipt, if one has been uploaded

Get the file attached to a receipt, if one has been uploaded

The file’s bytes are returned base64-encoded in file_contents.

Availability: Full version only — a Clock instance answers 404 for this endpoint.

Request

GET /api/v1/receipts/{id}/attachments
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/receipts/{id}/attachments' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Path parameters

  • Name
    id
    Type
    integer
    Description

    The receipt ID

Response

{
  "data": {
    "filename": "Allgemeine_Geschaeftsbedingungen.pdf",
    "file_contents": "JVBERi0xLjMgCjEgMCBvYmoKPDwKL1BhZ2VzIDIgMCBSCi9UeXBlIC9DYXRhbG9nCj4+CmVuZG9i..."
  }
}

Response fields

  • Name
    filename
    Type
    string, nullable
    Description

    The uploaded file’s name, present only once a receipt file has been attached.

  • Name
    file_contents
    Type
    string, nullable
    Description

    The receipt file’s bytes, base64-encoded; present only once a file has been attached.

Generated from the OpenAPI specification — edit the source code, not this page.