New API version v7.7.0 has been released! 🎉
REST Documentation
GET Invoice attachments

Get Invoice Attachments

You can use this endpoint to retrieve all attachments for a specific invoice.

Request

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

Response

{
	"data": [
        {
            "id": 1,
            "invoice_id": 101,
            "filename": "invoice_2024_001.pdf",
            "original_filename": "Invoice-Acme-Corp-2024-001.pdf",
            "mime_type": "application/pdf",
            "file_size": 245760,
            "upload_date": "2024-01-15T10:30:00.000000Z",
            "description": "Main invoice document",
            "created": "2024-01-15T10:30:00.000000Z",
            "modified": "2024-01-15T10:30:00.000000Z"
        },
        {
            "id": 2,
            "invoice_id": 101,
            "filename": "supporting_docs.zip",
            "original_filename": "Supporting-Documents.zip",
            "mime_type": "application/zip",
            "file_size": 1048576,
            "upload_date": "2024-01-15T11:00:00.000000Z",
            "description": "Additional supporting documentation",
            "created": "2024-01-15T11:00:00.000000Z",
            "modified": "2024-01-15T11:00:00.000000Z"
        }
	]
}

Path Parameters

  • Name
    invoice
    Type
    integer
    Description

    The invoice ID.

Optional Parameters

  • Name
    page
    Type
    integer
    Description

    Page number for pagination.

  • Name
    per_page
    Type
    integer
    Description

    Items per page (default: 15, max: 100).

  • Name
    limit
    Type
    integer
    Description

    Attribute for limiting the number of entries per page.