mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-25 00:32:16 +02:00
Added new api route for billing
This commit is contained in:
@@ -319,11 +319,52 @@ if ($_SESSION['userlevel'] == '10')
|
||||
<tr>
|
||||
<td colspan="5"><code>curl -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \<br/> "https://librenms.example.com/api/v0/devices/localhost/ports?columns=ifDescr,ifName"</code></td>
|
||||
</tr>
|
||||
<tr class="success">
|
||||
<td colspan="5"><strong>List Bills</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/api</td>
|
||||
<td>/v0</td>
|
||||
<td>/bills</td>
|
||||
<td>
|
||||
<ul class="list-unstyled">
|
||||
<li>custid = the customer reference for the bill</li>
|
||||
<li>ref = the billing reference for the bill</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
JSON
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><code>curl -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \<br/> "https://librenms.example.com/api/v0/bills"</code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><code>curl -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \<br/> "https://librenms.example.com/api/v0/bills?custid=Testing"</code></td>
|
||||
</tr>
|
||||
<tr class="success">
|
||||
<td colspan="5"><strong>Retrieve Bill information</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>/api</td>
|
||||
<td>/v0</td>
|
||||
<td>/bills/$bill_id</td>
|
||||
<td>
|
||||
<ul class="list-unstyled">
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
JSON
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="5"><code>curl -H "X-Auth-Token: 91c60e737e342c205be5bba8e2954d27" \<br/> "https://librenms.example.com/api/v0/bills/$bill_id"</code></td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-3">
|
||||
<div class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="sidebar" role="complementary">
|
||||
<div class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="sidebar" role="complementary">
|
||||
<ul class="nav bs-docs-sidenav">
|
||||
<li><a href="api-docs/#intro">Introduction</a></li>
|
||||
<li><a href="api-docs/#tokens">Token authentication</a></li>
|
||||
|
||||
Reference in New Issue
Block a user