Official smallinvoice API

With the smallinvoice API you can create modify and track everything going on in your account.

Access

You can access our API with the following Base-URL:

                GET https://api.smallinvoice.com/
            

Every possible API-call is built up with an endpoint and action. For example getting a list of invoices targets the endpoint invoice and the action is list.

                GET https://api.smallinvoice.com/invoice/list/
            

Authentication

Every request has to contain a parameter token in the request URL.

                GET https://api.smallinvoice.com/invoice/list/token/60abd.../
            

This token can be retreived when you're logged into your account under Configuration->Users->(button)My API Token and can be regenerated at any time. When you regenerate your token, the current one is disabled.


URL Parameters

Nearly every requests can contain URL parameters that for example sorts lists or defines what objects you are manipulating.
These are passed in a key/value pair and do not require a specific order.

                GET https://api.smallinvoice.com/invoice/list/key1/value1/key2/value2/token/60abd.../
            

Body Parameters

When performing a POST-Request, it will be sometimes necessary to provide body parameters in form of a JSON-Object passed in the POST-Variable data.

Example: Passing the Body Parameters amount and value both set to 1 would look the following:

                data={"amount":1,"value":1}