POST
/
invoices
/
{id}
/
position-items

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Path Parameters

id
string
required

Invoice identifier

Body

name
string
required

The name of the position item.

Required string length: 1 - 255
taxGroupId
string | null
required

The tax group ID of the position item.

unitId
any
required

The unit ID of the position item.

unitPrice
any
required

The unit price as net amount. It is only allowed to use dots as seperator.

children
object[]

The children of the position item.

currencyCode
string | null

The currency code of the position item. If not set, the currency code of the invoice will be used.

description
string | null

The description of the position item.

Required string length: 1 - 10000
discountAmount
any

The discount amount as net amount needs to be null or a positive money value. This will be subtracted from the unit price amount of the position item (unit price).

discountPercentage
number

The discount percentage needs to be null or a positive value. This will be subtracted from the unit price amount of the position item (unit price).

Required range: 0 < x < 100
group
object | null
id
string

The ID of the position item.

position
integer | null

The position of the position item. If not set, it will be set automatically. The position is used to sort the position items in the invoice.

product
string | null

The product of the position item. This is used to have access to statistics also on manual created invoices.

quantity
number
default:
1

The quantity of the position item. This can be positive or negative.

serviceDateFrom
string | null

The service date from of the position item. If not set, it is null and will not be printed.

serviceDateTo
string | null

The service date to of the position item. If not set, it is null and will not be printed.

subscriptionItem
string | null

The subscription item of the position item.

unitPriceInterval
string | null

The unit price interval of the position item. If not set, it is null and will not be printed.

Response

201 - application/json
applicatedExchangeRates
object[]

The applicated exchange rates of the invoice, fetched from the european central bank.

cancellationDocument
object | null

The referenced cancellation document.

closing
string | null
creationDate
string
currencyCode
string

The currency code of the invoice. If multiple currency codes will be used in the positions, they will be converted to that base currency.

customer
object

The customer of the invoice.

customFields
object | null

Custom fields for the entity. The keys are the field names and the values are the field values. They need to be configured under "/custom-fields" in the API documentation. The input is validated against the configuration. For more details see Custom Fields Guide

discountAmount
object

The total net discount amount of the invoice.

dueDate
string | null
dunningDisabled
boolean

Dunning is disabled for this invoice.

dunningLevel
integer
dunningStatus
enum<string>
default:
none
Available options:
reminder,
dunning,
none
eInvoiceType
any

The einvoice generated xml file format.

file
object | null
finalizationDate
string | null
grossAmount
object
id
string

The unique identifier of the invoice.

internalNote
string | null
deprecated

The notice of the invoice.

introduction
string | null
invoiceAddress
any | null

The invoice address of the invoice.

lastReminderDate
string | null
lastSentAt
string | null
leitwegId
string | null

The leitwegid used for einvoice. This is only set, when the eInvoiceType is not null.

netAmount
object

The net amount of the invoice.

number
string

The document id of the invoice. This will be generated, when the invoice will be finalized.

payDate
string | null
paymentMethod
object | null

The payment method which should be used to fullfill the payment of the invoice.

positions
object[]

The positions of the invoice.

referencedInvoice
object | null

The referenced invoice of the invoice. This could be in case of a reminder, refund etc.

serviceDateFrom
string | null

The earliest service date of all positions.

serviceDateTo
string | null

The latest service date of all positions.

sourceType
any

Where the invoice was created from.

Possible values:

  • cart: The invoice was created from a cart.
  • subscription: The invoice was created from a subscription billing run.
  • manual: The invoice was created by a user.
status
enum<string>
Available options:
STATUS_DRAFT,
STATUS_PAID,
STATUS_CANCELLED,
STATUS_CLOSED,
STATUS_REFUNDED,
STATUS_REMINDED,
STATUS_UNPAID,
STATUS_NEW,
STATUS_FINALIZING
taxAmount
object
title
string | null
type
enum<string>

The type of the invoice.

Available options:
TYPE_INVOICE,
TYPE_CREDIT,
TYPE_REFUND,
TYPE_REMINDER,
TYPE_CANCEL,
TYPE_DUNNING
unpaidAmount
object
usageBreakdownUrl
string | null

Public url to view the detailed usage breakdown of this invoice.

xmlFile
object | null

The xml representation of the invoice in EN16931 or x-Rechnung format.