Skip to content

Lösungen

Freelancer & Selbstständige Rechnungen und Belege ohne Shop eBay Verkäufe automatisch abrechnen Shopify Bestellungen direkt aus dem Shop WooCommerce WordPress-Shop anbinden

Introduction

The billware API lets you create and maintain articles, customers, addresses, orders, expenses and suppliers in your billware account from your own systems – for example a shop, an ERP or a script that imports orders from somewhere billware has no extension for.

Before you start

The API is part of every billware account, there is nothing to book for it. Open Settings › REST API in your customer area. There you find the two values every request needs:

API-Appid Identifies your account. Sent in plain text as the first part of X-Bw-Hmac.
API secret Signs the request body. Never send it and never put it in client-side code.

How a call is built

There is one endpoint for everything. The method is not part of the URL – it goes into the X-Bw-Method header, the parameters go into the request body as JSON.

URL https://www.billware.de/api/v1
Method POST – for every function, including read ones
X-Bw-Method Name of the function, e.g. order.create
X-Bw-Hmac API-Appid, a colon and the calculated HMAC, e.g. appid:hmac
Content-Type application/json

The HMAC is a SHA-256 signature of the raw request body, base64 encoded. Sign the exact bytes you send: if you re-encode the payload after signing it, the signature no longer matches. See Authentication for examples in five languages.

Your first call

test.connection takes no parameters and only tells you whether your credentials work. A good way to check the signature before touching real data.

# Get your API credentials from your billware customer area
API_APPID="your-app-id"
API_SECRET="your-api-secret"

PAYLOAD='[]'

# The HMAC is calculated over the exact request body that is sent
HMAC=$(printf '%s' "$PAYLOAD" | openssl dgst -sha256 -hmac "$API_SECRET" -binary | base64)

curl -X POST "https://www.billware.de/api/v1" \
  -H "X-Bw-Hmac: $API_APPID:$HMAC" \
  -H "X-Bw-Method: test.connection" \
  -H "Content-Type: application/json" \
  -d "$PAYLOAD"

Response format

Every response is a JSON object with the same three fields. data holds the result and is null when a method returns nothing.

{
    "response": true,
    "data": {
        "order_ident": "154xy0817679B1kJ"
    },
    "message": "order created"
}
Note

A request that was understood but could not be carried out – a missing required field, an unknown identifier – still answers with HTTP 200 and "response": false. Always evaluate response, not the status code alone.

Lists return the pagination values inside data. order.list, for example, returns page, limit, total and total_pages there, next to the orders.

Status codes

Code Meaning
200 The request was processed. Check response for the outcome.
401 The HMAC does not match, or the API-Appid is unknown.
402 The trial period of your account has ended and it has no subscription.
403 The method belongs to an extension that is not active for your account, or your account is locked.
404 X-Bw-Method is missing or names a function that does not exist.
429 Too many calls in a short time. The Retry-After header gives the seconds after which a call gets through again.
503 billware is in maintenance mode. Retry later.

Call limit

Per account, up to 40 calls get through at once, 2 calls per second in the long run. Behind this is a token bucket: a supply of 40 calls that refills continuously at 2 per second. When it is empty, billware answers with 429 and the message "Too many requests". The call was not carried out then: wait the number of seconds the Retry-After header gives and send it again.

Seeing your own calls

Settings › REST API lists the calls of the last hour with the time, the method, the status code, the message billware answered with and the calling IP address, the latest 500 at most. That is usually the fastest way to find out why an integration is not doing what you expect. Calls refused with 429 are not listed there.

Identifiers and formats

Identifiers Articles, customers, addresses, orders, expenses and suppliers are addressed by their *_ident string, for example order_ident. You receive it from the matching create call and from read.
Date and time "YYYY-MM-DD HH:MM:SS", e.g. "2025-07-16 10:00:00"
Numbers Prices and quantities are sent as numbers, not as strings. Decimal separator is the dot.
Booleans Flags such as is_paid use 0 and 1.

Where to go next

Authentication Signing a request, and the connection test.
Articles Create, read, update and delete articles.
Customers Customers and their delivery addresses.
Orders Orders, payments and invoice numbers.
Postman A ready-made collection with every method.