Introduction
Welcome to the non-official TheNextInvoice API documentation. Its horrible, we know but we strive to improve.
Authentication
General day-to-day authentication is done either through a JWT token, or an API key.
JWTs are accepted through the Authorization header.
example: Authorization: Bearer {token}.
API tokens are accepted through the X-Api-Token header.
example: X-Api-Token: {token}.
Login using JWT
curl -X POST https://api-rewrite.beta.thenextsoftware.io/api/v1/session/jwt \
-H 'Content-Type: application/json' \
-H 'Accept: application/json'POST https://api-rewrite.beta.thenextsoftware.io/api/v1/session/jwt HTTP/1.1
Host: api-rewrite.beta.thenextsoftware.io
Content-Type: application/json
Accept: application/jsonPOST /session/jwt
Login using JWT
Example request
{
"email": "user@example.com",
"password": "pa$$word",
"company": 1
}Parameters
| Parameter | Type | Description |
|---|---|---|
| email* | string | Email address |
| password* | string | Password |
| company | integer | Company ID to log in with |
Example response
{
"token": "jwt.auth.token"
}