@@ -95,6 +95,8 @@ $response = $api->invoice()->get($entityId);
9595$response = $api->invoice()->create($data);
9696$response = $api->invoice()->document($entityId); // get document ID
9797$response = $api->invoice()->document($entityId, true); // get file content
98+ $response = $api->invoice()->document($entityId, true, 'image/*'); // accept only images
99+ $response = $api->invoice()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
98100```
99101
100102### Down Payment Invoices Endpoint
@@ -104,6 +106,8 @@ $response = $api->downPaymentInvoice()->get($entityId);
104106$response = $api->downPaymentInvoice()->create($data);
105107$response = $api->downPaymentInvoice()->document($entityId); // get document ID
106108$response = $api->downPaymentInvoice()->document($entityId, true); // get file content
109+ $response = $api->downPaymentInvoice()->document($entityId, true, 'image/*'); // accept only images
110+ $response = $api->downPaymentInvoice()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
107111```
108112
109113### Order Confirmation Endpoint
@@ -113,6 +117,8 @@ $response = $api->orderConfirmation()->get($entityId);
113117$response = $api->orderConfirmation()->create($data);
114118$response = $api->orderConfirmation()->document($entityId); // get document ID
115119$response = $api->orderConfirmation()->document($entityId, true); // get file content
120+ $response = $api->orderConfirmation()->document($entityId, true, 'image/*'); // accept only images
121+ $response = $api->orderConfirmation()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
116122```
117123
118124### Quotation Endpoint
@@ -122,6 +128,8 @@ $response = $api->quotation()->get($entityId);
122128$response = $api->quotation()->create($data);
123129$response = $api->quotation()->document($entityId); // get document ID
124130$response = $api->quotation()->document($entityId, true); // get file content
131+ $response = $api->quotation()->document($entityId, true, 'image/*'); // accept only images
132+ $response = $api->quotation()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
125133```
126134
127135### Voucher Endpoint
@@ -131,6 +139,8 @@ $response = $api->voucher()->create($data);
131139$response = $api->voucher()->update($entityId, $data);
132140$response = $api->voucher()->document($entityId); // get document ID
133141$response = $api->voucher()->document($entityId, true); // get file content
142+ $response = $api->voucher()->document($entityId, true, 'image/*'); // accept only images
143+ $response = $api->voucher()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
134144$response = $api->voucher()->upload($entitiyId, $filepath);
135145```
136146
@@ -142,6 +152,8 @@ $response = $api->creditNote()->get($entityId);
142152$response = $api->creditNote()->create($data);
143153$response = $api->creditNote()->document($entityId); // get document ID
144154$response = $api->creditNote()->document($entityId, true); // get file content
155+ $response = $api->creditNote()->document($entityId, true, 'image/*'); // accept only images
156+ $response = $api->creditNote()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
145157```
146158
147159### Payment Endpoint
@@ -230,7 +242,9 @@ $response = $client->getPage(0);
230242### File Endpoint
231243``` php
232244$response = $api->file()->upload($filePath, $voucherType);
233- $response = $api->file()->get($entityId);
245+ $response = $api->file()->get($entityId); // accept every file
246+ $response = $api->file()->get($entityId, 'image/*'); // accept only images
247+ $response = $api->file()->get($entityId, 'application/xml'); // get XRechung XML File (if possible)
234248```
235249
236250
0 commit comments