v1

latestOpenAPI 3.0.02026-07-2455104.8 MB
Liability

Create liability

Creates a single new liability.

post/api/v1/liabilities

Request body

datestring date nullable
supplierInvoiceNumberstring

The invoice number issued by the supplier

receiptDatestring date-time nullable

The date when the supplier invoice was received by the recipient

serviceDatestring date nullable

The date on which the service was provided

status'open' | 'paid'

Workflow status of the liability

clarificationCaseboolean

A boolean flag to mark the liability as a clarification case, e.g. to check the deferred account assignments or open questions

clarificationReasonstring

A string that specifies the reason or justification provided for the clarification case in the liability process.

releaseboolean

A boolean flag with which the goods delivery is confirmed as complete and the traffic light is switched to green.

invoiceReleaseboolean

A boolean flag with which the accounting check of the incoming document is confirmed as complete and correct for tax purposes and the traffic light is switched to green.

internalCommentstring

A text field for adding internal comments or notes related to the liability, not visible to external parties.

bookingTextstring

header booking text

Example request

{
  "supplier": {
    "id": "17"
  },
  "status": "open",
  "financials": {
    "amountGross": {
      "amount": "100.0",
      "currency": "EUR"
    },
    "amountNet": {
      "amount": "90.0",
      "currency": "EUR"
    },
    "freightCharge": 10,
    "taxation": "VAT",
    "taxes": {
      "normalTax": {
        "rate": 19,
        "amount": 19
      },
      "reducedTax": {
        "rate": 7,
        "amount": 7
      },
      "customTax1": {
        "rate": 8.1,
        "amount": 50.5
      },
      "customTax2": {
        "rate": 10,
        "amount": 50.5
      }
    },
    "paymentTerms": {
      "dueDate": "2020-01-31",
      "earlyPaymentDate": "2020-01-15",
      "earlyPaymentDiscount": 2,
      "earlyPaymentDiscountAmount": 2
    },
    "bookingText": "Liability booking text",
    "payment": {
      "methodName": "Bank transfer",
      "paidAmount": 100,
      "paidOnDate": "2020-01-01",
      "discountReceived": 2
    },
    "glAccount": "123456",
    "costCenter": "123456"
  },
  "assignedPurchaseOrders": [
    {
      "id": "17",
      "project": {
        "id": "17"
      },
      "salesOrder": {
        "id": "17"
      }
    }
  ],
  "project": {
    "id": "17"
  },
  "accounting": [
    {
      "glAccount": "17",
      "amount": {
        "amount": "13.37",
        "currency": "EUR"
      }
    }
  ],
  "positions": [
    {
      "purchaseOrder": {
        "id": "17"
      },
      "product": {
        "id": "17"
      },
      "price": {
        "amount": "13.37",
        "currency": "EUR"
      }
    }
  ]
}

Response

Resource successfully created response