PHPackages                             ytec/rest-pdf-invoice - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. ytec/rest-pdf-invoice

ActiveMagento2-module[HTTP &amp; Networking](/categories/http)

ytec/rest-pdf-invoice
=====================

REST PDF Invoices for Magento 2

1.1.4(1y ago)11.3k↓33.3%1MITPHPPHP &gt;=7.4

Since Jan 19Pushed 1y ago2 watchersCompare

[ Source](https://github.com/matheusmarqui1/magento2-rest-pdf-invoice)[ Packagist](https://packagist.org/packages/ytec/rest-pdf-invoice)[ RSS](/packages/ytec-rest-pdf-invoice/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (7)Used By (0)

[![Ytec Rest Pdf Invoice for Magento 2](https://camo.githubusercontent.com/21d85452cbb9037cc0b473fb795e3f117158b344da13996fc3f294103b63db2b/68747470733a2f2f692e696d6775722e636f6d2f643851454852622e706e67)](https://camo.githubusercontent.com/21d85452cbb9037cc0b473fb795e3f117158b344da13996fc3f294103b63db2b/68747470733a2f2f692e696d6775722e636f6d2f643851454852622e706e67)

Ytec Rest Pdf Invoice for Magento 2
===================================

[](#ytec-rest-pdf-invoice-for-magento-2)

[![Packagist Version](https://camo.githubusercontent.com/a0f5ecebbd926599f620265457ca855e4d420c691bc4ce13da67da9c0aa6110d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f797465632f726573742d7064662d696e766f6963653f6c6f676f3d7061636b6167697374267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ytec/rest-pdf-invoice)[![Packagist Downloads](https://camo.githubusercontent.com/d3ce6afd8ab54e479ff48cbd956dddf82f82a147a121d45ac9a4aa89aa290fa0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f797465632f726573742d7064662d696e766f6963652e7376673f6c6f676f3d636f6d706f736572267374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ytec/rest-pdf-invoice/stats)[![Supported Magento Versions](https://camo.githubusercontent.com/06075d036e8fefbf6b744046b4b599b9adb6a22a6e09e5f21d6d05da48369fc5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e342e782d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/06075d036e8fefbf6b744046b4b599b9adb6a22a6e09e5f21d6d05da48369fc5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6d6167656e746f2d253230322e342e782d627269676874677265656e2e7376673f6c6f676f3d6d6167656e746f266c6f6e6743616368653d74727565267374796c653d666f722d7468652d6261646765)[![License](https://camo.githubusercontent.com/a8e59c52a61079bac6876857b971b3115f991aa15de6cb7a243876b23007bb62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f636f6c6f723d253233323334267374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/a8e59c52a61079bac6876857b971b3115f991aa15de6cb7a243876b23007bb62/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e3f636f6c6f723d253233323334267374796c653d666f722d7468652d6261646765)

Introduction
------------

[](#introduction)

Introducing Ytec Rest Pdf Invoice for Magento 2: a streamlined module that simplifies retrieving PDF invoices via REST API endpoints, doing exacly what it says. 😎

Features
--------

[](#features)

- **GET /rest/V1/orders/:orderId/pdf-invoice Endpoint**: Retrieve a PDF invoice for a specific order.
- **Modified GET /rest/V1/invoices/:invoiceId Endpoint**: Now renders a PDF invoice when requested with an 'Accept: application/pdf' header.

Prerequisites
-------------

[](#prerequisites)

- PHP 7.4 or higher
- Magento 2.4.x

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

[](#installation)

1. Run `composer require ytec/rest-pdf-invoice` in your Magento root directory.
2. Execute `bin/magento setup:upgrade`.
3. Clear the cache by running `bin/magento cache:clean` and `bin/magento cache:flush`.

How to Use
----------

[](#how-to-use)

### Retrieving a PDF Invoice for an Order

[](#retrieving-a-pdf-invoice-for-an-order)

Send a GET request to `/rest/V1/orders/:orderId/pdf-invoice` with appropriate authorization. Replace `:orderId` with the actual order ID (entity\_id or increment\_id are supported).

### Retrieving a PDF Invoice for an Invoice

[](#retrieving-a-pdf-invoice-for-an-invoice)

Send a GET request to `/rest/V1/invoices/:invoiceId` with the header `Accept: application/pdf` and appropriate authorization. Replace `:invoiceId` with the actual invoice ID.

Dependencies
------------

[](#dependencies)

This module depends on the following Magento 2 modules:

- `Magento_Sales`
- `Magento_Framework`

License
-------

[](#license)

This module is open-source but all credits belong to Ytec, a company of Matheus da Costa Marqui. For the full license, please refer to the LICENSE.md file.

Support and Contribution
------------------------

[](#support-and-contribution)

For bugs, issues or feature requests, please open an issue on the repository or send an email to  for more personalized assistance.

---

Copyright (c) 2023 Ytec, a company of Matheus da Costa Marqui ()

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance48

Moderate activity, may be stable

Popularity21

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

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.

###  Release Activity

Cadence

Every ~93 days

Recently: every ~21 days

Total

6

Last Release

384d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/aec6ca9769695ebf3a2908a7e174b6d4066819d807794fdf54ee73f4a6d90c79?d=identicon)[matheus.marqui](/maintainers/matheus.marqui)

---

Tags

apipdfrestmagentoextensionpaymentmoduleinvoiceREST APIgenerationendpointmagento2 modulemagento 2 modulemagento2 extension

### Embed Badge

![Health badge](/badges/ytec-rest-pdf-invoice/health.svg)

```
[![Health](https://phpackages.com/badges/ytec-rest-pdf-invoice/health.svg)](https://phpackages.com/packages/ytec-rest-pdf-invoice)
```

###  Alternatives

[olegkoval/magento2-regenerate-url-rewrites

Add into Magento 2 a CLI feature which allow to regenerate a Url Rewrites of products and categories

4423.7M2](/packages/olegkoval-magento2-regenerate-url-rewrites)[magepsycho/magento2-custom-shipping

Magento 2 Custom Shipping

697.5k](/packages/magepsycho-magento2-custom-shipping)[magepsycho/magento2-storepricing

Magento 2 Store View Pricing

2520.9k](/packages/magepsycho-magento2-storepricing)[magepsycho/magento2-discountlimit

Magento 2 Discount Amount Limiter

1111.6k](/packages/magepsycho-magento2-discountlimit)[werfu/magento2-url-key-mask

Enable Product and Category URL\_key generation using masks

135.4k](/packages/werfu-magento2-url-key-mask)

PHPackages © 2026

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