This repository was archived by the owner on Feb 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -199,4 +199,34 @@ public function fields()
199199 );
200200 return $ fullResult ;
201201 }
202+
203+ /**
204+ * get external link for invoice
205+ *
206+ * @param $id
207+ *
208+ * @return array
209+ * @throws \Bitrix24\Exceptions\Bitrix24ApiException
210+ * @throws \Bitrix24\Exceptions\Bitrix24EmptyResponseException
211+ * @throws \Bitrix24\Exceptions\Bitrix24Exception
212+ * @throws \Bitrix24\Exceptions\Bitrix24IoException
213+ * @throws \Bitrix24\Exceptions\Bitrix24MethodNotFoundException
214+ * @throws \Bitrix24\Exceptions\Bitrix24PaymentRequiredException
215+ * @throws \Bitrix24\Exceptions\Bitrix24PortalDeletedException
216+ * @throws \Bitrix24\Exceptions\Bitrix24PortalRenamedException
217+ * @throws \Bitrix24\Exceptions\Bitrix24SecurityException
218+ * @throws \Bitrix24\Exceptions\Bitrix24TokenIsExpiredException
219+ * @throws \Bitrix24\Exceptions\Bitrix24TokenIsInvalidException
220+ * @throws \Bitrix24\Exceptions\Bitrix24WrongClientException
221+ */
222+ public function getExternalLink ($ id )
223+ {
224+ $ fullResult = $ this ->client ->call (
225+ 'crm.invoice.getexternallink ' ,
226+ array (
227+ 'id ' => $ id
228+ )
229+ );
230+ return $ fullResult ;
231+ }
202232}
You can’t perform that action at this time.
0 commit comments