Skip to content

Commit 62f4d4f

Browse files
committed
Added download example for SalesInvoice PDF
1 parent b6ae142 commit 62f4d4f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ var_dump($salesInvoices); // Array with SalesInvoice objects
8080
$salesInvoice = $moneybird->salesInvoice()->find(3498576378625);
8181
var_dump($salesInvoice); // SalesInvoice object
8282

83+
// Example: Get sales invoice PDF contents
84+
// *** Officially unsupported in the Moneybird API ***
85+
$pdfContents = $salesInvoice->download();
86+
8387
// Example: Create a new contact
8488
$contact = $moneybird->contact();
8589

0 commit comments

Comments
 (0)