Authentication
Authenticate Your API Requests By Including Your Secret API Key In The Authorization Header Of Every Request. You Can Manage Your API Keys In The Lexora Dashboard Under Developer Settings.
Keep Your Keys Secure
Your Secret Keys Carry Many Privileges. Never Share Them In Publicly Accessible Areas Such As GitHub, Client-Side Code, Or Public Forums.
Errors & Responses
Lexora Uses Conventional HTTP Response Codes To Indicate The Success Or Failure Of An API Request. In General, Codes In The 2xx Range Indicate Success.
Create An Invoice
Creates A New Draft Invoice For A Specific Customer. Line Items Can Be Passed Directly In The Request Payload As An Array Of Objects.
Endpoints
https://api.lexorabilling.com/v1/invoices
Parameters
The Unique Identifier Of The Customer You Are Billing.
Three-Letter ISO Currency Code (E.G., usd). Defaults To The Customer's Associated Currency.
An Array Of Objects Containing Details About The Specific Products Or Services Being Billed. Includes description, amount, And quantity.
List All Invoices
Returns A List Of Your Account's Invoices. The Invoices Are Returned Sorted By Creation Date, With The Most Recently Created Invoices Appearing First.
Endpoints
https://api.lexorabilling.com/v1/invoices
Parameters
A Limit On The Number Of Objects To Be Returned. Limit Can Range Between 1 And 100. Defaults To 10.
Filter By Invoice Status. Valid Options Are draft, open, paid, Or void.