Zum Hauptinhalt springen
POST
cURL

Autorisierungen

Authorization
string
header
erforderlich

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

Pfadparameter

id
string
erforderlich

Invoice identifier

Body

The new Invoice resource

positions
object[]

The positions to cancel.

Minimum array length: 1
comment
string | null

Comment for the activity of crediting the invoice.

reason
enum<string>
Standard:other

The reason for crediting the invoice.

Verfügbare Optionen:
duplicate,
incorrect,
product_unsatisfactory,
order_change,
other
Beispiel:

"other"

paymentMethod
string<uuid>

The payment method for the credit note. The payment method must be valid and usable.

Beispiel:

"https://example.com/"

customIntroduction
string | null

The custom introduction for the credit note. It will be placed over the generic template.

customClosing
string | null

The custom closing for the credit note. It will be placed over the generic template.

Antwort

Invoice resource created

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