POST
/
v1
/
invoices
{
  "invoice": "<any>",
  "items": [
    "<any>"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json
status
enum<string>
required
Available options:
draft,
pending,
paid,
sent,
overdue
Example:

"draft"

party_type
enum<string>
required
Available options:
receiver,
sender
Example:

"receiver"

due_date
string
required
Example:

"2024-04-01T00:00:00Z"

currency
string
required
Required string length: 3
Example:

"CHF"

iban
string
required
Example:

"CH93 0076 2011 6238 5295 7"

customer_id
string
required
Example:

"550e8400-e29b-41d4-a716-446655440000"

description
string
Example:

"Monthly services"

name_from
string
Example:

"Sender Company AG"

address_from
string
Example:

"Bahnhofstrasse 1"

zip_from
string
Example:

"8001"

city_from
string
Example:

"Zürich"

country_from
string
Example:

"Switzerland"

name_to
string
Example:

"Receiver GmbH"

address_to
string
Example:

"Hauptstrasse 10"

zip_to
string
Example:

"3000"

city_to
string
Example:

"Bern"

country_to
string
Example:

"Switzerland"

shipping
number
Example:

10

discount
number
Required range: 0 <= x <= 100
Example:

5

vat
number
Required range: 0 <= x <= 100
Example:

7.7

items
object[]
active
boolean
default:
true
metadata
object
Example:
{
  "department": "IT",
  "project_code": "P123"
}

Response

201
application/json
Invoice created successfully
invoice
any
items
any[]