Zum Hauptinhalt springen
PUT
cURL

Autorisierungen

Authorization
string
header
erforderlich

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

Pfadparameter

id
string
erforderlich

InvoicePositionItem identifier

Body

The updated InvoicePositionItem resource

name
string
erforderlich

The name of the position item.

Required string length: 1 - 255
Beispiel:

"Product A"

unitId
any
erforderlich

The unit ID of the position item.

Beispiel:

"12345678-1234-1234-1234-123456789012"

unitPrice
string
Standard:0.00
erforderlich

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

Pattern: ^-?\d+\.\d+$
Beispiel:

"10.0"

taxGroupId
string | null
erforderlich

The tax group ID of the position item.

Beispiel:

"12345678-1234-1234-1234-123456789012"

id
string<uuid>

The ID of the position item.

Beispiel:

"12345678-1234-1234-1234-123456789012"

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.

Beispiel:

1

description
string | null

The description of the position item.

Required string length: 1 - 10000
Beispiel:

"This is a product."

quantity
number
Standard:1

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

Beispiel:

1

currencyCode
string | null

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

Beispiel:

"EUR"

serviceDateFrom
string<date-time> | null

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

Beispiel:

"2021-01-01"

serviceDateTo
string<date-time> | null

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

Beispiel:

"2021-01-31"

discountAmount
string
Standard:0.00

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).

Pattern: ^\d+\.\d+$
Beispiel:

"10.0"

discountPercentage
any

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).

Beispiel:

12.5

unitPriceInterval
string | null

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

Beispiel:

"monthly"

subscriptionItem
string | null

The subscription item of the position item.

Beispiel:

"12345678-1234-1234-1234-123456789012"

product
string | null

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

Beispiel:

"Product A"

children
object[]

The children of the position item.

group
object | null

Antwort

InvoicePositionItem resource updated

id
string<uuid>
read-only

The unique identifier of the invoice.

Beispiel:

"00000000-0000-0000-0000-000000000000"

customer
object

The customer of the invoice.

paymentMethod
object | null

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

referencedInvoice
object | null

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

type
enum<string>

The type of the invoice.

Verfügbare Optionen:
TYPE_INVOICE,
TYPE_CREDIT,
TYPE_REFUND,
TYPE_REMINDER,
TYPE_CANCEL,
TYPE_DUNNING
Beispiel:

"TYPE_INVOICE"

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.

Beispiel:

"EUR"

number
string
read-only

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

Beispiel:

"RE-0000000001"

status
enum<string>
read-only
Verfügbare Optionen:
STATUS_DRAFT,
STATUS_PAID,
STATUS_CANCELLED,
STATUS_CLOSED,
STATUS_REFUNDED,
STATUS_REMINDED,
STATUS_UNPAID,
STATUS_NEW,
STATUS_FINALIZING
creationDate
string<date-time>
read-only
finalizationDate
string<date-time> | null
read-only
dueDate
string<date-time> | null
lastReminderDate
string<date-time> | null
read-only
lastSentAt
string<date-time> | null
read-only
dunningLevel
integer
read-only
dunningStatus
enum<string>
Standard:none
read-only
Verfügbare Optionen:
reminder,
dunning,
none
Beispiel:

"none"

payDate
string<date-time> | null
read-only
invoiceAddress
any | null
read-only

The invoice address of the invoice.

internalNote
string | null
veraltet

The notice of the invoice.

Beispiel:

"This invoice is with a special discount."

title
string | null
read-only
introduction
string | null
read-only
closing
string | null
read-only
netAmount
object
read-only

The net amount of the invoice.

grossAmount
object
read-only
taxAmount
object
read-only
discountAmount
object
read-only

The total net discount amount of the invoice.

file
object | null
xmlFile
object | null

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

positions
object[]
read-only

The positions of the invoice.

applicatedExchangeRates
object[]
read-only

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

eInvoiceType
any
Standard:zugferd211

The einvoice generated xml file format.

Verfügbare Optionen:
factorx,zugferd211
Beispiel:

"zugferd211"

leitwegId
string | null

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

Beispiel:

"1234567890123"

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

Beispiel:
serviceDateFrom
string<date-time> | null
read-only

The earliest service date of all positions.

serviceDateTo
string<date-time> | null
read-only

The latest service date of all positions.

unpaidAmount
object
read-only
usageBreakdownUrl
string | null
read-only

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

cancellationDocument
object | null
read-only

The referenced cancellation document.

Beispiel:
dunningDisabled
boolean
read-only

Dunning is disabled for this invoice.

paymentProviderFeeCents
object
read-only

The total amount of fees for each payment provider, which charges fees.

sourceType
any
read-only

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.
creditNotes
array
read-only

The referenced credit notes.