Changelog

New updates and improvements to Lago.

Released new API endpoints

We like our users when they use our nice and clean UI, but we also love when they use our API. One of the usecase could be to use Lago as a white-labeled solution.

Here is the full list of endpoints we have just released:

Billable metrics

  • Create a billable metric <text-code>POST /api/v1/billable_metrics<text-code>
  • Update a billable metric <text_code>PUT /api/v1/billable_metrics/:code<text-code>
  • Destroy a billable metric <text-code>DELETE /api/v1/billable_metrics/:code<text-code>
  • Fetch a specific billable metric <text-code>GET /api/v1/billable_metrics/:code<text-code>
  • Fetch all billable metrics <text-code>GET /api/v1/billable_metrics?per_page=2&page=1<text-code>

Plans

  • Create a plan <text-code>POST /api/v1/plans<text-code>
  • Update a plan <text-code>PUT /api/v1/plans/:code<text-code>
  • Destroy a plan <text-code>DELETE /api/v1/plans/:code<text-code>
  • Fetch a specific plan <text-code>GET /api/v1/plans/:code<text-code>
  • Fetch all plans <text-code>GET /api/v1/plans?per_page=2&page=1<text-code>

Coupons

  • Create a coupon <text-code>POST /api/v1/coupons<text-code>
  • Update a coupon <text-code>PUT /api/v1/coupons/:code<text-code>
  • Destroy a coupon <text-code>DELETE /api/v1/coupons/:code<text-code>
  • Fetch a specific coupon <text-code>GET /api/v1/coupons/:code<text-code>
  • Fetch all coupons <text-code>GET /api/v1/coupons?per_page=2&page=1<text-code>

Add-ons

  • Create a add_on <text-code>POST /api/v1/add_ons<text-code>
  • Update a add_on <text-code>PUT /api/v1/add_ons/:code<text-code>
  • Destroy a add_on <text-code>DELETE /api/v1/add_ons/:code<text-code>
  • Fetch a specific add_on <text-code>GET /api/v1/add_ons/:code<text-code>
  • Fetch all add_ons <text-code>GET /api/v1/add_ons?per_page=2&page=1<text-code>

Current usage

  • Get the current usage of a specific customer <text-code>GET /api/v1/customers/:customer_id/current_usage<text-code>

Organization

  • Update the information of your organization <text-code>PUT /api/v1/organizations<text-code>