@@ -86,6 +86,8 @@ $response = $api->invoice()->get($entityId);
8686$response = $api->invoice()->create($data);
8787$response = $api->invoice()->document($entityId); // get document ID
8888$response = $api->invoice()->document($entityId, true); // get file content
89+ $response = $api->invoice()->document($entityId, true, 'image/*'); // accept only images
90+ $response = $api->invoice()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
8991```
9092
9193### Down Payment Invoices Endpoint
@@ -95,6 +97,8 @@ $response = $api->downPaymentInvoice()->get($entityId);
9597$response = $api->downPaymentInvoice()->create($data);
9698$response = $api->downPaymentInvoice()->document($entityId); // get document ID
9799$response = $api->downPaymentInvoice()->document($entityId, true); // get file content
100+ $response = $api->downPaymentInvoice()->document($entityId, true, 'image/*'); // accept only images
101+ $response = $api->downPaymentInvoice()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
98102```
99103
100104### Order Confirmation Endpoint
@@ -104,6 +108,8 @@ $response = $api->orderConfirmation()->get($entityId);
104108$response = $api->orderConfirmation()->create($data);
105109$response = $api->orderConfirmation()->document($entityId); // get document ID
106110$response = $api->orderConfirmation()->document($entityId, true); // get file content
111+ $response = $api->orderConfirmation()->document($entityId, true, 'image/*'); // accept only images
112+ $response = $api->orderConfirmation()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
107113```
108114
109115### Quotation Endpoint
@@ -113,6 +119,8 @@ $response = $api->quotation()->get($entityId);
113119$response = $api->quotation()->create($data);
114120$response = $api->quotation()->document($entityId); // get document ID
115121$response = $api->quotation()->document($entityId, true); // get file content
122+ $response = $api->quotation()->document($entityId, true, 'image/*'); // accept only images
123+ $response = $api->quotation()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
116124```
117125
118126### Voucher Endpoint
@@ -122,6 +130,8 @@ $response = $api->voucher()->create($data);
122130$response = $api->voucher()->update($entityId, $data);
123131$response = $api->voucher()->document($entityId); // get document ID
124132$response = $api->voucher()->document($entityId, true); // get file content
133+ $response = $api->voucher()->document($entityId, true, 'image/*'); // accept only images
134+ $response = $api->voucher()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
125135$response = $api->voucher()->upload($entitiyId, $filepath);
126136```
127137
@@ -133,6 +143,8 @@ $response = $api->creditNote()->get($entityId);
133143$response = $api->creditNote()->create($data);
134144$response = $api->creditNote()->document($entityId); // get document ID
135145$response = $api->creditNote()->document($entityId, true); // get file content
146+ $response = $api->creditNote()->document($entityId, true, 'image/*'); // accept only images
147+ $response = $api->creditNote()->document($entityId, true, 'application/xml'); // get XRechung XML File (if possible)
136148```
137149
138150### Payment Endpoint
@@ -221,7 +233,9 @@ $response = $client->getPage(0);
221233### File Endpoint
222234``` php
223235$response = $api->file()->upload($filePath, $voucherType);
224- $response = $api->file()->get($entityId);
236+ $response = $api->file()->get($entityId); // accept every file
237+ $response = $api->file()->get($entityId, 'image/*'); // accept only images
238+ $response = $api->file()->get($entityId, 'application/xml'); // get XRechung XML File (if possible)
225239```
226240
227241
0 commit comments