Get started

    API Endpoint

        https://bilagssentralen.no/api
                

The Bilagssentralen API provides programmatic access to integrate the system with any POS in order to create invoice for the customer.

To use this API, you need an API key and App Secret. Please contact us at requests@bilagssentralen.no to get your own API key and App secret.

Add Invoice

To add invoice you need to make a POST call to the following url :
https://bilagssentralen.no/api/invoice-create



Example body :

{
    "customerId": {
        "type": "pan",
        "value": "858040719c2160898a69e537d4fac12168b9d2ad534567e0a8f4ebb168dd8e7b"
    },
    "organization": {
        "name": "Bilagssentralen",
        "completeAddress": "Kongsgård alle 35 4632 KRISTIANSAND S"
    },
    "accountNumber": "1506 48 12345",
    "kid": "0100123",
    "customerNumber": "123123",
    "dueDate": "2019-08-24T14:15:22Z",
    "invoiceDate": "2019-08-24T14:15:22Z",
    "invoiceNumber": "12345678",
    "invoiceFile": {
        "type": "pdf",
        "encodingType": "multipart/form-data"
    },
    "invoiceComments": "Lorem Ipsum",
    "items": [
        {
            "name": "MILK",
            "quantity": "1",
            "price": {
                "value": "10",
                "currency": "NOK"
            }
        }
    ],
    "totalInvoiceAmount": {
        "value": "10",
        "currency": "NOK",
        "vatRate": "25"
    }
}
                

ADDITIONAL HEADERS

Field Type Description
API_KEY String Your API key that you received in the email.
APP_SECRET String Your App secret that you received in the email.

Status Codes

The Bilagssentralen API uses the following status codes:

Status Code Meaning
201 This status is returned when invoices is added successfully.
400 This status is returned when API Key or App Secret is invalid.
500 This status is returned when there is something wrong with the API or server.