Skip to main content
POST
/
create-invoice
Factuur aanmaken
curl --request POST \
  --url https://api.clientbox.co/api/1.1/wf/create-invoice \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_id": "cust_12345",
  "amount": 150.5,
  "currency": "EUR",
  "items": [
    {
      "description": "Consultancy uren",
      "price": 75.25
    }
  ]
}
'
{
  "invoice_id": "inv_998877",
  "status": "sent",
  "download_url": "https://clientbox.co/dl/inv_998877.pdf"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
customer_id
string
required

ID van de klant die de factuur krijgt.

Example:

"cust_12345"

amount
number<float>
required

Totaalbedrag exclusief BTW.

Example:

150.5

currency
enum<string>
required

Valuta code (ISO 4217).

Available options:
EUR,
USD,
GBP
Example:

"EUR"

items
object[]

Lijst met factuurregels.

Response

200 - application/json

Factuur aangemaakt.

invoice_id
string
Example:

"inv_998877"

status
string
Example:

"sent"

download_url
string
Example:

"https://clientbox.co/dl/inv_998877.pdf"