New API version v7.12 has been released! πŸŽ‰
REST DocumentationReceiptsPUT Upload or replace the file attached to a receipt

Upload or replace the file attached to a receipt

The file content is sent base64-encoded in file_contents.

Availability: Full version only β€” a Clock instance answers 404 for this endpoint.

Request

PUT /api/v1/receipts/{id}/attachments
curl --request PUT \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/receipts/{id}/attachments' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}' \
     --header 'Content-Type: application/json' \
     --data '{
       "file_contents": "string",
       "filename": "string"
     }'

Path parameters

  • Name
    id
    Type
    integer
    Description

    The receipt ID

Request body

  • Name
    file_contents
    Type
    string, required
    Description

    The file’s bytes, base64-encoded.

  • Name
    filename
    Type
    string, required
    Description

    The name to store the file under.

Response

{
  "success": true
}

Response fields

  • Name
    success
    Type
    boolean
    Description

    Whether the operation succeeded.

Generated from the OpenAPI specification β€” edit the source code, not this page.