PHPackages                             buddha-code/buco-order-documents-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. buddha-code/buco-order-documents-api

AbandonedArchivedShopware-plugin[API Development](/categories/api)

buddha-code/buco-order-documents-api
====================================

Shopware plugin which adds a REST API endpoint to access and delete order documents

04PHP

Since May 27Pushed 7y agoCompare

[ Source](https://github.com/buddhaCode/BucoOrderDocumentsApi)[ Packagist](https://packagist.org/packages/buddha-code/buco-order-documents-api)[ RSS](/packages/buddha-code-buco-order-documents-api/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

BucoOrderDocumentsApi
=====================

[](#bucoorderdocumentsapi)

Shopware plugin which adds a REST API endpoint to access and delete order documents.

Features
--------

[](#features)

This plugin adds a new REST API endpoint to access and delete the order documents including their attributes. Creating and modifying order documents it currently not implemented. The access to the endpoint can be restricted with the access control list (ACL) resource `BucoOrderDocuments` and the privileges `read` and `delete` in the user manager.

The REST API can be accessed in the following ways:

- `GET /api/BucoOrderDocuments/` returns a **listing**. The [well known](https://developers.shopware.com/developers-guide/rest-api/#filter,-sort,-limit,-offset) limit, order and query parameters can be applied.

    Example output:

    ```
    {
        "data": [
            {
                "id": 11756,
                "date": "2017-07-31T00:00:00+0200",
                "typeId": 1,
                "customerId": 6,
                "orderId": 1,
                "amount": 1598,
                "documentId": "55483",
                "hash": "7d2431092sadsa3a8047756edf0fec2da",
                "attribute": { // null, if no attributes available
                    "id": 11668,
                    "documentId": 11756,
                    "someExampleAttribute": 42,
                }
            },
            { ... }
        ],
        "total": 1337,
        "success": true
    }
    ```
- `GET /api/BucoOrderDocuments/{id}` returns a **specific** order document with a base64 encoded representation of the PDF document directly within the JSON response. To retrieve the PDF document directly without the meta data, include or set the MIME type `application/pdf` in the request header `Accept`.

    Example output (for JSON representation):

    ```
    {
        "data": {
            "id": 11756,
            "date": "2017-07-31T00:00:00+0200",
            "typeId": 1,
            "customerId": 6,
            "orderId": 1,
            "amount": 1598,
            "documentId": "55483",
            "hash": "7d2431092sadsa3a8047756edf0fec2da",
            "attribute": { // null, if no attributes available
                "id": 11668,
                "documentId": 11756,
                "someExampleAttribute": 42,
            },
            "pdfDocument": "some random base64 encoded data[...]" // null, if file do not exist
        },
        "success": true
    }
    ```
- `DELETE /api/BucoOrderDocuments/{id}` deletes a **specific** order document. Example output:

    ```
    {
        "success": true
    }
    ```

Feature Ideas
-------------

[](#feature-ideas)

- Implement POST and PUT methods
    - `POST` Generate document via Shopware
    - `POST` Upload externally generated document
    - `PUT` manipulate meta data like amount and attributes
    - `PUT` upload PDF file

Compatibility
-------------

[](#compatibility)

- Shopware &gt;= 5.2.0
- PHP &gt;= 7.0

Installation
------------

[](#installation)

### Git Version

[](#git-version)

- Checkout plugin in `/custom/plugins/BucoOrderDocumentsApi`
- Install and active plugin with the Plugin Manager

### Install with composer

[](#install-with-composer)

- Change to your root installation of Shopware
- Run command `composer require buddha-code/buco-order-documents-api`
- Install and active plugin with `./bin/console sw:plugin:install --activate BucoOrderDocumentsApi`

Contributing
------------

[](#contributing)

Feel free to fork and send pull requests!

Licence
-------

[](#licence)

This project uses the [GPLv3 License](LICENCE).

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11678100?v=4)[Arne Becker](/maintainers/buddhaCode)[@buddhaCode](https://github.com/buddhaCode)

---

Top Contributors

[![buddhaCode](https://avatars.githubusercontent.com/u/11678100?v=4)](https://github.com/buddhaCode "buddhaCode (2 commits)")

---

Tags

documentordershopwareshopware-apishopware-pluginshopware-plugins

### Embed Badge

![Health badge](/badges/buddha-code-buco-order-documents-api/health.svg)

```
[![Health](https://phpackages.com/badges/buddha-code-buco-order-documents-api/health.svg)](https://phpackages.com/packages/buddha-code-buco-order-documents-api)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
